Skip to content

Commit a5665b6

Browse files
authored
Merge pull request #383 from julia-vscode/sp/modulestore-check
fix: add ModuleStore check for import lookup
2 parents e219224 + 0eda497 commit a5665b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/imports.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function _get_field(par, arg, state)
140140
end
141141
for used_module_name in par.used_modules
142142
used_module = maybe_lookup(par[used_module_name], state)
143-
if used_module !== nothing && isexportedby(Symbol(arg_str_rep), used_module)
143+
if used_module isa SymbolServer.ModuleStore && isexportedby(Symbol(arg_str_rep), used_module)
144144
return used_module[Symbol(arg_str_rep)]
145145
end
146146
end

0 commit comments

Comments
 (0)