Skip to content

Commit 0da22a2

Browse files
authored
fix: deprecate unity-launch flag (microsoft#209471)
1 parent 07e1e8b commit 0da22a2

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

resources/linux/code.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Name=@@NAME_LONG@@
33
Comment=Code Editing. Redefined.
44
GenericName=Text Editor
5-
Exec=@@EXEC@@ --unity-launch %F
5+
Exec=@@EXEC@@ %F
66
Icon=@@ICON@@
77
Type=Application
88
StartupNotify=false

src/vs/code/electron-main/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ export class CodeApplication extends Disposable {
13561356
return windowsMainService.open({
13571357
context,
13581358
cli: args,
1359-
forceNewWindow: args['new-window'] || (!hasCliArgs && args['unity-launch']),
1359+
forceNewWindow: args['new-window'],
13601360
diffMode: args.diff,
13611361
mergeMode: args.merge,
13621362
noRecentEntry,

src/vs/platform/environment/common/argv.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export interface NativeParsedArgs {
3838
add?: boolean;
3939
goto?: boolean;
4040
'new-window'?: boolean;
41-
'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.
4241
'reuse-window'?: boolean;
4342
locale?: string;
4443
'user-data-dir'?: string;

src/vs/platform/environment/node/argv.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ export const OPTIONS: OptionDescriptions<Required<NativeParsedArgs>> = {
157157
'crash-reporter-directory': { type: 'string' },
158158
'crash-reporter-id': { type: 'string' },
159159
'skip-add-to-recently-opened': { type: 'boolean' },
160-
'unity-launch': { type: 'boolean' },
161160
'open-url': { type: 'boolean' },
162161
'file-write': { type: 'boolean' },
163162
'file-chmod': { type: 'boolean' },

src/vs/platform/launch/electron-main/launchMainService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class LaunchMainService implements ILaunchMainService {
147147
let openNewWindow = false;
148148

149149
// Force new window
150-
if (args['new-window'] || args['unity-launch'] || baseConfig.forceProfile || baseConfig.forceTempProfile) {
150+
if (args['new-window'] || baseConfig.forceProfile || baseConfig.forceTempProfile) {
151151
openNewWindow = true;
152152
}
153153

0 commit comments

Comments
 (0)