Skip to content

Empty VSCode plugin webview editor windows #13258

@bvenreply

Description

@bvenreply

Bug Description:

VSCode plugin webview editor windows are not displayed correctly. See this screenshot:

image

Left is a hello world vsce webview as loaded by current master. Right is the same webview after reverting this commit 72421be

Upon opening the webview this error is logged:

2024-01-10T17:16:06.195Z root ERROR [hosted-plugin: 586850] Promise rejection not handled in one second: Error: Unknown Webview: 0917c540-d516-4f59-ace9-bb9fff13c70c , reason: Error: Unknown Webview: 0917c540-d516-4f59-ace9-bb9fff13c70c
With stack trace: Error: Unknown Webview: 0917c540-d516-4f59-ace9-bb9fff13c70c
    at WebviewsMainImpl.getWebview (http://localhost:3000/packages_plugin-ext_lib_hosted_browser_hosted-plugin_js.js:13987:19)
    at async WebviewsMainImpl.$setHtml (http://localhost:3000/packages_plugin-ext_lib_hosted_browser_hosted-plugin_js.js:13917:25)
    at async RpcProtocol.handleRequest (http://localhost:3000/bundle.js:147209:28)

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.

  • Open Theia
  • Install the sample vsce
  • Open the command palette and select Open HelloWorld webview
  • Observe the empty window and error logged in the backend

Additional Information

  • Operating System: 6.1.0-17-amd64 GNU/Linux
  • Theia Version: master (6a7bd87)
  • Browser: Chromium version 119

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions