Support for LSP completion requests - #1
Conversation
|
What's the status of this PR? Can we merge this part and get to effekt-lang/effekt#384 later or is there something blocking this? :) |
|
This PR depends on effekt-lang/effekt#384 's The PRs suffer from the same problems as effekt-lang/effekt#398. Ideally, completion should only suggest symbols in scope. We don't currently have an efficient way of doing this. Also, active typing typically introduces syntax errors, so caching the last working phase/stage might also be needed. |
I realise that, but my question is: will there ever be any more code for this on the Kiama side? |
|
Ah yes, I'm not sure. We may want a different API once Effekt's side is improved. It's probably fine though. |
This PR is part of effekt-lang/effekt#384 and adds LSP completion request handlers for kiama.
I wonder if there's a more elegant (or already implemented?) solution for
optWord? This is relevant for filtering the suggested symbols (e.g. by prefix). Just for testing I split by whitespace, but this should ultimately also consider dots, semicolons, etc.