Skip to content

Commit

Permalink
Merge pull request #383 from julia-vscode/sp/modulestore-check
Browse files Browse the repository at this point in the history
fix: add ModuleStore check for import lookup
  • Loading branch information
pfitzseb authored Apr 5, 2024
2 parents e219224 + 0eda497 commit a5665b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function _get_field(par, arg, state)
end
for used_module_name in par.used_modules
used_module = maybe_lookup(par[used_module_name], state)
if used_module !== nothing && isexportedby(Symbol(arg_str_rep), used_module)
if used_module isa SymbolServer.ModuleStore && isexportedby(Symbol(arg_str_rep), used_module)
return used_module[Symbol(arg_str_rep)]
end
end
Expand Down

0 comments on commit a5665b6

Please sign in to comment.