From b227fafa83e2cf06f961534b6b0f512e5354c9db Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sat, 6 Sep 2025 18:14:40 -0400 Subject: Add completion for poly type narrowing --- src/server/completion.odin | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/server') diff --git a/src/server/completion.odin b/src/server/completion.odin index 29ae7bb..732a940 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -1553,6 +1553,12 @@ get_identifier_completion :: proc( if position_context.identifier != nil { if ident, ok := position_context.identifier.derived.(^ast.Ident); ok { lookup_name = ident.name + } else if poly, ok := position_context.identifier.derived.(^ast.Poly_Type); ok { + if poly.specialization != nil { + if ident, ok := poly.specialization.derived.(^ast.Ident); ok { + lookup_name = ident.name + } + } } } -- cgit v1.2.3