Skip to content

Commit bc2c678

Browse files
authored
feat(1.104): update patches (#2491)
1 parent 69fe88f commit bc2c678

File tree

7 files changed

+37
-126
lines changed

7 files changed

+37
-126
lines changed

announcements-extra.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
[
2-
{
3-
"id": "#2358",
4-
"title": "Wanted! Feedback for new website :)",
5-
"url": "https://github.com/VSCodium/vscodium/discussions/2358"
6-
}
72
]

patches/brand.patch

Lines changed: 23 additions & 85 deletions
Large diffs are not rendered by default.

patches/chat.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
diff --git a/src/vs/workbench/contrib/chat/browser/chat.contribution.ts b/src/vs/workbench/contrib/chat/browser/chat.contribution.ts
2-
index 56220de..68d708f 100644
2+
index 549cfc6..9632509 100644
33
--- a/src/vs/workbench/contrib/chat/browser/chat.contribution.ts
44
+++ b/src/vs/workbench/contrib/chat/browser/chat.contribution.ts
5-
@@ -142,3 +142,3 @@ configurationRegistry.registerConfiguration({
6-
markdownDescription: nls.localize('chat.commandCenter.enabled', "Controls whether the command center shows a menu for actions to control Copilot (requires {0}).", '`#window.commandCenter#`'),
5+
@@ -171,3 +171,3 @@ configurationRegistry.registerConfiguration({
6+
markdownDescription: nls.localize('chat.commandCenter.enabled', "Controls whether the command center shows a menu for actions to control chat (requires {0}).", '`#window.commandCenter#`'),
77
- default: true
88
+ default: false
99
},

patches/linux/fix-reh-bootstrap.patch

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
diff --git a/src/bootstrap-esm.ts b/src/bootstrap-esm.ts
2-
index c4a55e6..7285051 100644
2+
index 54681a2..39f72ad 100644
33
--- a/src/bootstrap-esm.ts
44
+++ b/src/bootstrap-esm.ts
55
@@ -6,3 +6,3 @@
6-
import * as fs from 'fs';
6+
import * as fs from 'node:fs';
77
-import { register } from 'node:module';
88
+import * as Module from 'node:module';
99
import { product, pkg } from './bootstrap-meta.js';
@@ -18,25 +18,3 @@ index c4a55e6..7285051 100644
1818
+ // @ts-ignore
1919
+ Module.register(`data:text/javascript;base64,${Buffer.from(jsCode).toString('base64')}`, import.meta.url);
2020
}
21-
diff --git a/src/bootstrap-esm.ts.rej b/src/bootstrap-esm.ts.rej
22-
new file mode 100644
23-
index 0000000..df9a975
24-
--- /dev/null
25-
+++ b/src/bootstrap-esm.ts.rej
26-
@@ -0,0 +1,16 @@
27-
+diff a/src/bootstrap-esm.ts b/src/bootstrap-esm.ts (rejected hunks)
28-
+@@ -6,3 +6,3 @@
29-
+ import * as fs from 'fs';
30-
+-import { createRequire, register } from 'node:module';
31-
++import * as Module from 'node:module';
32-
+ import { product, pkg } from './bootstrap-meta.js';
33-
+@@ -12,6 +12,7 @@ import { INLSConfiguration } from './vs/nls.js';
34-
+
35-
+-const require = createRequire(import.meta.url);
36-
++const require = Module.createRequire(import.meta.url);
37-
+
38-
+ // Install a hook to module resolution to map 'fs' to 'original-fs'
39-
+-if (process.env['ELECTRON_RUN_AS_NODE'] || process.versions['electron']) {
40-
++// @ts-ignore
41-
++if (Module.register && (process.env['ELECTRON_RUN_AS_NODE'] || process.versions['electron'])) {
42-
+ const jsCode = `

patches/merge-user-product.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
diff --git a/src/main.ts b/src/main.ts
2-
index 1600666..eb6eee9 100644
2+
index deba4c4..1b41bde 100644
33
--- a/src/main.ts
44
+++ b/src/main.ts
55
@@ -8,2 +8,3 @@ import * as fs from 'original-fs';
6-
import * as os from 'os';
6+
import * as os from 'node:os';
77
+import { createRequire } from 'node:module';
8-
import { performance } from 'perf_hooks';
8+
import { performance } from 'node:perf_hooks';
99
@@ -22,2 +23,4 @@ import { NativeParsedArgs } from './vs/platform/environment/common/argv.js';
1010

1111
+const require = createRequire(import.meta.url);
@@ -31,7 +31,7 @@ index 1600666..eb6eee9 100644
3131
+ resolveUserProduct();
3232

3333
diff --git a/src/vs/platform/product/common/product.ts b/src/vs/platform/product/common/product.ts
34-
index a299f02..cca9de6 100644
34+
index 5a6c171..0cb5e20 100644
3535
--- a/src/vs/platform/product/common/product.ts
3636
+++ b/src/vs/platform/product/common/product.ts
3737
@@ -31,2 +31,36 @@ else if (globalThis._VSCODE_PRODUCT_JSON && globalThis._VSCODE_PACKAGE_JSON) {

patches/policies.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ index d7b29f2..1eb07aa 100644
5959
+ '@vscodium/policy-watcher',
6060
'@vscode/proxy-agent',
6161
diff --git a/package-lock.json b/package-lock.json
62-
index cef5e6a..2be4f62 100644
62+
index 1349d08..a6a2212 100644
6363
--- a/package-lock.json
6464
+++ b/package-lock.json
6565
@@ -18,3 +18,2 @@
6666
"@vscode/iconv-lite-umd": "0.7.0",
6767
- "@vscode/policy-watcher": "^1.3.2",
68-
"@vscode/proxy-agent": "^0.32.0",
68+
"@vscode/proxy-agent": "^0.33.0",
6969
@@ -29,2 +28,3 @@
7070
"@vscode/windows-registry": "^1.1.0",
7171
+ "@vscodium/policy-watcher": "^1.3.2-252465",
@@ -117,14 +117,14 @@ index cef5e6a..2be4f62 100644
117117
+ },
118118
"node_modules/@webassemblyjs/ast": {
119119
diff --git a/package.json b/package.json
120-
index 48fa670..db19440 100644
120+
index d9385d4..56d4690 100644
121121
--- a/package.json
122122
+++ b/package.json
123123
@@ -78,3 +78,3 @@
124124
"@vscode/iconv-lite-umd": "0.7.0",
125125
- "@vscode/policy-watcher": "^1.3.2",
126126
+ "@vscodium/policy-watcher": "^1.3.2-252465",
127-
"@vscode/proxy-agent": "^0.32.0",
127+
"@vscode/proxy-agent": "^0.33.0",
128128
diff --git a/src/vs/base/test/node/uri.perf.data.txt b/src/vs/base/test/node/uri.perf.data.txt
129129
index ee0a24b..881ce36 100644
130130
--- a/src/vs/base/test/node/uri.perf.data.txt

upstream/insider.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"tag": "1.104.0",
3-
"commit": "70e7eae7709159b57b503df2541e0cb2e7b66c92"
3+
"commit": "966ec1415440da5f1ef53acbd97ba2113add8853"
44
}

0 commit comments

Comments
 (0)