mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-05 07:05:07 +01:00
committed by
GitHub
parent
8fc95494ce
commit
0df935dae9
@@ -59,7 +59,11 @@ export class RemoteExtensionsScannerService implements IRemoteExtensionsScannerS
|
||||
if (extensionsToInstall) {
|
||||
_logService.trace('Installing extensions passed via args...');
|
||||
this._whenExtensionsReady
|
||||
.then(() => _extensionManagementCLI.installExtensions(this._asExtensionIdOrVSIX(extensionsToInstall), [], { isMachineScoped: !!environmentService.args['do-not-sync'], installPreReleaseVersion: !!environmentService.args['pre-release'], isApplicationScoped: environmentService.args['all-profiles'] }, !!environmentService.args['force']))
|
||||
.then(() => _extensionManagementCLI.installExtensions(this._asExtensionIdOrVSIX(extensionsToInstall), [], {
|
||||
isMachineScoped: !!environmentService.args['do-not-sync'],
|
||||
installPreReleaseVersion: !!environmentService.args['pre-release'],
|
||||
isApplicationScoped: true // extensions installed during server startup are available to all profiles
|
||||
}, !!environmentService.args['force']))
|
||||
.then(() => {
|
||||
_logService.trace('Finished installing extensions');
|
||||
}, error => {
|
||||
|
||||
@@ -65,7 +65,6 @@ export const serverOptions: OptionDescriptions<Required<ServerParsedArgs>> = {
|
||||
'force': OPTIONS['force'],
|
||||
'do-not-sync': OPTIONS['do-not-sync'],
|
||||
'pre-release': OPTIONS['pre-release'],
|
||||
'all-profiles': { type: 'boolean' },
|
||||
'start-server': { type: 'boolean', cat: 'e', description: nls.localize('start-server', "Start the server when installing or uninstalling extensions. To be used in combination with 'install-extension', 'install-builtin-extension' and 'uninstall-extension'.") },
|
||||
|
||||
|
||||
@@ -182,7 +181,6 @@ export interface ServerParsedArgs {
|
||||
force?: boolean; // used by install-extension
|
||||
'do-not-sync'?: boolean; // used by install-extension
|
||||
'pre-release'?: boolean; // used by install-extension
|
||||
'all-profiles'?: boolean; // used by install-extension
|
||||
|
||||
'start-server'?: boolean;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user