Skip to content

WIP: Treat enum_literal completion as error completion when switching on error - #3331

Draft
henrispriet wants to merge 1 commit into
zigtools:masterfrom
henrispriet:issues/2624
Draft

henrispriet wants to merge 1 commit into
zigtools:masterfrom
henrispriet:issues/2624

Conversation

@henrispriet

@henrispriet henrispriet commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

fixes: #2624

Having issues with replace, not sure what the replace_range should be. Any help is welcome :]

error: 'lsp_features.completion.test.switch on error set (dot completion) - insert/replace text edits' failed:
       ====== expected this output: =========
       const err: error{Err1, Err2} = undefined;
       switch(err) {
           error.Err1
       }␃

       ======== instead found this: =========
       const err: error{Err1, Err2} = undefined;
       switch(err) {
           error.Err10
       }␃

       ======================================
       First difference occurs on line 3:
       expected:
           error.Err1
                     ^ ('\x0a')
       found:
           error.Err10
                     ^ ('\x30')

@henrispriet
henrispriet marked this pull request as draft November 15, 2026 10:03
@psznm

psznm commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Maybe this comment could be useful to you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Treat enum_literal completion as error completion when switching on error

2 participants