File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,15 +37,19 @@ export class VscodeProvider {
3737 query : ipc . Query ,
3838 ) : Promise < ipc . WorkbenchOptions > {
3939 const { lastVisited } = await settings . read ( )
40- const startPath = await this . getFirstPath ( [
40+ let startPath = await this . getFirstPath ( [
4141 { url : query . workspace , workspace : true } ,
4242 { url : query . folder , workspace : false } ,
4343 options . args . _ && options . args . _ . length > 0
4444 ? { url : path . resolve ( options . args . _ [ options . args . _ . length - 1 ] ) }
4545 : undefined ,
46- ! options . args [ "ignore-last-opened" ] && ! query . ew ? lastVisited : undefined ,
46+ ! options . args [ "ignore-last-opened" ] ? lastVisited : undefined ,
4747 ] )
4848
49+ if ( query . ew ) {
50+ startPath = undefined
51+ }
52+
4953 settings . write ( {
5054 lastVisited : startPath ,
5155 query,
You can’t perform that action at this time.
0 commit comments