Need help to include language functionality into GLSP's vs code client #384
-
I have configured GLSP's server and now it can support both diagram and language functionality. This server can interact with language client(implemented using LanguageClient of "vscode-languageclient" module) and GLSP's vs code client(to generate diagrams). https://github.com/eclipse-glsp/glsp-vscode-integration (GLSP's vs code client) supports only diagram functionality. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'm not sure I completely follow your question. |
Beta Was this translation helpful? Give feedback.
-
@planger , I followed below approach to create a client that supports textual representation and diagrams for textual representation. Cloned https://github.com/eclipse/sprotty-vscode.git sprotty-vscode project. Instead of using this project's language server, I used mine language server. Below were the changes related to server option(https://github.com/eclipse/sprotty-vscode/blob/master/example/states/extension/src/states-lsp-extension.ts). Language functionality(textual representation) is working fine. When I open diagram from text editor, new WebView will be opened but nonfiction/message related to WebView will not be sent to server from language client(Notification related to language functionality are working fine). Also, nonfiction/message will be sent to language client from WebView . Please help me to resolve this issue. Also, please share any documentation which will be helpful to implement sprotty vscode integration. |
Beta Was this translation helpful? Give feedback.
@planger ,
I followed below approach to create a client that supports textual representation and diagrams for textual representation.
Cloned https://github.com/eclipse/sprotty-vscode.git sprotty-vscode project. Instead of using this project's language server, I used mine language server.
Below were the changes related to server option(https://github.com/eclipse/sprotty-vscode/blob/master/example/states/extension/src/states-lsp-extension.ts).
Language functionality(textual representation) is working fine. When I open diagram from text editor, new WebView will be opened but nonfiction/message related to WebView will not be sent to server from language client(Notification related to languag…