diff --git a/resources/linux/code.desktop b/resources/linux/code.desktop index e2e3f534751..3df90289b5c 100755 --- a/resources/linux/code.desktop +++ b/resources/linux/code.desktop @@ -2,7 +2,7 @@ Name=@@NAME_LONG@@ Comment=Code Editing. Redefined. GenericName=Text Editor -Exec=@@EXEC@@ --unity-launch %F +Exec=@@EXEC@@ %F Icon=@@ICON@@ Type=Application StartupNotify=false diff --git a/src/vs/code/electron-main/app.ts b/src/vs/code/electron-main/app.ts index 578b00a796e..4474ddb04ca 100644 --- a/src/vs/code/electron-main/app.ts +++ b/src/vs/code/electron-main/app.ts @@ -1356,7 +1356,7 @@ export class CodeApplication extends Disposable { return windowsMainService.open({ context, cli: args, - forceNewWindow: args['new-window'] || (!hasCliArgs && args['unity-launch']), + forceNewWindow: args['new-window'], diffMode: args.diff, mergeMode: args.merge, noRecentEntry, diff --git a/src/vs/platform/environment/common/argv.ts b/src/vs/platform/environment/common/argv.ts index 18d4fcd795a..f8d2ed05f8c 100644 --- a/src/vs/platform/environment/common/argv.ts +++ b/src/vs/platform/environment/common/argv.ts @@ -38,7 +38,6 @@ export interface NativeParsedArgs { add?: boolean; goto?: boolean; 'new-window'?: boolean; - 'unity-launch'?: boolean; // Always open a new window, except if opening the first window or opening a file or folder as part of the launch. 'reuse-window'?: boolean; locale?: string; 'user-data-dir'?: string; diff --git a/src/vs/platform/environment/node/argv.ts b/src/vs/platform/environment/node/argv.ts index 327c18c18ad..91b5d5aeaba 100644 --- a/src/vs/platform/environment/node/argv.ts +++ b/src/vs/platform/environment/node/argv.ts @@ -157,7 +157,6 @@ export const OPTIONS: OptionDescriptions> = { 'crash-reporter-directory': { type: 'string' }, 'crash-reporter-id': { type: 'string' }, 'skip-add-to-recently-opened': { type: 'boolean' }, - 'unity-launch': { type: 'boolean' }, 'open-url': { type: 'boolean' }, 'file-write': { type: 'boolean' }, 'file-chmod': { type: 'boolean' }, diff --git a/src/vs/platform/launch/electron-main/launchMainService.ts b/src/vs/platform/launch/electron-main/launchMainService.ts index 8cc5076eea2..1fcb947305d 100644 --- a/src/vs/platform/launch/electron-main/launchMainService.ts +++ b/src/vs/platform/launch/electron-main/launchMainService.ts @@ -147,7 +147,7 @@ export class LaunchMainService implements ILaunchMainService { let openNewWindow = false; // Force new window - if (args['new-window'] || args['unity-launch'] || baseConfig.forceProfile || baseConfig.forceTempProfile) { + if (args['new-window'] || baseConfig.forceProfile || baseConfig.forceTempProfile) { openNewWindow = true; }