CookCLI icon indicating copy to clipboard operation
CookCLI copied to clipboard

Providing a language server (LSP)

Open Artees opened this issue 4 years ago • 5 comments

It would be nice to have some integration with LSP-compatible text editors for syntax highlighting, autocompletion of ingredients, syntax validation, etc. It would be more universal than addons for Sublime and VSCode.

Artees avatar Nov 01 '21 03:11 Artees

@Artees that's an interesting idea! I'm not really familiar with these servers. How does it run? Should this server be part of language package for IDE or CLI?

dubadub avatar Nov 01 '21 09:11 dubadub

@dubadub it could be part of the CLI or a separate CLI. You configure an IDE to run the language server and they communicate using JSON-RPC.

Artees avatar Nov 01 '21 15:11 Artees

Nice, I'm wondering what text editors we can onboard with that feature?

dubadub avatar Nov 02 '21 18:11 dubadub

https://microsoft.github.io/language-server-protocol/implementors/tools/

Artees avatar Nov 02 '21 19:11 Artees