Fix ProcMacroClient dropped too early in cli

This commit is contained in:
Edwin Cheng
2021-03-02 13:14:05 +08:00
parent c17f2bf2a2
commit 877521325f
5 changed files with 11 additions and 9 deletions

View File

@@ -35,7 +35,8 @@ pub fn diagnostics(
) -> Result<()> {
let cargo_config = Default::default();
let load_cargo_config = LoadCargoConfig { load_out_dirs_from_check, with_proc_macro };
let (host, _vfs) = load_workspace_at(path, &cargo_config, &load_cargo_config, &|_| {})?;
let (host, _vfs, _proc_macro) =
load_workspace_at(path, &cargo_config, &load_cargo_config, &|_| {})?;
let db = host.raw_database();
let analysis = host.analysis();