diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2023-12-05 13:07:52 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2023-12-05 13:09:01 +0200 |
| commit | 9dc38214c01efe22b42e7b3d1b0c6d96d6227a2c (patch) | |
| tree | 73c328d7d14cdea7cedc77d58bcf8d35b699f873 | |
| parent | 2d66f6df252896cfbd7bd24be6ee0c124369b1b7 (diff) | |
| download | rust-9dc38214c01efe22b42e7b3d1b0c6d96d6227a2c.tar.gz rust-9dc38214c01efe22b42e7b3d1b0c6d96d6227a2c.zip | |
Fix runnable cwd on Windows
| -rw-r--r-- | editors/code/src/toolchain.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/toolchain.ts b/editors/code/src/toolchain.ts index 1037e513aa1..a0b34406c1b 100644 --- a/editors/code/src/toolchain.ts +++ b/editors/code/src/toolchain.ts @@ -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, }); |
