-
I have strange effect when running my GLSP Diagram in VS-Code. I implemented a custom But within my VS-Code Extension the panel is not shown, even if the rest of the diagram editor works perfect (e.g. also the tool palette is shown which was my scaffolder for my own implementation). I did a lot of debugging within VSCode. The problem is, that the methods But my What could be the reason that in VSCode my Module is only treated as a This is how I bound my UIExtension to my export default function createBPMNDiagramContainer(widgetId: string): Container {
// Note: the widgetId is generated by the GLSP core and is something like 'bpmn-diagram_0'
const container = createDiagramContainer(bpmnDiagramModule, bpmnPropertyModule);
overrideViewerOptions(container, {
baseDiv: widgetId,
hiddenDiv: widgetId + '_hidden'
});
return container;
} And this is how my class BPMNGLSPStarter extends GLSPStarter {
createContainer(diagramIdentifier: SprottyDiagramIdentifier): Container {
return createBPMNDiagramContainer(diagramIdentifier.clientId);
}
}
export function launch(): void {
new BPMNGLSPStarter();
} Do I miss something regarding registering my UIExtension which is done by Theia out of the box? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
HI @rsoika, |
Beta Was this translation helpful? Give feedback.
HI @rsoika,
at first glance it looks like your extension is never set to
visible
.I had a look at the properties panel implementation and you are using an editMode listener to active the extension.
This works for the theia-integration because it dispatches a
SetEditModeAction
during the startup. For the vscode-integration this is not the case (not sure why, probably an oversight).To work around this you could override the
GLSPVscodeDiagramWidget.initializeSprotty
method and dispatch theSetEditModeAction
yourself.