[tsserver] add support to fetch symbol references from only the current file. #60763
Open
6 tasks done
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
π Search Terms
Hey.
it will be awesome if the "references" command can only get references of a symbol at position (x,y) but only inside the current file.
β Viability Checklist
β Suggestion
this can be added using
currentFileOnly?: boolean;
(like that insideinterface NavtoRequestArgs
).π Motivating Example
i use it mainly for rewriting javascript files (usually obfuscated ones), so for each symbol i need to get all references but only for the currently opened file, so i wish there was a flag for it. as i thought it will be more performant (i.e. instead of searching references all across the project, if we restricted it to the current file - by a flag in a the request - then it can be more performant due to reduced search space?)
π» Use Cases
references
request. however, i think tsserver can be more performant than this approach.The text was updated successfully, but these errors were encountered: