mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-24 03:50:13 +10:00
feat(1.95): update patches (#2066)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"tag": "1.95.0",
|
"tag": "1.95.0",
|
||||||
"commit": "a016ec9b66ffdd3ff0f831768b8e75be008a54e4"
|
"commit": "c85acdad6b679973c79b01a38afa91448c705c1c"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,14 @@
|
|||||||
diff --git a/src/main.ts b/src/main.ts
|
diff --git a/src/main.ts b/src/main.ts
|
||||||
index 62ddd5f..a6fc3c5 100644
|
index ff9a5e8..6fb7fd2 100644
|
||||||
--- a/src/main.ts
|
--- a/src/main.ts
|
||||||
+++ b/src/main.ts
|
+++ b/src/main.ts
|
||||||
@@ -461,2 +461,5 @@ function configureCrashReporter(): void {
|
@@ -467,6 +467,9 @@ function configureCrashReporter(): void {
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
+ else {
|
+ else {
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Start crash reporter for all processes
|
||||||
|
|||||||
@@ -1,30 +1,31 @@
|
|||||||
diff --git a/src/main.ts b/src/main.ts
|
diff --git a/src/main.ts b/src/main.ts
|
||||||
index 62ddd5f..90c6cfd 100644
|
index ff9a5e8..2135d00 100644
|
||||||
--- a/src/main.ts
|
--- a/src/main.ts
|
||||||
+++ b/src/main.ts
|
+++ b/src/main.ts
|
||||||
@@ -8,2 +8,3 @@ import * as fs from 'original-fs';
|
@@ -8,2 +8,3 @@ import * as fs from 'original-fs';
|
||||||
import * as os from 'os';
|
import * as os from 'os';
|
||||||
+import { createRequire } from 'node:module';
|
+import { createRequire } from 'node:module';
|
||||||
import { configurePortable } from './bootstrap-node.js';
|
import { performance } from 'perf_hooks';
|
||||||
@@ -23,2 +24,3 @@ import { NativeParsedArgs } from './vs/platform/environment/common/argv.js';
|
@@ -24,2 +25,3 @@ import { NativeParsedArgs } from './vs/platform/environment/common/argv.js';
|
||||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||||
+const require = createRequire(import.meta.url);
|
+const require = createRequire(import.meta.url);
|
||||||
|
|
||||||
@@ -103,2 +105,13 @@ registerListeners();
|
@@ -112,2 +114,14 @@ registerListeners();
|
||||||
|
|
||||||
+function resolveUserProduct() {
|
+function resolveUserProduct() {
|
||||||
+ const userProductPath = `file:///${userDataPath}/product.json`;
|
+ const userProductPath = path.join(userDataPath, 'product.json');
|
||||||
+
|
+
|
||||||
+ try {
|
+ try {
|
||||||
+ // Assign the product configuration to the global scope
|
+ // Assign the product configuration to the global scope
|
||||||
+ const productPath = require(fileURLToPath(userProductPath));
|
+ const productJson = require(userProductPath);
|
||||||
+ globalThis._VSCODE_PRODUCT_JSON = productPath;
|
+ // @ts-expect-error
|
||||||
|
+ globalThis._VSCODE_USER_PRODUCT_JSON = productJson;
|
||||||
+ } catch (ex) {
|
+ } catch (ex) {
|
||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
/**
|
/**
|
||||||
@@ -174,2 +188,3 @@ async function startup(codeCachePath: string | undefined, nlsConfig: INLSConfigu
|
@@ -183,2 +197,3 @@ async function startup(codeCachePath: string | undefined, nlsConfig: INLSConfigu
|
||||||
process.env['VSCODE_CODE_CACHE_PATH'] = codeCachePath || '';
|
process.env['VSCODE_CODE_CACHE_PATH'] = codeCachePath || '';
|
||||||
+ resolveUserProduct();
|
+ resolveUserProduct();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user