diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-08 16:01:23 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-08 16:01:23 -0400 |
| commit | 6a9cef08d2fb8fba3edda47e57a82c2444516bf7 (patch) | |
| tree | abee1316f04ec89495672bf2d4d9d923324f4126 /src/server/references.odin | |
| parent | a42400e0c9f1471ec27454476f6fe6c19dc95242 (diff) | |
Resolve procedure overloading from external packages and improve resolution
Diffstat (limited to 'src/server/references.odin')
| -rw-r--r-- | src/server/references.odin | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/references.odin b/src/server/references.odin index 944a337..cada3af 100644 --- a/src/server/references.odin +++ b/src/server/references.odin @@ -347,6 +347,12 @@ get_references :: proc(document: ^Document, position: common.Position) -> ([]com ) position_context, ok := get_document_position_context(document, position, .Hover) + if !ok { + log.warn("Failed to get position context") + return {}, false + } + + ast_context.position_hint = position_context.hint get_globals(document.ast, &ast_context) |