fix: make webview works again (#1514)

This commit is contained in:
Baptiste Augrain 2023-05-11 16:01:50 +02:00 committed by GitHub
parent 7afbfe03ad
commit 272f67d95b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -979,24 +979,6 @@ index c13d93e..206e46a 100644
- content += `// By default, VS Code trusts "localhost".\n`;
+ content += `// By default, VSCodium trusts "localhost".\n`;
}
diff --git a/src/vs/workbench/contrib/webview/browser/pre/index-no-csp.html b/src/vs/workbench/contrib/webview/browser/pre/index-no-csp.html
index eceefad..b8ae78a 100644
--- a/src/vs/workbench/contrib/webview/browser/pre/index-no-csp.html
+++ b/src/vs/workbench/contrib/webview/browser/pre/index-no-csp.html
@@ -188,3 +188,3 @@
if (acquired && !${allowMultipleAPIAcquire}) {
- throw new Error('An instance of the VS Code API has already been acquired');
+ throw new Error('An instance of the VSCodium API has already been acquired');
}
diff --git a/src/vs/workbench/contrib/webview/browser/pre/index.html b/src/vs/workbench/contrib/webview/browser/pre/index.html
index 8e3d08e..3975d37 100644
--- a/src/vs/workbench/contrib/webview/browser/pre/index.html
+++ b/src/vs/workbench/contrib/webview/browser/pre/index.html
@@ -189,3 +189,3 @@
if (acquired && !${allowMultipleAPIAcquire}) {
- throw new Error('An instance of the VS Code API has already been acquired');
+ throw new Error('An instance of the VSCodium API has already been acquired');
}
diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts
index 5b4255e..f52e6bf 100644
--- a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts