ruby-lsp icon indicating copy to clipboard operation
ruby-lsp copied to clipboard

Handle manually invoked completion

Open vinistock opened this issue 1 year ago • 3 comments

The LSP spec allows users to invoke completion manually without typing anything.

This scenario is very different from what we currently handle because there's no target node. We simply need to show all possible completion items for the current receiver.

We will need to think about how addons can be invoked for this case and how they should enhance the base response. We may need to allow for a nil target intentionally and then define a special event for it.

vinistock avatar May 16 '24 08:05 vinistock

Can that be triggered in VS Code?

andyw8 avatar May 16 '24 13:05 andyw8

It should be possible, although I'm not sure what's the right hotkey.

vinistock avatar May 17 '24 02:05 vinistock

Ah, Ctrl-Space.

andyw8 avatar May 17 '24 17:05 andyw8