Merge pull request #19475 from inflation/push-xrwpqzsqxtuy

Fix debug sourceFileMap when using cppvsdbg
This commit is contained in:
Laurențiu Nicola 2025-03-29 13:48:59 +00:00 committed by GitHub
commit fb133c8c80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 };
}
}