LSP Completions from ruby LSP are not displayed when typing a string literal in VSCode #24045
Replies: 2 comments 1 reply
-
I think I reproduced that behavior. When I typed
Probably VSCode does additional filtering or something? Here is the Ruby LSP log for the same scenario:
|
Beta Was this translation helpful? Give feedback.
-
Phew yeah that looks like it's annoying. Probably worth looking into how best to support hiding completions in a language specific way (probably through extensions) so we can provide a good UX even with chatty LSPs. I'm going to move this to discussions so we can keep tracking this as it's a desired feature from VSCode rather than a bug in Zed. |
Beta Was this translation helpful? Give feedback.
-
Summary
Completion suggestions for Ruby are triggering at unexpected times/locations when using string literals as method arguments.
Steps to trigger the problem:
Set up Ruby LSP:
gem install ruby-lsp
(requires Ruby to be installed, I used Ruby 3.3)Open a new Ruby file and reproduce issue in similar fashion to recorded video below.
Actual Behavior:
Screen.Recording.2025-01-30.at.10.36.52.AM.mov
Additionally, adding parentheses to the method call (e.g.
it("string literal")
) does not have any effect.Expected Behavior:
The expected behavior is visible in the VSCode window in the above video. When the string literal is typed I should not be seeing completions for the text that occurs before the string I am typing.
Beta Was this translation helpful? Give feedback.
All reactions