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

Any help would be highly appreciated.


回答1:


You should only need to publish the extension itself (the client) and not the server.

The LSP example is a little weird because it shows the client and server folders side by side, whereas the server is actually a dependency of the client. You can either pull in the server as a node module or copy the server JS into the client like the example does. Then just run vsce publish in the client to push everything up to the marketplace



来源:https://stackoverflow.com/questions/45442869/how-to-publish-a-lsp-language-server-on-vscode-as-we-do-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!