Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose all-profiles arg to the server cli #176814

Merged
merged 1 commit into from Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vs/server/node/remoteExtensionsScanner.ts
Expand Up @@ -59,7 +59,7 @@ 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'] }, !!environmentService.args['force']))
.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(() => {
_logService.trace('Finished installing extensions');
}, error => {
Expand Down
2 changes: 2 additions & 0 deletions src/vs/server/node/serverEnvironmentService.ts
Expand Up @@ -65,6 +65,7 @@ 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'.") },


Expand Down Expand Up @@ -181,6 +182,7 @@ 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;

Expand Down