cmake-language-server icon indicating copy to clipboard operation
cmake-language-server copied to clipboard

Visual Studio Code support

Open ruilvo opened this issue 3 years ago • 4 comments

Is there a way to make this extension work with VSCode?

Perhaps the developers could consider an extensions based on the clangd one?

Thanks!

ruilvo avatar Oct 12 '21 09:10 ruilvo

This is their official docs: https://code.visualstudio.com/api/language-extensions/language-server-extension-guide

ruilvo avatar Oct 12 '21 10:10 ruilvo

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.

Lorac avatar Oct 14 '21 17:10 Lorac

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...

ruilvo avatar Oct 14 '21 21:10 ruilvo

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.

Freed-Wu avatar Dec 27 '23 09:12 Freed-Wu