Skip to content

Find references even when TypeScript sub-projects not yet open #30823

Closed
@dcecile

Description

@dcecile

From microsoft/vscode#65102...

It seems like with a multiple-tsconfig.json setup, VS Code can't find all references. (Even though technically all of them should be "joined" via a root tsconfig.json that uses project references.)

Here's a minimal repro of my setup: https://github.com/dcecile/typescript-references-test

common/
  message.ts
  tsconfig.json
server/
  hello.ts
  tsconfig.json
client/
  sharedMain.ts
  tsconfig.json
  • Both client and server reference the common project
  • "Find references" fails to find the references to the common function
  • "Rename symbol" also fails to rename the references
  • After loading files from the client and server projects, find references works

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions