cmake-language-server
cmake-language-server copied to clipboard
Visual Studio Code support
Is there a way to make this extension work with VSCode?
Perhaps the developers could consider an extensions based on the clangd one?
Thanks!
This is their official docs: https://code.visualstudio.com/api/language-extensions/language-server-extension-guide
From my testing, I was able to make it work. I had to modify https://marketplace.visualstudio.com/items?itemName=torokati44.glspc this extension to make it work. But I think you've already tested it right? https://gitlab.com/ruilvo/vscode-glspc
In any case, the server is missing syntax highlighting capabilities, but Microsoft has added the support for it: https://github.com/Microsoft/language-server-protocol/issues/18
It would be possible to deliver syntax highlighting from the server from what I can read, but haven't tried it.
The language server protocol definitely supports syntax highlighting. Clangd makes ample use of it.
This package will only really be viable with a dedicated extension. And the vscode docs really are ample on the subject.
But it doesn't say in the readme of this package that syntax highlighting is a provided feature.
Maybe a dev could comment...
Here is a coc extension for this language server. Consider the compatible API of coc.nvim and VS Code, I think any VS Coder can fork this extension and modify it to get a VS Code extension.