mirror of
https://github.com/danog/code-server.git
synced 2024-11-30 04:39:46 +01:00
Fall back to remote extension server on web
This commit is contained in:
parent
a6d4b24733
commit
a65231808a
@ -24,6 +24,7 @@ import { IDialogService } from 'vs/platform/dialogs/common/dialogs';
|
||||
import Severity from 'vs/base/common/severity';
|
||||
import { canceled } from 'vs/base/common/errors';
|
||||
import { IUserDataAutoSyncEnablementService, IUserDataSyncResourceEnablementService, SyncResource } from 'vs/platform/userDataSync/common/userDataSync';
|
||||
import { isWeb } from 'vs/base/common/platform';
|
||||
|
||||
export class ExtensionManagementService extends Disposable implements IWorkbenchExtensioManagementService {
|
||||
|
||||
@ -304,17 +305,13 @@ export class ExtensionManagementService extends Disposable implements IWorkbench
|
||||
}
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
// NOTE@coder: Fall back to installing on the remote server.
|
||||
if (this.extensionManagementServerService.remoteExtensionManagementServer) {
|
||||
// NOTE@coder: Fall back to installing on the remote server on web.
|
||||
if (isWeb && this.extensionManagementServerService.remoteExtensionManagementServer) {
|
||||
return this.extensionManagementServerService.remoteExtensionManagementServer;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
=======
|
||||
// Local server can accept any extension. So return local server if not compatible server found.
|
||||
return this.extensionManagementServerService.localExtensionManagementServer;
|
||||
>>>>>>> e4a830e9b7ca039c7c70697786d29f5b6679d775
|
||||
}
|
||||
|
||||
private async hasToFlagExtensionsMachineScoped(extensions: IGalleryExtension[]): Promise<boolean> {
|
||||
|
Loading…
Reference in New Issue
Block a user