fix(els): use NormalizedPathBuf for AbsLocation

This commit is contained in:
Shunsuke Shibayama 2023-09-13 23:26:05 +09:00
parent 138c6ff3d8
commit 38f44e8d31
10 changed files with 40 additions and 14 deletions

View file

@ -605,7 +605,7 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
}
let label = label.trim_end_matches('\0').to_string();
// don't show future defined items
if vi.def_loc.module.as_ref() == Some(&path)
if vi.def_loc.module.as_deref() == Some(&path)
&& name.ln_begin().unwrap_or(0) > pos.line + 1
{
continue;