TS auto-import not working if completion has not resolved
See original GitHub issueTS auto-import rely completion resolve to calculate additionalTextEdits
, in 2 cases it’s not working:
- User pressed arrow key to select other completion item -> Completion resolve request triggered -> User pressed enter to select completion item before completion resolve request finish.
- User use mouse to click a not current completion item, completion resolve request never trigger.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Typescript auto-import completion is not coherent with ...
Typescript auto-import completion is not coherent with approach for C# ... If we haven't resolved this issue for you, please report a new...
Read more >Typescript no longer auto importing suggestions · Issue #63013
Case 2 is still broken. I think we need to make sure that the completion item is resolved when we call _onDidSelectItem in...
Read more >TypeScript code completion and auto-import not working for ...
Try to auto-import a class from folder platform/desktop-client/src/main/typescript`. What is the expected result? IDEA recognizes the class name and provides ...
Read more >WebStorm (2021.3) auto-completion and auto-import not ...
During development I use npm link to automatically fetch code changes. The code is running fine, but WebStorm IDE (2021.3) has some problems. ......
Read more >Fix Python Relative Imports and Auto-completion in VSCode
In this video, you will learn how to properly handle Python relative imports without extending the sys.path. Additionally, you will learn ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We always call resolve but when insertion happens before resolving is done we do a best effort to apply any additional edits after the fact.
I think you need to track down what part of your code is causing this. Best would be to create an extension directly hooking completion and VS Code’s extension API and then ensure that resolve is called. If not, file a issue to VS Code. If it is called but the TS Server doesn’t do the right thing file an issue against the TS server.