Webview Panels Dispose Bug #158839
Labels
bug
Issue identified by VS Code Team member as probable bug
*duplicate
Issue identified as a duplicate of another issue(s)
I was running into an issue where closing a webview panel on extension deactivating. When I add a root to a multi-root workspace, the extension is deactivated (which is expected), but the panel isn't disposed although I specifically ask it to.
Repro steps in extension sample:
This is causing an issue in live preview where the preview persists when you add a root to a single-root workspace although the extension has deactivated. 😢
I talked to Rob about this bug in live preview and he found that the issue was here:
vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.ts
Line 130 in dae1f74
He mentioned that it was because the webview panels weren't being disposed properly.
cc: @roblourens
The text was updated successfully, but these errors were encountered: