We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd0b03 commit f587b54Copy full SHA for f587b54
editors/code/src/debug.ts
@@ -135,8 +135,10 @@ async function getDebugConfiguration(
135
let sourceFileMap = debugOptions.sourceFileMap;
136
if (sourceFileMap === "auto") {
137
// let's try to use the default toolchain
138
- const commitHash = await getRustcId(wsFolder);
139
- const sysroot = await getSysroot(wsFolder);
+ const [commitHash, sysroot] = await Promise.all([
+ getRustcId(wsFolder),
140
+ getSysroot(wsFolder),
141
+ ]);
142
const rustlib = path.normalize(sysroot + "/lib/rustlib/src/rust");
143
sourceFileMap = {};
144
sourceFileMap[`/rustc/${commitHash}/`] = rustlib;
0 commit comments