mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 05:31:11 +00:00
fix(els): use NormalizedPathBuf
for AbsLocation
This commit is contained in:
parent
138c6ff3d8
commit
38f44e8d31
10 changed files with 40 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue