Some IntelliSense suggestions only appear after pressing Ctrl+Space
See original GitHub issueContainer(
padding:
)
In this Flutter example, after typing "padding:
", the first suggestion is class
(the other suggestions are other reserved words), which totally doesn’t make sense in this context. But, after pressing Esc and then Ctrl+Space, it properly suggests EdgeInsets
and EdgeInsetsDirectional
. These suggestions should appear without having to press Ctrl+Space.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
VS Code: How to make IntelliSense activate with Ctrl+Space ...
I found this was IntelliSense, but I'm used to suggestions popping up only after hitting Ctrl+Space. When I discover quickSuggestions in ...
Read more >How to: Solve the 'Ctrl-Space (auto-complete) not working ...
First of all, let's see what the problem is: You've just installed Eclipse, are starting to do some programming in it, and want...
Read more >Code completion | IntelliJ IDEA Documentation - JetBrains
You can narrow down the suggestions list by typing any part of a word (even characters from somewhere in the middle) or invoking...
Read more >Example: Autocompletion - CodeMirror
The @codemirror/autocomplete package provides functionality for displaying input suggestions in the editor. This example shows how to enable it and how to ...
Read more >Code Assistance in the NetBeans IDE Java Editor
The purpose of any integrated development environment (IDE) is to ... The first time Ctrl + Space is pressed only items matching the...
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
Ok, I tracked this down. It turns out it was indeed fixed by the issue I discovered and fixed above (and since I was running the fixed version after that, I never saw it).
What’s happening is this:
You type
padding:
(without the space), and we send back the correct list of completions (as seem in your last screenshot, 2142 items). However then you press<space>
and VS Code “helpfully” filters the list of completions by that space (I’ve no idea why it leaves the snippet ones, but that’s for another issue) - this is because for Performance reasons, VS Code will prefer to filter completions locally than go back to the server on every keystroke.The change that I found and mentioned above, was to force VS Code to go back to the server on
<space>
. It was supposed to already do this, but there was a previous bug.So, the issue is fixed for vNext. I’ve made a beta version if you’d like to install it in the meantime (I expect it to be pretty stable, and you’ll automatically be moved back to the stable release once it ships):
https://github.com/Dart-Code/Dart-Code/releases/tag/v2.22.0-beta.1
Download the .vsix file and run the
Extensions: Install from VSIX
command in VS Code, select the vsix file, then click the Reload button on the notification.Let me know if you still have any issues, and thanks for your effort in chasing this down!
I solved my problem with making disabled snippetsPreventQuickSuggestions in vscode settings.json
"editor.suggest.snippetsPreventQuickSuggestions": false