Skip to content

Commit a652318

Browse files
committed
Fall back to remote extension server on web
1 parent a6d4b24 commit a652318

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { IDialogService } from 'vs/platform/dialogs/common/dialogs';
2424
import Severity from 'vs/base/common/severity';
2525
import { canceled } from 'vs/base/common/errors';
2626
import { IUserDataAutoSyncEnablementService, IUserDataSyncResourceEnablementService, SyncResource } from 'vs/platform/userDataSync/common/userDataSync';
27+
import { isWeb } from 'vs/base/common/platform';
2728

2829
export class ExtensionManagementService extends Disposable implements IWorkbenchExtensioManagementService {
2930

@@ -304,17 +305,13 @@ export class ExtensionManagementService extends Disposable implements IWorkbench
304305
}
305306
}
306307

307-
<<<<<<< HEAD
308-
// NOTE@coder: Fall back to installing on the remote server.
309-
if (this.extensionManagementServerService.remoteExtensionManagementServer) {
308+
// NOTE@coder: Fall back to installing on the remote server on web.
309+
if (isWeb && this.extensionManagementServerService.remoteExtensionManagementServer) {
310310
return this.extensionManagementServerService.remoteExtensionManagementServer;
311311
}
312312

313-
return undefined;
314-
=======
315313
// Local server can accept any extension. So return local server if not compatible server found.
316314
return this.extensionManagementServerService.localExtensionManagementServer;
317-
>>>>>>> e4a830e9b7ca039c7c70697786d29f5b6679d775
318315
}
319316

320317
private async hasToFlagExtensionsMachineScoped(extensions: IGalleryExtension[]): Promise<boolean> {

0 commit comments

Comments
 (0)