File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/data-extensions-editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,6 +108,10 @@ export class DataExtensionsEditorView extends AbstractWebview<
108108 }
109109 } ) ;
110110
111+ panel . onDidDispose ( async ( ) => {
112+ await this . onPanelWasDisposed ( ) ;
113+ } ) ;
114+
111115 await this . waitForPanelLoaded ( ) ;
112116 }
113117
@@ -116,6 +120,13 @@ export class DataExtensionsEditorView extends AbstractWebview<
116120 DataExtensionsEditorView . mostRecentlyActivePanel = panel ;
117121 }
118122
123+ private async onPanelWasDisposed ( ) : Promise < void > {
124+ const panel = await this . getPanel ( ) ;
125+ if ( panel === DataExtensionsEditorView . mostRecentlyActivePanel ) {
126+ DataExtensionsEditorView . mostRecentlyActivePanel = undefined ;
127+ }
128+ }
129+
119130 private async isTheMostRecentlyActivePanel ( ) : Promise < boolean > {
120131 const panel = await this . getPanel ( ) ;
121132 return panel === DataExtensionsEditorView . mostRecentlyActivePanel ;
You can’t perform that action at this time.
0 commit comments