diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-17 07:33:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-17 07:33:19 -0400 |
| commit | a1f22363a2c61ae5ce4de6ef31d561317b0e45d0 (patch) | |
| tree | 0770afb3c82f2031fc11eeae01515b012e47437e /src/server | |
| parent | accf4f19d7113b448460a2e010043b0fc136f257 (diff) | |
| parent | 78d2605c004b53ed8cf6c440c00419d7755419a2 (diff) | |
Merge pull request #1104 from BradLewis/fix/implicit-selector-completion-in-union-switch
Remove `.` when doing implicit selector completions in a union type switch
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/completion.odin | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin index 6a4dc89..edf6578 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -2034,6 +2034,11 @@ get_type_switch_completion :: proc( ) item.detail = item.label } + if position_context.implicit_selector_expr != nil { + if remove_edit, ok := create_implicit_selector_remove_edit(position_context); ok { + item.additionalTextEdits = remove_edit + } + } append(results, CompletionResult{completion_item = item}) } |