Skip to content

Commit 5eb1d84

Browse files
committed
Update import paths
1 parent e4ceeab commit 5eb1d84

File tree

4 files changed

+28
-20
lines changed

4 files changed

+28
-20
lines changed

patches/insecure-notification.diff

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/client.ts
1717
--- code-server.orig/lib/vscode/src/vs/workbench/browser/client.ts
1818
+++ code-server/lib/vscode/src/vs/workbench/browser/client.ts
1919
@@ -1,7 +1,10 @@
20-
import { Disposable } from 'vs/base/common/lifecycle';
21-
+import { localize } from 'vs/nls';
22-
+import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
20+
import { Disposable } from "../../base/common/lifecycle.js";
21+
+import { localize } from '../../nls.js';
22+
+import { INotificationService, Severity } from '../../platform/notification/common/notification.js';
2323

2424
export class CodeServerClient extends Disposable {
2525
constructor (

patches/integration.diff

+11-3
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/client.ts
126126
--- /dev/null
127127
+++ code-server/lib/vscode/src/vs/workbench/browser/client.ts
128128
@@ -0,0 +1,46 @@
129-
+import { Disposable } from 'vs/base/common/lifecycle';
129+
+import { Disposable } from "../../base/common/lifecycle.js";
130130
+
131131
+export class CodeServerClient extends Disposable {
132132
+ constructor (
@@ -276,12 +276,20 @@ Index: code-server/lib/vscode/src/server-main.js
276276
===================================================================
277277
--- code-server.orig/lib/vscode/src/server-main.js
278278
+++ code-server/lib/vscode/src/server-main.js
279-
@@ -339,4 +339,7 @@ function prompt(question) {
279+
@@ -339,4 +339,15 @@ function prompt(question) {
280280
});
281281
}
282282

283283
-start();
284-
+export default async function loadCodeWithNls() {
284+
+async function loadCodeWithNls() {
285285
+ const nlsConfiguration = await resolveNLSConfiguration({ userLocale: 'en', osLocale: 'en', commit: product.commit, userDataPath: '', nlsMetadataPath: __dirname });
286286
+ return loadCode(nlsConfiguration);
287287
+}
288+
+
289+
+// This alias prevents the name getting mangled during obfuscation which would
290+
+// make it difficult to import.
291+
+export { loadCodeWithNls as loadCodeWithNls };
292+
+
293+
+if (!process.env.CODE_SERVER_PARENT_PID) {
294+
+ start();
295+
+}

patches/logout.diff

+8-8
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/client.ts
5353
--- code-server.orig/lib/vscode/src/vs/workbench/browser/client.ts
5454
+++ code-server/lib/vscode/src/vs/workbench/browser/client.ts
5555
@@ -1,11 +1,15 @@
56-
import { Disposable } from 'vs/base/common/lifecycle';
57-
import { localize } from 'vs/nls';
58-
+import { MenuId, MenuRegistry } from 'vs/platform/actions/common/actions';
59-
+import { CommandsRegistry } from 'vs/platform/commands/common/commands';
60-
import { ILogService } from 'vs/platform/log/common/log';
61-
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
62-
import { IProductService } from 'vs/platform/product/common/productService';
63-
import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storage/common/storage';
56+
import { Disposable } from "../../base/common/lifecycle.js";
57+
import { localize } from '../../nls.js';
58+
+import { MenuId, MenuRegistry } from '../../platform/actions/common/actions.js';
59+
+import { CommandsRegistry } from '../../platform/commands/common/commands.js';
60+
import { ILogService } from '../../platform/log/common/log.js';
61+
import { INotificationService, Severity } from '../../platform/notification/common/notification.js';
62+
import { IProductService } from '../../platform/product/common/productService.js';
63+
import { IStorageService, StorageScope, StorageTarget } from '../../platform/storage/common/storage.js';
6464

6565
export class CodeServerClient extends Disposable {
6666
+ static LOGOUT_COMMAND_ID = 'code-server.logout';

patches/update-check.diff

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/client.ts
1313
--- code-server.orig/lib/vscode/src/vs/workbench/browser/client.ts
1414
+++ code-server/lib/vscode/src/vs/workbench/browser/client.ts
1515
@@ -1,10 +1,16 @@
16-
import { Disposable } from 'vs/base/common/lifecycle';
17-
import { localize } from 'vs/nls';
18-
+import { ILogService } from 'vs/platform/log/common/log';
19-
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
20-
+import { IProductService } from 'vs/platform/product/common/productService';
21-
+import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storage/common/storage';
16+
import { Disposable } from "../../base/common/lifecycle.js";
17+
import { localize } from '../../nls.js';
18+
+import { ILogService } from '../../platform/log/common/log.js';
19+
import { INotificationService, Severity } from '../../platform/notification/common/notification.js';
20+
+import { IProductService } from '../../platform/product/common/productService.js';
21+
+import { IStorageService, StorageScope, StorageTarget } from '../../platform/storage/common/storage.js';
2222

2323
export class CodeServerClient extends Disposable {
2424
constructor (

0 commit comments

Comments
 (0)