question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some IntelliSense suggestions only appear after pressing Ctrl+Space

See original GitHub issue
Container(
  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:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Jan 17, 2019

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!

0reactions
malibayram91commented, May 12, 2020

peek 2019-01-07 15-05 Here’s a GIF showing the issue. I can’t reproduce it 100% of the time.

Sure, I can test it.

I solved my problem with making disabled snippetsPreventQuickSuggestions in vscode settings.json "editor.suggest.snippetsPreventQuickSuggestions": false

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found