Repository navigation
Find references of a module by filename - #41805
Conversation
|
Thanks for the PR! It looks like you've changed the TSServer protocol in some way. Please ensure that any changes here don't break consumers of the current TSServer API. For some extra review, we'll ping Sheetal Nandi (@sheetalkamat), Andrew Casey (@amcasey), Matt Bierner (@mjbvz), Mine Starks (@minestarks) for you. Feel free to loop in other consumers/maintainers if necessary |
🤩 does that mean that go-to-definition will work on a script file? |
|
Not right now, but go-to-definition could borrow some of this code to achieve that. Daniel Rosenwasser (@DanielRosenwasser) is there an open issue for that? Assign me and I’ll get it in. |
Sweet, it would be very nice to make this work: #41861 |
Does the same thing as running find-all-references on a module specifier, but with a filename of a module instead of a module specifier node.
Also improves find-all-references on module specifiers that resolve to scripts—previously it would fall back to finding equal string literals; now it uses
refFileMapto find other actual references to the file.Also fixes some bugs in the find-all-refs baseline format (hence the unrelated baseline updates)
Closes #39489