diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-18 11:12:49 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-18 11:12:49 -0400 |
| commit | d24364dfb1fc0b2089fe89ffc30123cc6e2b2f56 (patch) | |
| tree | d34d3d72d3db10bbcd348bc4c305f36100ddd997 /src/server | |
| parent | 2ba84dcc4e19a1b66e3c270b7391cc8ae92e97b4 (diff) | |
Add bitset completions for `in` and `not_in`
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/completion.odin | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin index 4bd0272..4abf8e2 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -788,6 +788,32 @@ get_selector_completion :: proc( }, }, ) + in_text := fmt.tprintf(".%s in %s", name, selector.name) + append( + results, + CompletionResult { + completion_item = CompletionItem { + label = fmt.tprintf(".%s in", name), + kind = .EnumMember, + detail = in_text, + insertText = in_text, + additionalTextEdits = additionalTextEdits, + }, + }, + ) + not_in_text := fmt.tprintf(".%s not_in %s", name, selector.name) + append( + results, + CompletionResult { + completion_item = CompletionItem { + label = fmt.tprintf(".%s not_in", name), + kind = .EnumMember, + detail = not_in_text, + insertText = not_in_text, + additionalTextEdits = additionalTextEdits, + }, + }, + ) } case SymbolStructValue: |