File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export interface Args extends VsArgs {
52
52
"proxy-domain" ?: string [ ]
53
53
locale ?: string
54
54
_ : string [ ]
55
+ "ignore-last-opened" ?: boolean
55
56
"reuse-window" ?: boolean
56
57
"new-window" ?: boolean
57
58
@@ -171,7 +172,11 @@ const options: Options<Required<Args>> = {
171
172
"uninstall-extension" : { type : "string[]" , description : "Uninstall a VS Code extension by id." } ,
172
173
"show-versions" : { type : "boolean" , description : "Show VS Code extension versions." } ,
173
174
"proxy-domain" : { type : "string[]" , description : "Domain used for proxying ports." } ,
174
-
175
+ "ignore-last-opened" : {
176
+ type : "boolean" ,
177
+ short : "e" ,
178
+ description : "Ignore the last opened directory or workspace in favor of an empty window."
179
+ } ,
175
180
"new-window" : {
176
181
type : "boolean" ,
177
182
short : "n" ,
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export class VscodeProvider {
43
43
options . args . _ && options . args . _ . length > 0
44
44
? { url : path . resolve ( options . args . _ [ options . args . _ . length - 1 ] ) }
45
45
: undefined ,
46
- lastVisited ,
46
+ ! options . args [ "ignore-last-opened" ] ? lastVisited : undefined ,
47
47
] )
48
48
49
49
settings . write ( {
You can’t perform that action at this time.
0 commit comments