Microsoft/vscode
Ver no GitHubDisposing a webview view when extension host is restarted
Open
#188.257 aberto em 19 de jul. de 2023
bughelp wantedwebview-views
Métricas do repositório
- Stars
- (74.848 stars)
- Métricas de merge de PR
- (Mesclagem média 11h 43m) (1.000 fundiu PRs em 30d)
Description
Originally in https://github.com/microsoft/vscode-pull-request-github/issues/4872#issuecomment-1573555380
Here is what I see happen:
- Open a folder
- Have an extension that creates a webview view
- Keep the webview view open
- Add a folder to the workspace, which causes the extension host to be restarted.
- The extension's
deactivategets called as expected. Indeactivatethe extensiondisposes of the webview view provider. - With this
disposeI would expect the webview view to hide, but it does not.
You can easily reproduce the above using the GitHub Pull Request extension with the steps linked from the original issue.