Skip to content

Commit

Permalink
Fix runnable cwd on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Dec 5, 2023
1 parent 2d66f6d commit e0c2754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editors/code/src/toolchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Cargo {
readonly rootFolder: string,
readonly output: vscode.OutputChannel,
readonly env: Record<string, string>,
) {}
) { }

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

0 comments on commit e0c2754

Please sign in to comment.