Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CLI): Support language server for vscode #358

Closed
gaocegege opened this issue Jun 15, 2022 · 4 comments
Closed

feat(CLI): Support language server for vscode #358

gaocegege opened this issue Jun 15, 2022 · 4 comments

Comments

@gaocegege
Copy link
Member

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
Copy link
Member Author

gaocegege commented Jun 16, 2022

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.

@rudeigerc
Copy link
Member

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

@gaocegege
Copy link
Member Author

#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
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

No branches or pull requests

2 participants