diff --git a/applications/klighd-vscode/src/klighd-webview-reopener.ts b/applications/klighd-vscode/src/klighd-webview-reopener.ts index 4e482370..d5c9a3d9 100644 --- a/applications/klighd-vscode/src/klighd-webview-reopener.ts +++ b/applications/klighd-vscode/src/klighd-webview-reopener.ts @@ -3,7 +3,7 @@ * * http://rtsys.informatik.uni-kiel.de/kieler * - * Copyright 2022-2023 by + * Copyright 2022-2024 by * + Kiel University * + Department of Computer Science * + Real-Time and Embedded Systems Group @@ -35,19 +35,6 @@ export class KlighdWebviewReopener { if (activeTextEditor) { const uri = activeTextEditor.document.fileName commands.executeCommand(command.diagramOpen, Uri.file(uri)) - } else { - // Register this an active editor changed to open the diagram then. - this.toDispose.push( - window.onDidChangeActiveTextEditor((editor) => { - let uri - if (editor) { - uri = editor.document.uri - } - commands.executeCommand(command.diagramOpen, uri) - // Remove listener again - this.toDispose.forEach((element) => element.dispose()) - }) - ) } } }