aboutsummaryrefslogtreecommitdiff
path: root/src/server/completion.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-23 09:50:57 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-24 08:55:23 -0400
commit730e0ad2f6c4fdffd4fa26753c0b82085ee8b2a5 (patch)
tree2373b27217b3c396d3819ac445210a2ecb64e4f9 /src/server/completion.odin
parent0d7f28a8ca38fbdd4baa522ec1caf9316d090d19 (diff)
Compare symbols uri and range rather than trying to see if they're same type
Diffstat (limited to 'src/server/completion.odin')
-rw-r--r--src/server/completion.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin
index 5d28c3f..7493f5c 100644
--- a/src/server/completion.odin
+++ b/src/server/completion.odin
@@ -385,7 +385,7 @@ handle_pointers :: proc(
}
}
- if !is_symbol_same_typed(ast_context, arg_symbol, result_symbol, ignore_pointers = true) {
+ if result_symbol.uri != arg_symbol.uri || result_symbol.range != arg_symbol.range {
return
}