@@ -212,7 +212,7 @@ index 0000000000..0170b47241
212
212
+ common.minifyTask("out-vscode")
213
213
+ ));
214
214
diff --git a/package.json b/package.json
215
- index 4c7342cbd8..4c287f6c1a 100644
215
+ index d150d539ae..33078416d9 100644
216
216
--- a/package.json
217
217
+++ b/package.json
218
218
@@ -37,6 +37,9 @@
@@ -226,7 +226,7 @@ index 4c7342cbd8..4c287f6c1a 100644
226
226
"chokidar": "3.2.3",
227
227
"graceful-fs": "4.2.3",
228
228
diff --git a/product.json b/product.json
229
- index 91b3b92678..f76f2c1548 100644
229
+ index 335caa71f6..47607a3eb8 100644
230
230
--- a/product.json
231
231
+++ b/product.json
232
232
@@ -18,7 +18,7 @@
@@ -2532,12 +2532,13 @@ 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..8abb9a8e31
2535
+ index 0000000000..8b82854426
2536
2536
--- /dev/null
2537
2537
+++ b/src/vs/server/node/server.ts
2538
- @@ -0,0 +1,273 @@
2538
+ @@ -0,0 +1,277 @@
2539
2539
+ import * as net from 'net';
2540
2540
+ import * as path from 'path';
2541
+ + import * as fs from 'fs';
2541
2542
+ import { Emitter } from 'vs/base/common/event';
2542
2543
+ import { Schemas } from 'vs/base/common/network';
2543
2544
+ import { URI } from 'vs/base/common/uri';
@@ -2737,6 +2738,9 @@ index 0000000000..8abb9a8e31
2737
2738
+
2738
2739
+ private async initializeServices(args: ParsedArgs): Promise<void> {
2739
2740
+ const environmentService = new EnvironmentService(args, process.execPath);
2741
+ + // https://github.com/cdr/code-server/issues/1693
2742
+ + fs.mkdirSync(environmentService.globalStorageHome, { recursive: true });
2743
+ +
2740
2744
+ const logService = new SpdLogService(RemoteExtensionLogFileName, environmentService.logsPath, getLogLevel(environmentService));
2741
2745
+ const fileService = new FileService(logService);
2742
2746
+ fileService.registerProvider(Schemas.file, new DiskFileSystemProvider(logService));
@@ -2841,7 +2845,7 @@ index 3f2de2c738..a967d8df69 100644
2841
2845
import './mainThreadAuthentication';
2842
2846
import './mainThreadTimeline';
2843
2847
diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts
2844
- index db72957372..4514a56754 100644
2848
+ index 260b6468e9..882d3e442f 100644
2845
2849
--- a/src/vs/workbench/api/common/extHost.api.impl.ts
2846
2850
+++ b/src/vs/workbench/api/common/extHost.api.impl.ts
2847
2851
@@ -68,6 +68,7 @@ import { IURITransformerService } from 'vs/workbench/api/common/extHostUriTransf
@@ -2869,7 +2873,7 @@ index db72957372..4514a56754 100644
2869
2873
2870
2874
// automatically create and register addressable instances
2871
2875
diff --git a/src/vs/workbench/api/common/extHost.protocol.ts b/src/vs/workbench/api/common/extHost.protocol.ts
2872
- index c6b3c31999..08e413e7d1 100644
2876
+ index 7e1233484e..0f36de9496 100644
2873
2877
--- a/src/vs/workbench/api/common/extHost.protocol.ts
2874
2878
+++ b/src/vs/workbench/api/common/extHost.protocol.ts
2875
2879
@@ -748,6 +748,16 @@ export interface MainThreadLabelServiceShape extends IDisposable {
@@ -3093,13 +3097,13 @@ index 4781f22676..86c9246f51 100644
3093
3097
+ import { joinPath } from 'vs/base/common/resources';
3094
3098
+ import { IExtensionDescription } from 'vs/platform/extensions/common/extensions';
3095
3099
+ import { loadCommonJSModule } from 'vs/server/browser/worker';
3096
-
3100
+
3097
3101
class WorkerRequireInterceptor extends RequireInterceptor {
3098
-
3102
+
3099
3103
@@ -41,7 +44,14 @@ export class ExtHostExtensionService extends AbstractExtHostExtensionService {
3100
3104
await this._fakeModules.install();
3101
3105
}
3102
-
3106
+
3103
3107
- protected async _loadCommonJSModule<T>(module: URI, activationTimesBuilder: ExtensionActivationTimesBuilder): Promise<T> {
3104
3108
+ protected async _loadCommonJSModule<T>(module: URI | IExtensionDescription, activationTimesBuilder: ExtensionActivationTimesBuilder): Promise<T> {
3105
3109
+ if (!URI.isUri(module) && module.extensionKind !== 'web') {
@@ -3109,7 +3113,7 @@ index 4781f22676..86c9246f51 100644
3109
3113
+ if (!URI.isUri(module)) {
3110
3114
+ module = joinPath(module.extensionLocation, module.main!);
3111
3115
+ }
3112
-
3116
+
3113
3117
module = module.with({ path: ensureSuffix(module.path, '.js') });
3114
3118
const response = await fetch(module.toString(true));
3115
3119
@@ -57,7 +67,7 @@ export class ExtHostExtensionService extends AbstractExtHostExtensionService {
@@ -3184,10 +3188,10 @@ index 5ea3fd924b..de61b7fd17 100644
3184
3188
.scm-viewlet .monaco-list .monaco-list-row .resource-group > .actions,
3185
3189
.scm-viewlet .monaco-list .monaco-list-row .resource > .name > .monaco-icon-label > .actions {
3186
3190
diff --git a/src/vs/workbench/contrib/webview/browser/pre/main.js b/src/vs/workbench/contrib/webview/browser/pre/main.js
3187
- index f2ca5011dd..4683e80a68 100644
3191
+ index e21d86575c..22aa99c0f8 100644
3188
3192
--- a/src/vs/workbench/contrib/webview/browser/pre/main.js
3189
3193
+++ b/src/vs/workbench/contrib/webview/browser/pre/main.js
3190
- @@ -364 ,7 +364 ,8 @@
3194
+ @@ -351 ,7 +351 ,8 @@
3191
3195
if (data.endpoint) {
3192
3196
try {
3193
3197
const endpointUrl = new URL(data.endpoint);
@@ -3478,7 +3482,7 @@ index 2fda5eddd8..721cfdfd3e 100644
3478
3482
import 'vs/workbench/services/credentials/browser/credentialsService';
3479
3483
import 'vs/workbench/services/url/browser/urlService';
3480
3484
diff --git a/yarn.lock b/yarn.lock
3481
- index 458909e2b2..68f1a7e609 100644
3485
+ index 1bc94693ea..afd34e6b80 100644
3482
3486
--- a/yarn.lock
3483
3487
+++ b/yarn.lock
3484
3488
@@ -140,6 +140,23 @@
0 commit comments