Skip to content

TSServer: global operations should be performed on all projects #2531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mhegazy opened this issue Mar 27, 2015 · 0 comments
Closed

TSServer: global operations should be performed on all projects #2531

mhegazy opened this issue Mar 27, 2015 · 0 comments
Labels
API Relates to the public API for TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this Suggestion An idea for TypeScript

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Mar 27, 2015

Global operations are currently only done on the first project for a file, namely:

  • rename
  • find all references
  • navigate to

For instance if you have three files (a.ts, b.ts, and c.ts) open in the editor, listed below, we create three projects, Project 1 (a.ts), Project 2 (a.ts, b.ts), Project 3 (a.ts, c.ts).

a.ts

var x;

b.ts

/// <reference path="a.ts" />
x ++;

c.ts

/// <reference path="a.ts" />
x = x + 2;

Calling rename on x, in a,ts will only rename it in a.ts and not in b.ts or c.ts as well. if renaming in b.ts it will not rename in c.ts, and vice versa.

@mhegazy mhegazy added Suggestion An idea for TypeScript API Relates to the public API for TypeScript labels Mar 27, 2015
@mhegazy mhegazy added the Help Wanted You can do this label Dec 9, 2015
@mhegazy mhegazy added this to the TypeScript 2.0 milestone Dec 9, 2015
@zhengbli zhengbli added the Fixed A PR has been merged for this issue label Apr 21, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API Relates to the public API for TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants