envd icon indicating copy to clipboard operation
envd copied to clipboard

feat(CLI): Support language server for vscode

Open gaocegege opened this issue 3 years ago β€’ 4 comments

Description

We can use https://github.com/tilt-dev/starlark-lsp

But it requires CGO. We may need a separate binary envd-lsp to avoid CGO in envd.

gaocegege avatar Jun 15 '22 14:06 gaocegege

Peek 2022-06-16 09-57

The language highlights and auto-completion work well.

But, we need to figure out how to deliver CGO enabled bins.

gaocegege avatar Jun 16 '22 01:06 gaocegege

Since language servers usually do not follow the release cycle of the main code base, should we separate it as an isolated repo?

rudeigerc avatar Jun 16 '22 10:06 rudeigerc

https://github.com/tensorchord/envd/pull/302 We kept the lang server in a separate binary. I think we can put it in the vscode-envd repository.

Current problem is that I do not know how to cross-compile CGO-enabled bin and deliver them in vscode extension.

gaocegege avatar Jun 16 '22 10:06 gaocegege

https://softwareengineering.stackexchange.com/questions/426471/how-do-vs-code-langauge-extensions-distribute-a-language-server-binary

We can download the lsp binary on the first run like vscode-rust and vscode-haskell does.

gaocegege avatar Jun 20 '22 03:06 gaocegege