VSCode Integration - Debugging/Logging Sporadic Editor Blanking #1512
Replies: 1 comment 1 reply
-
Hi @jmenzies12, unfortunately your issue is indeed quite hard to debug. Could you provide a little bit more context about your project? What we know so far:
async resolveCustomEditor(
document: vscode.CustomDocument,
webviewPanel: vscode.WebviewPanel,
token: vscode.CancellationToken
): Promise<void> {
// This is used to initialize GLSP for our diagram
const diagramIdentifier: GLSPDiagramIdentifier = {
diagramType: this.diagramType,
uri: serializeUri(document.uri),
clientId: `${this.diagramType}_${this.viewCount++}`
};
const endpoint = new WebviewEndpoint({ diagramIdentifier, messenger: this.glspVscodeConnector.messenger, webviewPanel });
// Register document/diagram panel/model in vscode connector
this.glspVscodeConnector
.registerClient({
clientId: diagramIdentifier.clientId,
diagramType: diagramIdentifier.diagramType,
document: document,
webviewEndpoint: endpoint
})
.then(() => console.log('Client registration successful'))
.catch(error => console.error('Client registration failed', error));
this.setUpWebview(document, webviewPanel, token, diagramIdentifier.clientId);
} Now if you run into the blank window issue and receive the |
Beta Was this translation helpful? Give feedback.
-
Hey there,
We ran into an issue where the diagram editor will very infrequently go blank. Trying to get more information on what is causing this has been a bit of a nightmare.
The most I can see, is that the server connection is initialized but the client never gets to that point. However there are no errors in any of the logs or the browser console(webview dev tools) to indicate anything went wrong.
Normally we would get the following in the server log:
Initializing server with: applicationId: e88b642a-e35c-487d-ad9f-bbc5ea447d34, protocolVersion: 1.0.0
Initializing client session with: clientSessionId: 'argument-diagram_0', diagramType: 'argument-diagram'
However in this case we just get:
Initializing server with: applicationId: e88b642a-e35c-487d-ad9f-bbc5ea447d34, protocolVersion: 1.0.0
Do you have any suggestions that would allow us to gather more information on this issue?
How would I go about enabling "enableNotifications" in the client?
Cheers
Jonathan
Beta Was this translation helpful? Give feedback.
All reactions