You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[tsserver] api to find references to a file #39489
Add a new FileReferences request to the tsserver protocol. This command would take a file path (and optional project name) and return a list of references:
interfaceFileReferencesRequestextendsFileRequest{// empty }interfaceFileReferencesResponseBody{/** * The file locations referencing the symbol. */refs: readonlyReferencesResponseItem[];/** * The name of the symbol. */symbolName: string;}interfaceFileReferencesResponseextendsResponse{body?: FileReferencesResponseBody;}
Running this command should return a list of locations where the given file is imported (this matches what running find all references on an import path does)
Activity
sheetalkamat commentedon Oct 28, 2020
https://github.com/microsoft/TypeScript/blob/master/src/compiler/program.ts#L758 this should have list where file is referenced from