-
Notifications
You must be signed in to change notification settings - Fork 16
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
Completions don't work properly when you just start typing #52
Comments
That looks odd; are you typing I also vaguely remember a while back the VS Code completion behaviour changing and that tripped us up until we changed our implementation to compensate. I'll see if I can dig up the issue. |
This isn't that issue, but it is some of the history of how we (conceptually) handled completions: |
Also (slightly) related in terms of unintuitive semantics: |
The trigger characters (see lines 100 and 158-164): And (see line 100): And (see line 97): |
And here is the original issue, I think: tintoy/msbuild-project-tools-vscode#67 (this is going back a couple of years, though) |
BTW, logging is quite extensive if you turn on verbose logging; might help work out where behaviour is deviating from expectations. |
Hmm, I wonder if it's an interaction between the language server's completion behaviour and how your general completion behaviour is configured in your local VSCode? Or it might just be that we have different understandings of how completions are supposed to work. I use the extension fairly frequently and I've never had issues with completions using |
Ok, so I think I can see what's happened here. This feature did not exist when the language server was written so it does not take into account that there may not be a trigger character. The problem is that a completion triggered by regular typing (i.e. quick-suggestions: other) does not seem to have any sort of differentiator (in the LSP message payload from VS Code to the language service) compared to a completion triggered explicitly (e.g. I'll have to have a think about how we might be able to handle this. |
Also possibly related: |
This is better to show than explain:
For some reason the first letter isn't a part of completion session.
However, if you first manually trigger completions and then start typing, everything is working fine:
The text was updated successfully, but these errors were encountered: