We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28c7340 commit d234ddcCopy full SHA for d234ddc
src/node/vscode.ts
@@ -37,15 +37,19 @@ export class VscodeProvider {
37
query: ipc.Query,
38
): Promise<ipc.WorkbenchOptions> {
39
const { lastVisited } = await settings.read()
40
- const startPath = await this.getFirstPath([
+ let startPath = await this.getFirstPath([
41
{ url: query.workspace, workspace: true },
42
{ url: query.folder, workspace: false },
43
options.args._ && options.args._.length > 0
44
? { url: path.resolve(options.args._[options.args._.length - 1]) }
45
: undefined,
46
- !options.args["ignore-last-opened"] && !query.ew ? lastVisited : undefined,
+ !options.args["ignore-last-opened"] ? lastVisited : undefined,
47
])
48
49
+ if (query.ew) {
50
+ startPath = undefined
51
+ }
52
+
53
settings.write({
54
lastVisited: startPath,
55
query,
0 commit comments