-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Import statement completions #43149
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
Import statement completions #43149
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
60422cb
WIP
andrewbranch 081f564
WIP
andrewbranch 48bfb22
Get completion details working
andrewbranch 9e456b5
Start unifying eager and lazy auto imports
andrewbranch 89dba08
Fix export=
andrewbranch 3a4e275
Fix completion details for totally misspelled names
andrewbranch 12bb1fe
Almost fixed duplication...
andrewbranch 0ae905c
Fix remaining completion tests
andrewbranch e9f3ec1
Refactor to support multiple origins for same symbol
andrewbranch b5b58f8
Make import fixes make slightly more sense
andrewbranch c7e9bc7
Add cache back in
andrewbranch 393fce5
Set insertText based on import kind
andrewbranch 8999db9
Update API baselines
andrewbranch 6c8457b
Add semicolons, snippet support, and sourceDisplay
andrewbranch db75d56
Add some tests
andrewbranch 6e6c8ff
Update baselines
andrewbranch 6382ece
Fix pattern ambient modules appearing in auto imports
andrewbranch 409fa90
Fix tests
andrewbranch 2ae85af
Remove commented code
andrewbranch 77b6e3d
Switch to valueDeclaration for getting module source file
andrewbranch 5388b30
Small optimizations
andrewbranch 99ec664
Cache module specifiers / importableness and export map separately
andrewbranch 630f200
Fix and test cache invalidation logic
andrewbranch f60ac89
Update API baselines
andrewbranch 32fccbb
Add separate user preference for snippet-formatted completions
andrewbranch eb421c0
Require first character to match when resolving module specifiers
andrewbranch 2506173
Merge branch 'master' into feature/31658
andrewbranch cdb7efd
Fix AutoImportProvider export map cache invalidation
andrewbranch 9976d3f
Really fix auto import provider export map invalidation
andrewbranch d1afa7a
Merge branch 'master' into feature/31658
andrewbranch 8550be7
Update test added in master
andrewbranch 66caaf2
Use logical or assignment
andrewbranch d10aa0c
Simply conditional by reversing
andrewbranch 5e868e3
Merge branch 'master' into feature/31658
andrewbranch 9ea1bd4
When file is deleted need to marked correctly in the project as remov…
sheetalkamat eb52faa
Simplify hasAddedOrRemovedSymlinks with cherry-picked fix
andrewbranch f7028f6
Merge branch 'master' into feature/31658
andrewbranch f5df94b
Ensure replacement range is on one line
andrewbranch badcd83
Update baselines
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
Fix export=
- Loading branch information
commit 89dba0815cb3486ebbee3cf74bd8d3211b7154a3
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
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.
Some of the refactors here weren’t strictly necessary, but are a step forward in understandability and hopefully cacheability in the future—
SymbolExportInfo
previously had info about how a specific file would want to import the exported symbol instead of just plain info about how the symbol is exported, which made it a misnomer and uncacheable.