@@ -1462,7 +1462,7 @@ index 0000000000..0a9c95d50e
1462
1462
+ }
1463
1463
diff --git a/src/vs/server/node/channel.ts b/src/vs/server/node/channel.ts
1464
1464
new file mode 100644
1465
- index 0000000000..23058670f3
1465
+ index 0000000000..1166835371
1466
1466
--- /dev/null
1467
1467
+++ b/src/vs/server/node/channel.ts
1468
1468
@@ -0,0 +1,343 @@
@@ -1709,7 +1709,7 @@ index 0000000000..23058670f3
1709
1709
+ connectionToken: this.connectionToken,
1710
1710
+ appRoot: URI.file(this.environment.appRoot),
1711
1711
+ appSettingsHome: this.environment.appSettingsHome,
1712
- + settingsPath: this.environment.machineSettingsResource ,
1712
+ + settingsPath: this.environment.settingsResource ,
1713
1713
+ logsPath: URI.file(this.environment.logsPath),
1714
1714
+ extensionsPath: URI.file(this.environment.extensionsPath!),
1715
1715
+ extensionHostLogsPath: URI.file(path.join(this.environment.logsPath, 'extension-host')),
@@ -2532,10 +2532,10 @@ index 0000000000..3c74512192
2532
2532
+ }
2533
2533
diff --git a/src/vs/server/node/server.ts b/src/vs/server/node/server.ts
2534
2534
new file mode 100644
2535
- index 0000000000..8b82854426
2535
+ index 0000000000..80616dd11c
2536
2536
--- /dev/null
2537
2537
+++ b/src/vs/server/node/server.ts
2538
- @@ -0,0 +1,277 @@
2538
+ @@ -0,0 +1,281 @@
2539
2539
+ import * as net from 'net';
2540
2540
+ import * as path from 'path';
2541
2541
+ import * as fs from 'fs';
@@ -2738,8 +2738,8 @@ index 0000000000..8b82854426
2738
2738
+
2739
2739
+ private async initializeServices(args: ParsedArgs): Promise<void> {
2740
2740
+ const environmentService = new EnvironmentService(args, process.execPath);
2741
- + // https://github.com/cdr/code-server/issues/1693
2742
- + fs.mkdirSync(environmentService.globalStorageHome, { recursive: true });
2741
+ + // https://github.com/cdr/code-server/issues/1693
2742
+ + fs.mkdirSync(environmentService.globalStorageHome, { recursive: true });
2743
2743
+
2744
2744
+ const logService = new SpdLogService(RemoteExtensionLogFileName, environmentService.logsPath, getLogLevel(environmentService));
2745
2745
+ const fileService = new FileService(logService);
@@ -2758,7 +2758,11 @@ index 0000000000..8b82854426
2758
2758
+
2759
2759
+ this.services.set(ILogService, logService);
2760
2760
+ this.services.set(IEnvironmentService, environmentService);
2761
- + this.services.set(IConfigurationService, new SyncDescriptor(ConfigurationService, [environmentService.machineSettingsResource, fileService]));
2761
+ +
2762
+ + const configurationService = new ConfigurationService(environmentService.settingsResource, fileService);
2763
+ + await configurationService.initialize();
2764
+ + this.services.set(IConfigurationService, configurationService);
2765
+ +
2762
2766
+ this.services.set(IRequestService, new SyncDescriptor(RequestService));
2763
2767
+ this.services.set(IFileService, fileService);
2764
2768
+ this.services.set(IProductService, { _serviceBrand: undefined, ...product });
0 commit comments