Discussed in #1661
Originally posted by jmenzies12 May 7, 2026
Hey there,
Is this possible? Unsure if maybe I'm doing something wrong
Following #1167, I set up our diagram server similarly with a separate module for each diagram type registered against the same server module.
On the client side I created a single diagram server (SocketGlspVscodeServer) and vscode connector. Then I created an editor provider for each diagram type (passing the same vscode connector to both) and register that with vscode.
This worked initially with the diagrams loading and actions being performed correctly however I'm running into a weird error when the handleSetDirtyStateAction (onDidChangeCustomDocumentEventEmitter) is triggered. It throws a "No Custom Document found" error, however undo/redo work fine and the documents dirty state seems to be working fine.
If I remove the editor provider for one of the diagrams, the error goes away.
Cheers
Jonathan
Discussed in #1661
Originally posted by jmenzies12 May 7, 2026
Hey there,
Is this possible? Unsure if maybe I'm doing something wrong
Following #1167, I set up our diagram server similarly with a separate module for each diagram type registered against the same server module.
On the client side I created a single diagram server (SocketGlspVscodeServer) and vscode connector. Then I created an editor provider for each diagram type (passing the same vscode connector to both) and register that with vscode.
This worked initially with the diagrams loading and actions being performed correctly however I'm running into a weird error when the handleSetDirtyStateAction (onDidChangeCustomDocumentEventEmitter) is triggered. It throws a "No Custom Document found" error, however undo/redo work fine and the documents dirty state seems to be working fine.
If I remove the editor provider for one of the diagrams, the error goes away.
Cheers
Jonathan