aboutsummaryrefslogtreecommitdiff
path: root/src/server/documentation.odin
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-31 20:27:03 -0400
committerGitHub <noreply@github.com>2025-07-31 20:27:03 -0400
commit429b6946fffcef8f6d9d03ac98a438450cff5caa (patch)
tree54b795e5f26b2e09b13a7bca090234249670b463 /src/server/documentation.odin
parent2d72faebe069f32f98c10382da8f09eb1d8d7445 (diff)
parentd6bfdd611ccf122117ef25e40b0f104b3f923de4 (diff)
Merge pull request #815 from BradLewis/fix/crashing-objc-hover
Resolve objc methods before expanding usings to fix issues with hover documentation
Diffstat (limited to 'src/server/documentation.odin')
-rw-r--r--src/server/documentation.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/documentation.odin b/src/server/documentation.odin
index 7dbf5d9..aab3cff 100644
--- a/src/server/documentation.odin
+++ b/src/server/documentation.odin
@@ -551,7 +551,7 @@ write_struct_hover :: proc(ast_context: ^AstContext, sb: ^strings.Builder, v: Sy
for i in 0 ..< len(v.names) {
if i < len(v.from_usings) {
- if index := v.from_usings[i]; index != using_index {
+ if index := v.from_usings[i]; index != using_index && index != -1 {
fmt.sbprintf(sb, "\n\t// from `using %s: ", v.names[index])
build_string_node(v.types[index], sb, false)
if backing_type, ok := v.backing_types[index]; ok {