diff options
| author | Inflation <2375962+inflation@users.noreply.github.com> | 2025-03-29 21:28:50 +0800 |
|---|---|---|
| committer | Inflation <2375962+inflation@users.noreply.github.com> | 2025-03-29 21:32:51 +0800 |
| commit | 814d7c37d4374f03b50fe8e656997fb2ccca9966 (patch) | |
| tree | c73d0804ab90415280b535a9136412e7899e1dbc /src/tools | |
| parent | 281ca97ba331c6316cf4a4f967521062a3d50a8e (diff) | |
| download | rust-814d7c37d4374f03b50fe8e656997fb2ccca9966.tar.gz rust-814d7c37d4374f03b50fe8e656997fb2ccca9966.zip | |
Fix debug sourceFileMap when using cppvsdbg
- Fix #18782
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/rust-analyzer/editors/code/src/debug.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/editors/code/src/debug.ts b/src/tools/rust-analyzer/editors/code/src/debug.ts index 04211d77e77..a04a6db7adb 100644 --- a/src/tools/rust-analyzer/editors/code/src/debug.ts +++ b/src/tools/rust-analyzer/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 }; } } |
