Avoid using hardcoded `vscode-resource` in the URIs when referencing scripts or images

Issue #443 resolved
Vitaliy Gulyy created an issue

Those URIs work fine for electron, but don’t work properly when the VS Code is running in the browser.
We also faced some issues related to `vscode-resource` and CSP when tried to run the extension in Che-Theia
To ensure that the extension will work in any environment, it’s necessary to:

Those APIs shipped around a year ago so should be available in modern versions of VS Code .

The additional information about the change could be found here https://github.com/microsoft/vscode/issues/97962
The release notes with the description of those APIs https://code.visualstudio.com/updates/v1_38#_webviewaswebviewuri-and-webviewcspsource

Comments (2)

  1. Log in to comment