Skip to content

Commit

Permalink
fix: make sure old fix panels are closed on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelAquilina committed Apr 11, 2024
1 parent 77497e3 commit ab46efd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/snyk/snykCode/views/webviewPanelSerializer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as vscode from 'vscode';
import { WebviewProvider } from '../../../snyk/common/views/webviewProvider';

export class WebviewPanelSerializer<_ extends WebviewProvider<State>, State> implements vscode.WebviewPanelSerializer {
async deserializeWebviewPanel(webviewPanel: vscode.WebviewPanel): Promise<void> {
// we want to make sure the panel is closed on startup
await webviewPanel.dispose();
}
}

0 comments on commit ab46efd

Please sign in to comment.