Skip to content

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

Closed
@mhegazy

Description

@mhegazy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIRelates to the public API for TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do thisSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions