diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-06 10:48:51 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-06 10:48:51 -0400 |
| commit | f429f70768c26a37a3ce4aca07c1ae3073c9103c (patch) | |
| tree | 19a606e306985de650ac0b325a9b028e79ebd096 /src/server | |
| parent | 932350baa98fc3a040a714d974ec0654794acef4 (diff) | |
Fix go to type definition for symbols in other packages
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/analysis.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index 1f2a1c4..92082b5 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -2430,7 +2430,8 @@ resolve_location_identifier :: proc(ast_context: ^AstContext, node: ast.Ident) - return symbol, true } - if symbol, ok := lookup(node.name, ast_context.document_package, node.pos.file); ok { + pkg := get_package_from_node(node) + if symbol, ok := lookup(node.name, pkg, node.pos.file); ok { return symbol, ok } |