File tree Expand file tree Collapse file tree 5 files changed +3
-5
lines changed Expand file tree Collapse file tree 5 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 2
2
Name =@@NAME_LONG@@
3
3
Comment =Code Editing. Redefined.
4
4
GenericName =Text Editor
5
- Exec =@@EXEC@@ --unity-launch %F
5
+ Exec =@@EXEC@@ %F
6
6
Icon =@@ICON@@
7
7
Type =Application
8
8
StartupNotify =false
Original file line number Diff line number Diff line change @@ -1356,7 +1356,7 @@ export class CodeApplication extends Disposable {
1356
1356
return windowsMainService . open ( {
1357
1357
context,
1358
1358
cli : args ,
1359
- forceNewWindow : args [ 'new-window' ] || ( ! hasCliArgs && args [ 'unity-launch' ] ) ,
1359
+ forceNewWindow : args [ 'new-window' ] ,
1360
1360
diffMode : args . diff ,
1361
1361
mergeMode : args . merge ,
1362
1362
noRecentEntry,
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ export interface NativeParsedArgs {
38
38
add ?: boolean ;
39
39
goto ?: boolean ;
40
40
'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.
42
41
'reuse-window' ?: boolean ;
43
42
locale ?: string ;
44
43
'user-data-dir' ?: string ;
Original file line number Diff line number Diff line change @@ -157,7 +157,6 @@ export const OPTIONS: OptionDescriptions<Required<NativeParsedArgs>> = {
157
157
'crash-reporter-directory' : { type : 'string' } ,
158
158
'crash-reporter-id' : { type : 'string' } ,
159
159
'skip-add-to-recently-opened' : { type : 'boolean' } ,
160
- 'unity-launch' : { type : 'boolean' } ,
161
160
'open-url' : { type : 'boolean' } ,
162
161
'file-write' : { type : 'boolean' } ,
163
162
'file-chmod' : { type : 'boolean' } ,
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export class LaunchMainService implements ILaunchMainService {
147
147
let openNewWindow = false ;
148
148
149
149
// Force new window
150
- if ( args [ 'new-window' ] || args [ 'unity-launch' ] || baseConfig . forceProfile || baseConfig . forceTempProfile ) {
150
+ if ( args [ 'new-window' ] || baseConfig . forceProfile || baseConfig . forceTempProfile ) {
151
151
openNewWindow = true ;
152
152
}
153
153
You can’t perform that action at this time.
0 commit comments