mirror of
https://github.com/danog/code-server.git
synced 2024-11-30 04:39:46 +01:00
Resolve passed-in directory
Makes relative paths work correctly.
This commit is contained in:
parent
8c47ba255a
commit
04542c99fd
@ -177,7 +177,7 @@ export class VscodeHttpProvider extends HttpProvider {
|
||||
[
|
||||
{ url: route.query.workspace, workspace: true },
|
||||
{ url: route.query.folder, workspace: false },
|
||||
this.args._ && this.args._.length > 0 ? { url: this.args._[this.args._.length - 1] } : undefined,
|
||||
this.args._ && this.args._.length > 0 ? { url: path.resolve(this.args._[this.args._.length - 1]) } : undefined,
|
||||
lastVisited,
|
||||
],
|
||||
remoteAuthority,
|
||||
|
Loading…
Reference in New Issue
Block a user