Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 814d7c3

Browse files
committed
Fix debug sourceFileMap when using cppvsdbg
- Fix rust-lang#18782
1 parent 281ca97 commit 814d7c3

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/editors/code/src

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/editors/code/src/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ async function discoverSourceFileMap(
225225
const commitHash = rx.exec(data)?.[1];
226226
if (commitHash) {
227227
const rustlib = path.normalize(sysroot + "/lib/rustlib/src/rust");
228-
return { source: rustlib, destination: rustlib };
228+
return { source: "/rustc/" + commitHash, destination: rustlib };
229229
}
230230
}
231231

0 commit comments

Comments
 (0)