-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Webview Inset API not showing HTML #136982
Comments
Seems to have broken with the August release 1.60.0 |
I can confirm the issue, in 1.62.2, Ubuntu 20.4. And an error pop-up appears on the lower-left of the window, telling:
|
Also the Latex pdf view in a VSCode tab is broken |
@jrieken happy to help if you have any idea where I should start looking |
Commit: b060030336b6b7da0f32ddb72f9c97cc4456cc48
I have pushed a code change that should restore insets. It's a fun issue, the API integration creates web views and uses simple number (as String) their identifiers. Those identifier are later used as iframe source (via @mjbvz I believe we are good now but I am leaving it up to you to do some special id validation or improved parsing |
Thanks @jrieken Closing this as it sounds like the original issue has been fixed |
Issue Type: Bug, can reproduce with a minimal repo on Linux and Windows.
The Webview Inset API from #85682 and #66418 does not appear to work. Here is how to reproduce:
vscode.window.createWebviewTextEditorInset()
inset.webview.html = ...
I know it's a proposed API, so I'm running on insiders, with
enableProposedApi: true
. It shows the space correctly, so I don't think it's a problem on my end.Here is the snippet I used, as well as a reproduction repository:
Repro: https://github.com/lollobaldo/vscode-trial
Inset:: Demo session
: inset appears, but html is not displayedVS Code version: Code - Insiders 1.62.0-insider (ff1e16e, 2021-10-29T07:49:33.336Z)
OS version: Linux x64 5.4.0-80-generic
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (3)
A/B Experiments
The text was updated successfully, but these errors were encountered: