-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty VSCode plugin webview editor windows #13258
Comments
I'm facing the same issue and can confirm that reverting 72421be solves the problem. |
@jfaltermeier Could you take a look, please? |
Sure, the widget seems to be in the pending map still and |
* introduce widget manager method to find a widget based on testing its options * use this in webviews-main to also check pending widgets
@bvenreply @dhuebner If you have the time, could you please check whether #13265 fixes the issue for you? |
|
Actually @jfaltermeier, when I wrote the above I'd tested only the "hello world" extension I'd provided as a minimum example, testing the extension that initially prompted the bug report I still se some problems. The webview editor window is still empty in that case, and in the console I see errors when trying to fetch subresources: There is no more Let me know if I can provide any more details. BTW The extension I'm using is proprietary and that is why I have avoided sharing it. If needed I can ask permission to share it, but probably any extension that loads subresources in an editor webview will have the same issue. I'm also interested in any similar feedback from @dhuebner. |
Thanks, I'll have another look. I was able to create a reproducer. |
@bvenreply |
* fix {{uuid}} replacements * use an origin that is computed based on the view type
I've updated the PR. The initial reproducer and the vs code coding cat example (https://github.com/microsoft/vscode-extension-samples/blob/main/webview-sample/README.md) are both working + the initial reproducer of 72421be If there are still issues, I will open a 2nd PR to revert 72421be for now, and work on the further issues in parallel. |
I checked again and I see no more issues on my end. Thank you @jfaltermeier. |
@jfaltermeier |
@jfaltermeier |
* move uuid v5 hash method to core
Bug Description:
VSCode plugin webview editor windows are not displayed correctly. See this screenshot:
Left is a hello world vsce webview as loaded by current
master
. Right is the same webview after reverting this commit 72421beUpon opening the webview this error is logged:
Steps to Reproduce:
This can be reproduced on the Theia browser example. You will also need a sample VSCode extension, I pushed the source code for the one used above here. You can build it with
npm install && npx --yes --package @vscode/vsce vsce package --skip-license --allow-missing-repository
.Additional Information
6.1.0-17-amd64 GNU/Linux
master
(6a7bd87)The text was updated successfully, but these errors were encountered: