mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 22:24:14 +00:00
perf: Run async task in concurrent
This commit is contained in:
parent
dbd0b035e6
commit
f587b54340
1 changed files with 4 additions and 2 deletions
|
@ -135,8 +135,10 @@ async function getDebugConfiguration(
|
||||||
let sourceFileMap = debugOptions.sourceFileMap;
|
let sourceFileMap = debugOptions.sourceFileMap;
|
||||||
if (sourceFileMap === "auto") {
|
if (sourceFileMap === "auto") {
|
||||||
// let's try to use the default toolchain
|
// let's try to use the default toolchain
|
||||||
const commitHash = await getRustcId(wsFolder);
|
const [commitHash, sysroot] = await Promise.all([
|
||||||
const sysroot = await getSysroot(wsFolder);
|
getRustcId(wsFolder),
|
||||||
|
getSysroot(wsFolder),
|
||||||
|
]);
|
||||||
const rustlib = path.normalize(sysroot + "/lib/rustlib/src/rust");
|
const rustlib = path.normalize(sysroot + "/lib/rustlib/src/rust");
|
||||||
sourceFileMap = {};
|
sourceFileMap = {};
|
||||||
sourceFileMap[`/rustc/${commitHash}/`] = rustlib;
|
sourceFileMap[`/rustc/${commitHash}/`] = rustlib;
|
||||||
|
|
Loading…
Reference in a new issue