From 73920f40791b299aca00f56c387b7e414c74769b Mon Sep 17 00:00:00 2001 From: Stephen Gennard Date: Thu, 2 Jan 2025 20:44:36 +0000 Subject: [PATCH] wip - fix dark/light by using neutral theme (could be better) --- src/extension.ts | 2 +- src/vsdotmarkdown.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index bae8cc14..a6b6263a 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -634,7 +634,7 @@ export async function activate(context: ExtensionContext) { const updateDecorationsOnTextEditor = async (editor: vscode.TextEditor) => { await vsMarginHandler.updateDecorations(editor); - if (editor.document) { + if (editor && editor.document) { await linter.updateLinter(editor.document); } await colourCommentHandler.updateDecorations(editor); diff --git a/src/vsdotmarkdown.ts b/src/vsdotmarkdown.ts index 728486cd..a3dfc196 100644 --- a/src/vsdotmarkdown.ts +++ b/src/vsdotmarkdown.ts @@ -45,8 +45,8 @@ export async function view_dot_callgraph(context: vscode.ExtensionContext, setti const resourcesDirectory = vscode.Uri.joinPath(context.extensionUri, 'resources') const webviewPanel = vscode.window.createWebviewPanel( - 'vscodeTest', - 'VsCode test webview', + 'cobolCallGraph', + 'COBOL Call Graph', { viewColumn: vscode.ViewColumn.Beside, preserveFocus: true @@ -85,7 +85,6 @@ function setHtmlContent(webview: vscode.Webview, extensionContext: vscode.Extens style-src cspSource 'unsafe-inline'; script-src 'nonce-nonce' 'unsafe-inline'; "> - -