This is an automated email from the ASF dual-hosted git repository.

rstrickland pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git


The following commit(s) were added to refs/heads/main by this push:
     new b9fe15d  Remove duplicate data editor panel disposal calls
b9fe15d is described below

commit b9fe15d09da0df04e05b0170ed7758a00154d425
Author: Jeremy Yao <[email protected]>
AuthorDate: Mon Oct 13 13:51:05 2025 -0400

    Remove duplicate data editor panel disposal calls
    
    Closes #1461
---
 src/dataEditor/dataEditorClient.ts | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/dataEditor/dataEditorClient.ts 
b/src/dataEditor/dataEditorClient.ts
index 90d9287..9404906 100644
--- a/src/dataEditor/dataEditorClient.ts
+++ b/src/dataEditor/dataEditorClient.ts
@@ -157,11 +157,6 @@ export class DataEditorClient implements vscode.Disposable 
{
     this.panel = panel
     this.panel.webview.onDidReceiveMessage(this.messageReceiver, this)
 
-    this.panel.onDidDispose(async () => {
-      await this.dispose()
-      await removeActiveSession(this.omegaSessionId)
-    })
-
     this.disposables = [
       this.panel,
       vscode.debug.onDidReceiveDebugSessionCustomEvent(async (e) => {
@@ -229,6 +224,7 @@ export class DataEditorClient implements vscode.Disposable {
       await removeActiveSession(editor.sessionId())
       await editor.dispose()
     })
+
     if (isDFDLDebugSessionActive()) {
       editor.addDisposable(
         vscode.debug.onDidTerminateDebugSession(async () => {

Reply via email to