Skip to content

Commit 51d8c91

Browse files
authored
Merge branch 'main' into jsjoeio/update-starting-page
2 parents 1e7b08b + ba44f6c commit 51d8c91

File tree

5 files changed

+25
-28
lines changed

5 files changed

+25
-28
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "code-server",
33
"license": "MIT",
4-
"version": "4.8.0",
4+
"version": "4.8.1-rc.1",
55
"description": "Run VS Code on a remote server.",
66
"homepage": "https://github.com/coder/code-server",
77
"bugs": {

patches/parent-origin.diff

Lines changed: 0 additions & 24 deletions
This file was deleted.

patches/telemetry.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Add support for telemetry endpoint
33
To test:
44
1. Create a RequestBin - https://requestbin.io/
55
2. Run code-server with `CS_TELEMETRY_URL` set:
6-
i.e. `CS_TELEMETRY_URL="https://requestbin.io/1ebub9z1" ./code-server-4.8.0-macos-amd64/bin/code-server`
6+
i.e. `CS_TELEMETRY_URL="https://requestbin.io/1ebub9z1" ./code-server-<version>-macos-amd64/bin/code-server`
77
3. Load code-server in browser an do things (i.e. open a file)
88
4. Refresh RequestBin and you should see logs
99

patches/webview.diff

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ Make sure to update the hash. To do so:
2525
2. open any webview (i.e. preview Markdown)
2626
3. see error in console and copy hash
2727

28+
That will test the hash change in pre/index.html
29+
30+
Double-check the console to make sure there are no console errors for the webWorkerExtensionHostIframe
31+
which also requires a hash change.
32+
33+
parentOriginHash changes
34+
35+
This fixes webviews from not working properly due to a change upstream.
36+
Upstream added a check to ensure parent authority is encoded into the webview
37+
origin. Since our webview origin is the parent authority, we can bypass this
38+
check.
39+
2840
Index: code-server/lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts
2941
===================================================================
3042
--- code-server.orig/lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts
@@ -54,6 +66,15 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index
5466
===================================================================
5567
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index.html
5668
+++ code-server/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index.html
69+
@@ -5,7 +5,7 @@
70+
<meta charset="UTF-8">
71+
72+
<meta http-equiv="Content-Security-Policy"
73+
- content="default-src 'none'; script-src 'sha256-wwaDxsm1+SKIUb5YJXiZlYMyV7QPB8+zd6HPcTjigZs=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
74+
+ content="default-src 'none'; script-src 'sha256-IZkGO4jZeUn7pzM6pBZCZc9bUYm8oVNV3z8zEa8gxlk=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
75+
76+
<!-- Disable pinch zooming -->
77+
<meta name="viewport"
5778
@@ -331,6 +331,12 @@
5879

5980
const hostname = location.hostname;
@@ -93,7 +114,7 @@ Index: code-server/lib/vscode/src/vs/workbench/services/extensions/worker/webWor
93114
default-src 'none';
94115
child-src 'self' data: blob:;
95116
- script-src 'self' 'unsafe-eval' 'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' https:;
96-
+ script-src 'self' 'unsafe-eval' 'sha256-wwaDxsm1+SKIUb5YJXiZlYMyV7QPB8+zd6HPcTjigZs=' https:;
117+
+ script-src 'self' 'unsafe-eval' 'sha256-TkIM/TmudlFEe0ZRp0ptvN54LClwk30Rql4ZPE0hm/I=' https:;
97118
connect-src 'self' https: wss: http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:*;"/>
98119
</head>
99120
<body>

test/unit/node/test-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "test-plugin",
44
"version": "1.0.0",
55
"engines": {
6-
"code-server": "^4.8.0"
6+
"code-server": "^4.8.1-rc.1"
77
},
88
"main": "out/index.js",
99
"devDependencies": {

0 commit comments

Comments
 (0)