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
Should filterText trim prefixes? #729
Comments
Personally, I don't trim |
It seems that most other language servers don't either, and I didn't expect that I had to - however, without doing trimming, VSCode doesn't behave as I would expect it to. Perhaps this is a VSCode bug? Would be happy to file it there, but it would also be helpful to clarify this in the spec. |
The Rust server does not set |
The only handling would be in the language client, which is in https://github.com/Microsoft/vscode-languageserver-node. I'll open an issue there, but for now, I'll leave the filter text as is in |
@stamblerre I commented in microsoft/vscode-languageserver-node#488 Lets close this issue for now until I have a better understanding why your case is failing. I was not able to reproduce it. |
For example, if I have a variable
abc
in scope, and I have typeda
, should the filter text bebc
? I would guess yes, based on the behavior of VSCode, but it seems that other language servers behave differently.For context, this question was first brought up in golang/go#31552 and tigersoldier/company-lsp#103.
The text was updated successfully, but these errors were encountered: