We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3394ece + d234ddc commit c17f3ffCopy full SHA for c17f3ff
src/node/vscode.ts
@@ -37,7 +37,7 @@ 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
@@ -46,6 +46,10 @@ export class VscodeProvider {
46
!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