Skip to content

Refactor completions (attempt 2)#42122

Merged
HactarCE merged 9 commits intomainfrom
snippet-fix-2
Nov 10, 2025
Merged

Refactor completions (attempt 2)#42122
HactarCE merged 9 commits intomainfrom
snippet-fix-2

Conversation

@HactarCE
Copy link
Contributor

@HactarCE HactarCE commented Nov 6, 2025

This is progress toward multi-word snippets (including snippets with prefixes containing symbols)

Release Notes:

  • Removed trigger argument in ShowCompletions command

HactarCE and others added 7 commits November 4, 2025 14:15
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Also optimize `words_min_length` check to only count as many chars as
necessary
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 6, 2025
@HactarCE HactarCE marked this pull request as draft November 6, 2025 17:29
@HactarCE HactarCE marked this pull request as ready for review November 6, 2025 20:52
HactarCE and others added 2 commits November 7, 2025 16:03
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
@HactarCE HactarCE merged commit a8b0436 into main Nov 10, 2025
24 checks passed
@HactarCE HactarCE deleted the snippet-fix-2 branch November 10, 2025 22:01
@okira-e
Copy link

okira-e commented Nov 22, 2025

This has caused it so that completions appear when the initial characters match the initials of one of my saved snippets even when I have set show_completions_on_input to false in the settings.

I don't know if this is intentional or a regression, but when I have show_completions_on_input set to false I expect no completions to appear automatically when typing anything.

Edit: I do not have proof that this is what caused the sudden behavior change, but it's the change related to auto completions.

11happy pushed a commit to 11happy/zed that referenced this pull request Dec 1, 2025
This is progress toward multi-word snippets (including snippets with
prefixes containing symbols)

Release Notes:

- Removed `trigger` argument in `ShowCompletions` command

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
HactarCE added a commit that referenced this pull request Dec 2, 2025
#44021)

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
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
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
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.

2 participants