Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 authored Aug 24, 2022
1 parent aee288e commit e197a11
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/vs/platform/environment/common/argv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export interface NativeParsedArgs {
editSessionId?: string;
'locate-shell-integration-path'?: string;
'profile'?: string;
'profile-transient'?: boolean;
'profile-temp'?: boolean;

// chromium command line args: https://electronjs.org/docs/all#supported-chrome-command-line-switches
'no-proxy-server'?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/platform/environment/node/argv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const OPTIONS: OptionDescriptions<Required<NativeParsedArgs>> = {
'locale': { type: 'string', cat: 'o', args: 'locale', description: localize('locale', "The locale to use (e.g. en-US or zh-TW).") },
'user-data-dir': { type: 'string', cat: 'o', args: 'dir', description: localize('userDataDir', "Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code.") },
'profile': { type: 'string', 'cat': 'o', args: 'settingsProfileName', description: localize('settingsProfileName', "Opens the provided folder or workspace with the given profile and associates the profile with the workspace. If the profile does not exist, a new empty one is created. A folder or workspace must be provided for the profile to take effect.") },
'profile-transient': { type: 'boolean', 'cat': 'o', description: localize('transientProfile', "Creates an empty transient profile and opens the provided folder or workspace with this profile. A folder or workspace must be provided for the profile to take effect.") },
'profile-temp': { type: 'boolean', 'cat': 'o', description: localize('temporaryProfile', "Creates an empty temporary profile and opens the provided folder or workspace with this profile. A folder or workspace must be provided for the profile to take effect.") },
'help': { type: 'boolean', cat: 'o', alias: 'h', description: localize('help', "Print usage.") },

'extensions-dir': { type: 'string', deprecates: ['extensionHomePath'], cat: 'e', args: 'dir', description: localize('extensionHomePath', "Set the root path for extensions.") },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class UserDataProfilesMainService extends UserDataProfilesService impleme
}
return this.createProfile(args.profile).then(() => args);
}
if (args['profile-transient']) {
if (args['profile-temp']) {
return this.createTransientProfile()
.then(profile => {
// Set the profile name to use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ registerAction2(class CreateProfileAction extends Action2 {
registerAction2(class CreateTransientProfileAction extends Action2 {
constructor() {
super({
id: 'workbench.profiles.actions.createTransientProfile',
id: 'workbench.profiles.actions.createTemporaryProfile',
title: {
value: localize('create transient profile', "Create Transient Settings Profile"),
original: 'Create Transient Settings Profile'
value: localize('create temporary profile', "Create a Temporary Settings Profile"),
original: 'Create a Temporary Settings Profile'
},
category: PROFILES_CATEGORY,
f1: true,
Expand Down

0 comments on commit e197a11

Please sign in to comment.