fix: bugs

This commit is contained in:
Shunsuke Shibayama 2023-05-13 16:14:34 +09:00
parent 33e1b776cb
commit ced04e5d6a
8 changed files with 71 additions and 65 deletions

View file

@ -95,7 +95,7 @@ impl<Checker: BuildRunnable> Server<Checker> {
let mut result = vec![];
if let Some(IncompleteArtifact {
object: Some(hir), ..
}) = self.artifacts.get(&uri)
}) = self.artifacts.get(&uri).map(|r| &r.artifact)
{
for chunk in hir.module.iter() {
result.extend(self.get_expr_hint(chunk));