about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-05 11:11:43 +0000
committerbors <bors@rust-lang.org>2023-12-05 11:11:43 +0000
commitceb4426cd61764d8489c1a243cfc2142cf27f141 (patch)
tree73c328d7d14cdea7cedc77d58bcf8d35b699f873 /editors/code/src
parent2d66f6df252896cfbd7bd24be6ee0c124369b1b7 (diff)
parent9dc38214c01efe22b42e7b3d1b0c6d96d6227a2c (diff)
downloadrust-ceb4426cd61764d8489c1a243cfc2142cf27f141.tar.gz
rust-ceb4426cd61764d8489c1a243cfc2142cf27f141.zip
Auto merge of #16024 - lnicola:debug-workspace-path, r=lnicola
fix: Fix runnable cwd on Windows

Fixes #16010
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/toolchain.ts2
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,
                             });