-
Notifications
You must be signed in to change notification settings - Fork 414
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
Autocompletion is not cancelled on space #187
Comments
That is happens when proposals still match. VS Code doesn't have a static rule when to hide/show/retrigger completions but uses the information provided by completions. Those are the
Is this just |
Ok, so the fact the labels contain spaces is fucking us up
|
Yes, you could try putting that extra bit ( Works as I have to tried to describe above. What confuses me is that |
Ok, I can try to put stuff into the detail field. Sounds better than my thinking about using some unicode trick to look like a space :-) Seems we return |
Ok so using But the main problem with using |
Yeah, that's part of our design of being minimal. /cc @stevencl |
@jrieken so as an alternative, I tried using filterText: /**
* A string that should be used when filtering a set of
* completion items. When `falsy` the label is used.
*/
filterText?: string; So our completionItems now look like {
"label": "Map - java.util",
"kind": 7,
"sortText": "zzzzzzzbge",
"filterText": "Map",
"data": {
"decl_signature": "Ljava.util.Map;",
"pid": "62",
"rid": "6",
"uri": "file:/Users/fbricon/Dev/vertx-game-server/src/main/java/com/redhat/middleware/keynote/GameUtils.java"
}
}, But vscode still seems to filter using the label So either I don't grok how filterText is supposed to work or vscode ignores filterText. The former is the most plausible. |
Yeah, we always try with the label first and use the filter text only when not matching the label. Mostly because when using the filter text we cannot render the blue highlights. But it could be considered a bug on our side |
Initial tests with filterText and latest insiders build look good. Will provide a proper PR on jdt.ls soon. |
Fixes redhat-developer/vscode-java#187 Signed-off-by: Fred Bricon <fbricon@gmail.com>
Fixes redhat-developer/vscode-java#187 Signed-off-by: Fred Bricon <fbricon@gmail.com>
Fixes redhat-developer/vscode-java#187 Signed-off-by: Fred Bricon <fbricon@gmail.com>
If I have
Collection c = ne|
autocompletion will proposenew
among other things. If I continue typing without hitting tab or escape, thennew Arr
, despite the space, will continue proposing new and all other stuff containing these letters.I think hitting space should cancel autocompletion. But I'm not sure if it's a vscode proper or vscode-java configuration. @jrieken?
The text was updated successfully, but these errors were encountered: