-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Find Source Definition #48264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Find Source Definition #48264
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
81ec4fd
Prototype resolving to JS when go-to-def aliases all resolve to ambie…
andrewbranch 422d845
Add test infrastructure
andrewbranch 1b43352
Start fleshing out test coverage
andrewbranch 7aeb92f
Fix some go-to-def stuff
andrewbranch f2915e6
Finish lodash test case
andrewbranch 309c4bb
Make go-to-implementation never return ambient results
andrewbranch 381799d
Build new functionality into go-to-implementation
andrewbranch 0727702
Update baselines
andrewbranch ebeda0b
Two more test cases
andrewbranch 03ea413
Refine definition searches for unresolved imports
andrewbranch e5556b8
Revert "Build new functionality into go-to-implementation"
andrewbranch 6104a5c
Fix tests
andrewbranch bea3de0
Merge branch 'main' into go-to-js
andrewbranch 4e64659
Revert go-to-implementation changes
andrewbranch 1cb2ba6
Wow a bunch of code was unnecessary
andrewbranch 7e57890
Update baselines and go-to-def test
andrewbranch 43c01e2
Fix navigation on symbols that are not aliases but resolve through al…
andrewbranch 34c6cfd
Temporarily replace go-to-def with new command implementation
andrewbranch 7357593
Revert "Temporarily replace go-to-def with new command implementation"
andrewbranch d14e43d
Revert "Wow a bunch of code was unnecessary"
andrewbranch 4e1cf1c
Bring back some deleted code needed for a new test case
andrewbranch 52a79d5
Clean up a little
andrewbranch e011f2d
Rename more stuff
andrewbranch 05cfd27
Update test
andrewbranch b95f496
Update API baseline
andrewbranch b883898
Temporarily replace go-to-def with new command implementation
andrewbranch 373bca2
PR review fixes
andrewbranch c05adbd
Merge branch 'main' into go-to-js
andrewbranch 3a85dc8
Fix getTopMostDeclarationNamesInFile
andrewbranch 7dd9db8
Rename local
andrewbranch 0f3b29c
Use hash set
andrewbranch 234c139
Remove option from commandLineParser
andrewbranch 92ff999
Merge branch 'main' into go-to-js
andrewbranch 1698930
Keep noDtsResolution project around
andrewbranch 859ed79
Handle AuxiliaryProject kind in ScriptInfo getDefaultProject etc.
andrewbranch 7be215a
Do not run updateGraph in the background for AuxiliaryProject
andrewbranch 8f4e622
Don’t create auxiliary project outside of semantic mode
andrewbranch d633356
No-op on scheduled invalidation
andrewbranch b89b7cb
Add comments to unit test
andrewbranch a59024c
Sync compiler options to auxiliary project
andrewbranch 7f290bb
Fix case sensitivity
andrewbranch c5bddbe
Update extensionIsOk with new file extensions
andrewbranch 24c0d8a
PR feedback
andrewbranch f6bd9d8
Update API baseline
andrewbranch 2cb2048
Mark scheduleInvalidateResolutionsOfFailedLookupLocations internal
andrewbranch f9f4592
Use same heuristics on property accesses of loosely-resolvable aliase…
andrewbranch e302f56
Rename command, and no need to return the bound span
andrewbranch 3f15ed3
Update API baseline
andrewbranch f80c9ef
Merge branch 'main' into go-to-js
andrewbranch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "Build new functionality into go-to-implementation"
This reverts commit 381799d.
- Loading branch information
commit e5556b8d53a03ac0a6c43dd7c9539ef23e55a911
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we may already have discussed this but, unfortunately, I've forgotten. Why wouldn't this be modelled on
definition[-full]? I believe the primary (only?) difference is thatdefinitionAndBoundSpanincludes the span for underlining, which this command seems unlikely to require, given the expected perf.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, when I made the protocol change, I didn’t yet realize that’s what the bound span was for, so I modeled it off the only go-to-def command that VS Code uses. I’ll switch it. Now that I have a handle on how I’m going to hook this up to VS Code, at least in the short term, I’ll switch it, as that span won’t be used.