Replies: 2 comments
-
helix/helix-term/src/commands/lsp.rs Lines 891 to 912 in 4a3b776
|
Beta Was this translation helpful? Give feedback.
-
Played around with this in VS Code and a similar thing occurs, but only when the name of the argument is the entire name of the function (which may or may not be valid code depending on your language but whatever). I believe that the LSP specification is flawed. We could try to make better guesses as to where and how we search for the substring, but ultimately I think the specification needs to be changed so that passing the parameter label as a string is deprecated and instead all language servers pass the character range. |
Beta Was this translation helpful? Give feedback.
-
Summary
After 22.08, LSP signature help has come, which highlights the function parameters which is currently being entered.
Signature help highlights the words in the function name if there are the same words in the parameters.
Reproduction Steps
It can be reproduced by defining a function named with the words in parameters. I can reproduce it with elixir-lsp, helix 22.08.1. Other LSP should be tested.
2022-10-05.16.59.06.mov
Helix log
There is no log about this.
Platform
macOS 12.6 (Apple Silicon)
Terminal Emulator
iTerm 3.4.16
Helix Version
helix 22.08.1 (66276ce)
Beta Was this translation helpful? Give feedback.
All reactions