Skip to content

workspace.asRelativePath doesn't work for path outside workspace #11402

@aeschli

Description

@aeschli

From verifying #10446
(on Linux, 1.5.0-insider, Commit d2c04e3)

let input = "/home/aeschli/frr/samples/docker";

console.log("root: " + workspace.rootPath);
console.log("input: " + input);
console.log("output: " + workspace.asRelativePath(input));

Output:

root: /home/aeschli/workspaces/samples/docker
input: /home/aeschli/frr/samples/docker
output: /home/aeschli/frr/samples/docker

If this expected then maybe this we could add it to the doc.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions