Skip to content

Commit e0c2754

Browse files
committed
Fix runnable cwd on Windows
1 parent 2d66f6d commit e0c2754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editors/code/src/toolchain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class Cargo {
3030
readonly rootFolder: string,
3131
readonly output: vscode.OutputChannel,
3232
readonly env: Record<string, string>,
33-
) {}
33+
) { }
3434

3535
// Made public for testing purposes
3636
static artifactSpec(args: readonly string[]): ArtifactSpec {
@@ -74,7 +74,7 @@ export class Cargo {
7474
artifacts.push({
7575
fileName: message.executable,
7676
name: message.target.name,
77-
workspace: message.manifest_path.replace(/\/Cargo\.toml$/, ""),
77+
workspace: path.dirname(message.manifest_path),
7878
kind: message.target.kind[0],
7979
isTest: message.profile.test,
8080
});

0 commit comments

Comments
 (0)