Skip to content

Commit 3f44e3f

Browse files
authored
feat(1.104): update patches (#2448)
1 parent 9ffd0a3 commit 3f44e3f

File tree

5 files changed

+22
-20
lines changed

5 files changed

+22
-20
lines changed

patches/linux/fix-reh-bootstrap.patch

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
diff --git a/src/bootstrap-esm.ts b/src/bootstrap-esm.ts
2-
index f2cf101..d974f65 100644
2+
index 188a25a..12b262d 100644
33
--- a/src/bootstrap-esm.ts
44
+++ b/src/bootstrap-esm.ts
5-
@@ -8,3 +8,3 @@ import * as fs from 'fs';
6-
import { fileURLToPath } from 'url';
5+
@@ -6,3 +6,3 @@
6+
import * as fs from 'fs';
77
-import { createRequire, register } from 'node:module';
88
+import * as Module from 'node:module';
99
import { product, pkg } from './bootstrap-meta.js';
10-
@@ -14,3 +14,4 @@ import { INLSConfiguration } from './vs/nls.js';
10+
@@ -12,6 +12,7 @@ import { INLSConfiguration } from './vs/nls.js';
1111

1212
-const require = createRequire(import.meta.url);
13-
+// @ts-ignore
1413
+const require = Module.createRequire(import.meta.url);
15-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
16-
@@ -18,3 +19,4 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
14+
1715
// Install a hook to module resolution to map 'fs' to 'original-fs'
1816
-if (process.env['ELECTRON_RUN_AS_NODE'] || process.versions['electron']) {
1917
+// @ts-ignore
2018
+if (Module.register && (process.env['ELECTRON_RUN_AS_NODE'] || process.versions['electron'])) {
2119
const jsCode = `
22-
@@ -33,3 +35,4 @@ if (process.env['ELECTRON_RUN_AS_NODE'] || process.versions['electron']) {
20+
@@ -30,3 +31,4 @@ if (process.env['ELECTRON_RUN_AS_NODE'] || process.versions['electron']) {
2321
}`;
2422
- register(`data:text/javascript;base64,${Buffer.from(jsCode).toString('base64')}`, import.meta.url);
2523
+ // @ts-ignore

patches/merge-user-product.patch

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
diff --git a/src/main.ts b/src/main.ts
2-
index fdc424e..46b014b 100644
2+
index 1600666..eb6eee9 100644
33
--- a/src/main.ts
44
+++ b/src/main.ts
55
@@ -8,2 +8,3 @@ import * as fs from 'original-fs';
66
import * as os from 'os';
77
+import { createRequire } from 'node:module';
88
import { performance } from 'perf_hooks';
9-
@@ -24,2 +25,3 @@ import { NativeParsedArgs } from './vs/platform/environment/common/argv.js';
10-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
11-
+const require = createRequire(import.meta.url);
9+
@@ -22,2 +23,4 @@ import { NativeParsedArgs } from './vs/platform/environment/common/argv.js';
1210

13-
@@ -112,2 +114,14 @@ registerListeners();
11+
+const require = createRequire(import.meta.url);
12+
+
13+
perf.mark('code/didStartMain');
14+
@@ -109,2 +112,14 @@ registerListeners();
1415

1516
+function resolveUserProduct() {
1617
+ const userProductPath = path.join(userDataPath, 'product.json');
@@ -25,12 +26,12 @@ index fdc424e..46b014b 100644
2526
+}
2627
+
2728
/**
28-
@@ -208,2 +222,3 @@ async function startup(codeCachePath: string | undefined, nlsConfig: INLSConfigu
29+
@@ -205,2 +220,3 @@ async function startup(codeCachePath: string | undefined, nlsConfig: INLSConfigu
2930
process.env['VSCODE_CODE_CACHE_PATH'] = codeCachePath || '';
3031
+ resolveUserProduct();
3132

3233
diff --git a/src/vs/platform/product/common/product.ts b/src/vs/platform/product/common/product.ts
33-
index d27cdce..d758c5e 100644
34+
index a299f02..cca9de6 100644
3435
--- a/src/vs/platform/product/common/product.ts
3536
+++ b/src/vs/platform/product/common/product.ts
3637
@@ -31,2 +31,36 @@ else if (globalThis._VSCODE_PRODUCT_JSON && globalThis._VSCODE_PACKAGE_JSON) {
File renamed without changes.

product.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,6 @@
357357
"chatReferenceBinaryData",
358358
"codeActionAI"
359359
],
360-
"lramos15.model-playground": [
361-
"chatProvider"
362-
],
363360
"ms-autodev.vscode-autodev": [
364361
"chatParticipantAdditions"
365362
],
@@ -370,6 +367,12 @@
370367
"vscjava.vscode-java-upgrade": [
371368
"chatParticipantAdditions"
372369
],
370+
"FoundryLocal.foundry-local-chat": [
371+
"chatProvider"
372+
],
373+
"Microsoft.foundry-local-chat": [
374+
"chatProvider"
375+
],
373376
"jeanp413.open-remote-ssh": [
374377
"resolvers",
375378
"tunnels",

upstream/insider.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"tag": "1.103.0",
3-
"commit": "e3550cfac4b63ca4eafca7b601f0d2885817fd1f"
2+
"tag": "1.104.0",
3+
"commit": "2c749892adf66679e282a1b27ae526cf995d6f0c"
44
}

0 commit comments

Comments
 (0)