Proper guide on how to intgreate GLSP in VSCode #1224
Replies: 5 comments 6 replies
-
Hi @PatrikN-work , I am currently working on the same problem. My current code looks like this (but it is not working for some reason) import { ContainerConfiguration } from '@eclipse-glsp/client';
import { GLSPStarter } from '@eclipse-glsp/vscode-integration-webview';
import '@eclipse-glsp/vscode-integration-webview/css/glsp-vscode.css';
import { createBPMNDiagramContainer } from '@open-bpmn/open-bpmn-glsp/lib';
import { Container } from 'inversify';
// css styles
import './css/bpmn-vscode.css';
class BPMNGLSPStarter extends GLSPStarter {
createContainer(...containerConfiguration: ContainerConfiguration): Container {
return createBPMNDiagramContainer(...containerConfiguration);
}
}
export function launch(): void {
new BPMNGLSPStarter();
} you can see that I import the class
|
Beta Was this translation helpful? Give feedback.
-
An in-depth documentation on the different integrations would be indeed be very nice! At the moment we only have the following unfortunately:
|
Beta Was this translation helpful? Give feedback.
-
I made some progress but still the vscode integration did not work for me :-( I started writing some kind of quick-start-guide . I am not sure if what I am writing there is correct or if it is nonsense....? |
Beta Was this translation helpful? Give feedback.
-
Finally my implementation works! I have updated my general Quickstart-Guide. There are a lot of details to take care of. |
Beta Was this translation helpful? Give feedback.
-
Today I found out another very important aspect of a useful project setup. To build your vs-code-integration project based on your current development of your core glsp diagram, you should work with a "resolutions": {
"@my-glsp-project/my-diagram-code": "file:./../my-glsp-project/my-diagram-code/",
"string-width": "4.2.3"
}, For most of you, this is probably self-evident. However, it wasn't clear to me. This seems to be the best way to avoid yarn linking and all the other ugly ways to work with local packages. I have updated my quick-start-guide explaining the project structure in more detail. I hope parts of this guide will find a way into the glsp-vscode-integration project as my project is not the best place to explain this.... ;-) |
Beta Was this translation helpful? Give feedback.
-
Is there a proper guide on how to integrate GLSP in VSCode soemwhere?
I've been looking at https://github.com/eclipse-glsp/glsp-vscode-integration but it is a bit hard to digest just the code without explanations. Is there something more like a tutorial, explaining things like in @eclipse-glsp/vscode-integration/node
(yes, I want to be spoon fed ;-) )
Beta Was this translation helpful? Give feedback.
All reactions