From 375386ea937a9bc64f023cb1421624a8dcbf8d08 Mon Sep 17 00:00:00 2001 From: Inflation <2375962+inflation@users.noreply.github.com> Date: Sat, 29 Mar 2025 21:28:50 +0800 Subject: [PATCH] Fix debug sourceFileMap when using cppvsdbg - Fix #18782 --- editors/code/src/debug.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editors/code/src/debug.ts b/editors/code/src/debug.ts index 04211d77e7..a04a6db7ad 100644 --- a/editors/code/src/debug.ts +++ b/editors/code/src/debug.ts @@ -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 }; } }