Skip to content

Fix webview disappearing when extension is slow to start (#168516)#168569

Merged
mjbvz merged 1 commit intomicrosoft:mainfrom
r3m0t:webview-scroll-fix
Dec 15, 2022
Merged

Fix webview disappearing when extension is slow to start (#168516)#168569
mjbvz merged 1 commit intomicrosoft:mainfrom
r3m0t:webview-scroll-fix

Conversation

@r3m0t
Copy link
Contributor

@r3m0t r3m0t commented Dec 9, 2022

Fixes #168516

To test:

Build the extension in webview-view-sample folder at https://github.com/r3m0t/vscode-extension-samples/tree/webview-samples-slow and install it into VS Code/Code - OSS Dev

Close Workspace (if any is open)

Choose Foo on the activity bar, it loads eventually:

image

From Command Palette, run "Add folder to Workspace" and choose a trusted folder.

Correct behaviour: the Foo reloads.

Incorrect behaviour (seen in VS Code Insiders and probably VS Code): see screenshot - the webviews are empty

image

@mjbvz mjbvz added this to the January 2023 milestone Dec 15, 2022
@mjbvz mjbvz merged commit 46ceb40 into microsoft:main Dec 15, 2022
@mjbvz
Copy link
Collaborator

mjbvz commented Dec 15, 2022

Thanks! Will be in the next VS Code insiders and should go out to stable with VS Code 1.75

@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webview panel is missing after changing folders

2 participants