Fix debug sourceFileMap when using cppvsdbg

- Fix #18782
This commit is contained in:
Inflation 2025-03-29 21:28:50 +08:00
parent a73a37a757
commit 375386ea93
No known key found for this signature in database

View File

@ -225,7 +225,7 @@ async function discoverSourceFileMap(
const commitHash = rx.exec(data)?.[1];
if (commitHash) {
const rustlib = path.normalize(sysroot + "/lib/rustlib/src/rust");
return { source: rustlib, destination: rustlib };
return { source: "/rustc/" + commitHash, destination: rustlib };
}
}