language-server-protocol

【软工】[技术博客] 用Monaco Editor打造接近vscode体验的浏览器IDE

梦想的初衷 提交于 2020-08-12 05:54:14
[技术博客] 用Monaco Editor打造接近vscode体验的浏览器IDE 官方文档与重要参考资料 官方demo 官方API调用样例 Playground 官方API Doc ,但其搜索框不支持模糊匹配 官方GitHub Issues ,可搜索相关问题 CSDN优秀博客 带主题颜色选择的demo 依赖与配置 在浏览器中搭建Monaco Editor,推荐使用 ESModule版本+WebPack+npm插件 的形式,比较简单。链接中即为官方给出的部署样例。 需要注意的是,经过笔者踩坑,推荐的node.js包版本为: "dependencies": { "monaco-editor": "=0.19.3", "monaco-editor-webpack-plugin": "=1.9.0", "webpack": "^3.6.0", "webpack-dev-server": "^2.9.1", } 其中, monaco-editor <= 0.19.1 时无换行自动缩进, monaco-editor = 0.20.0 时编辑器有概率在网页布局中只占高度5px。因此推荐使用版本0.19.2或0.19.3。对应的, monaco-editor-webpack-plugin 使用版本1.8.2(对应editor的0.19.2)或1.9.0(对应editor的0.19.3+)。

How to publish a LSP language server on VSCODE as we do extension

拟墨画扇 提交于 2019-12-24 09:46:51
问题 Have been through official site, the whole process is very well documented for publishing extension : vscode publish extension My doubt is regarding publish Language server(LSP) in vscode as file structure for LSP is different from that of Extension i.e extension just have Client but LSP has both Client and server directory separately as in LSP Code and Extension code. Do i need to run vsce publish separately in client and server directory ? Have been through various answers in stackoverflow

How to publish a LSP language server on VSCODE as we do extension

余生长醉 提交于 2019-12-24 09:42:08
问题 Have been through official site, the whole process is very well documented for publishing extension : vscode publish extension My doubt is regarding publish Language server(LSP) in vscode as file structure for LSP is different from that of Extension i.e extension just have Client but LSP has both Client and server directory separately as in LSP Code and Extension code. Do i need to run vsce publish separately in client and server directory ? Have been through various answers in stackoverflow

Language server with semantic highlight in VSCode

不打扰是莪最后的温柔 提交于 2019-12-12 09:38:14
问题 I'd like to write a language server to VSCode with semantic highlight support. The language I'm using has very complex rules, so I'd like not to rely on a tokenizer to distinguish between identifiers and keywords. I already have a language service in VS Community , where I've written my own Classifier. It's possible to write own classifier in VSCode , or the only way to colorize a document is add TextMate language specification file to a VScode package? 回答1: Semantic coloring is not supported

How to include a local language server in a dockerfile and build a docker image from it?

[亡魂溺海] 提交于 2019-12-08 04:30:31
问题 I need to run a local language server as a docker container by including it in a dockerfile. I built a simple language server following only the section under "Provide the Xtext Language Server". This is the Dockerfile I wrote to build the image: FROM eclipse/che ADD xtextls3 C:\Users\abc\xtext_ls3 RUN sudo apt-get install socat -y CMD socat TCP4-LISTEN:4417,reuseaddr,form EXEC:"xtextls" I don't know whether this is correct. "xtextls3" is the eclipse workspace folder I used to create my

How to include a local language server in a dockerfile and build a docker image from it?

拜拜、爱过 提交于 2019-12-06 19:39:35
I need to run a local language server as a docker container by including it in a dockerfile. I built a simple language server following only the section under "Provide the Xtext Language Server". This is the Dockerfile I wrote to build the image: FROM eclipse/che ADD xtextls3 C:\Users\abc\xtext_ls3 RUN sudo apt-get install socat -y CMD socat TCP4-LISTEN:4417,reuseaddr,form EXEC:"xtextls" I don't know whether this is correct. "xtextls3" is the eclipse workspace folder I used to create my language server. When I try to build this dockerfile, I get this error: ADD failed: stat /var/lib/docker/tmp

Language server with semantic highlight in VSCode

做~自己de王妃 提交于 2019-12-05 04:43:05
I'd like to write a language server to VSCode with semantic highlight support. The language I'm using has very complex rules, so I'd like not to rely on a tokenizer to distinguish between identifiers and keywords. I already have a language service in VS Community , where I've written my own Classifier. It's possible to write own classifier in VSCode , or the only way to colorize a document is add TextMate language specification file to a VScode package? Semantic coloring is not supported by the LSP as of VS Code 1.29. There are two main issues currently tracking this feature: LSP issue VS Code

Vscode Language Client extension - how to send a message from the server to the client?

眉间皱痕 提交于 2019-12-01 06:14:11
I have been developing a vscode extension that consits of client and server using the language server protocol. At the moment, I am trying to do the following thing: when the server detects a certain condition, he requests the client to load a certain number of files into the workspace. I am having serious problems doing this. Since the language server protocol does not have a specific request to do this I thought about sending a message from the server to the client and once the client detects this message he would proceed to execute this command. The problem is, I also do not know how to do