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'; "> - -