Skip to content

Commit 04542c9

Browse files
committed
Resolve passed-in directory
Makes relative paths work correctly.
1 parent 8c47ba2 commit 04542c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/app/vscode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class VscodeHttpProvider extends HttpProvider {
177177
[
178178
{ url: route.query.workspace, workspace: true },
179179
{ url: route.query.folder, workspace: false },
180-
this.args._ && this.args._.length > 0 ? { url: this.args._[this.args._.length - 1] } : undefined,
180+
this.args._ && this.args._.length > 0 ? { url: path.resolve(this.args._[this.args._.length - 1]) } : undefined,
181181
lastVisited,
182182
],
183183
remoteAuthority,

0 commit comments

Comments
 (0)