Skip to content

Apply show_completions_on_input: false to word & snippet completions#44021

Merged
HactarCE merged 1 commit intomainfrom
snippet-completions-on-input
Dec 2, 2025
Merged

Apply show_completions_on_input: false to word & snippet completions#44021
HactarCE merged 1 commit intomainfrom
snippet-completions-on-input

Conversation

@HactarCE
Copy link
Contributor

@HactarCE HactarCE commented Dec 2, 2025

Closes #43408

Previously, we checked the setting inside is_completion_trigger(), which only affects LSP completions. This was ok because user-defined snippets were tacked onto LSP completions. Then #42122 and #42398 made snippet completions their own thing, similar to word completions, surfacing #43408. This PR moves the settings check into open_or_update_completions_menu() so it applies to all completions.

Release Notes:

  • Fixed setting show_completions_on_input: false so that it affects word and user-defined snippet completions as well as LSP completions

Previously it was inside `is_completion_trigger` but now it's in
`open_or_update_completions_menu` so it applies to all completions
instead of just LSP.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 2, 2025
@HactarCE HactarCE enabled auto-merge (squash) December 2, 2025 21:28
@HactarCE HactarCE merged commit 96a9170 into main Dec 2, 2025
26 checks passed
@HactarCE HactarCE deleted the snippet-completions-on-input branch December 2, 2025 21:33
benbrandt added a commit that referenced this pull request Dec 5, 2025
…completions_on_input set to false

Addresses a regression introduced by #44021 that caused @mentions and slash commands to stop working if you set `show_completions_on_input: false` in your settings.

In this case, we should always show these menus, otherwise the features won't work at all.
benbrandt added a commit that referenced this pull request Dec 5, 2025
…completions_on_input set to false (#44222)

Addresses a regression introduced by
#44021 that caused @mentions
and slash commands to stop working if you set
`show_completions_on_input: false` in your settings.

In this case, we should always show these menus, otherwise the features
won't work at all.

Release Notes:

- N/A
github-actions bot pushed a commit that referenced this pull request Dec 5, 2025
…completions_on_input set to false (#44222)

Addresses a regression introduced by
#44021 that caused @mentions
and slash commands to stop working if you set
`show_completions_on_input: false` in your settings.

In this case, we should always show these menus, otherwise the features
won't work at all.

Release Notes:

- N/A
zed-zippy bot added a commit that referenced this pull request Dec 5, 2025
…completions_on_input set to false (#44222) (cherry-pick to preview) (#44224)

Cherry-pick of #44222 to preview

----
Addresses a regression introduced by
#44021 that caused @mentions
and slash commands to stop working if you set
`show_completions_on_input: false` in your settings.

In this case, we should always show these menus, otherwise the features
won't work at all.

Release Notes:

- N/A

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
zed-industries#44021)

Closes zed-industries#43408

Previously, we checked the setting inside `is_completion_trigger()`,
which only affects LSP completions. This was ok because user-defined
snippets were tacked onto LSP completions. Then zed-industries#42122 and zed-industries#42398 made
snippet completions their own thing, similar to word completions,
surfacing zed-industries#43408. This PR moves the settings check into
`open_or_update_completions_menu()` so it applies to all completions.

Release Notes:

- Fixed setting `show_completions_on_input: false` so that it affects
word and user-defined snippet completions as well as LSP completions
CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
…completions_on_input set to false (zed-industries#44222)

Addresses a regression introduced by
zed-industries#44021 that caused @mentions
and slash commands to stop working if you set
`show_completions_on_input: false` in your settings.

In this case, we should always show these menus, otherwise the features
won't work at all.

Release Notes:

- N/A
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
zed-industries#44021)

Closes zed-industries#43408

Previously, we checked the setting inside `is_completion_trigger()`,
which only affects LSP completions. This was ok because user-defined
snippets were tacked onto LSP completions. Then zed-industries#42122 and zed-industries#42398 made
snippet completions their own thing, similar to word completions,
surfacing zed-industries#43408. This PR moves the settings check into
`open_or_update_completions_menu()` so it applies to all completions.

Release Notes:

- Fixed setting `show_completions_on_input: false` so that it affects
word and user-defined snippet completions as well as LSP completions
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
…completions_on_input set to false (zed-industries#44222)

Addresses a regression introduced by
zed-industries#44021 that caused @mentions
and slash commands to stop working if you set
`show_completions_on_input: false` in your settings.

In this case, we should always show these menus, otherwise the features
won't work at all.

Release Notes:

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

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

show_completions_on_input: false ignored when snippet matches

1 participant