Skip to content

tsserver to handle file navigation with project references #26164

@sheetalkamat

Description

@sheetalkamat
  1. Open vscode at typescript repository
  2. Open file src/tsc/tsc.ts
  3. Use goto Definition on say "normalizePath"
    With this vscode calls definitionAndBoundSpan which returns definition in src/compiler/utilities.ts so vscode closes src/tsc/tsc.ts and opens src/compiler/utilities.ts and navigates to utilities.ts
    tsserver deletes src/tsc/tsconfig.json project and creates src/compiler/tsconfig.json
    If navigated back, it will close src/compiler/utilities.ts and hence its project and reopen src/tsc/tsc.ts and creating that project again.

I think we want to keep configured project if projectReferences in tsconfig refers to configured project which has openRef

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions