Skip to content

Add support for multi-word snippet prefixes#42398

Merged
HactarCE merged 21 commits intomainfrom
multi-word-snippets-2
Nov 11, 2025
Merged

Add support for multi-word snippet prefixes#42398
HactarCE merged 21 commits intomainfrom
multi-word-snippets-2

Conversation

@HactarCE
Copy link
Contributor

Supercedes #41126

Closes #39559, #35397, and #41426

Release Notes:

  • Added support for multi-word snippet prefixes

HactarCE and others added 18 commits October 21, 2025 16:55
Co-authored-by: Agus Zubiaga <hi@aguz.me>
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>
Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
CompletionProvider for Entity<Project>`

Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 10, 2025
@HactarCE HactarCE changed the title Multi word snippets 2 Add support for multi-word snippet prefixes Nov 10, 2025
@HactarCE HactarCE enabled auto-merge (squash) November 10, 2025 23:34
@HactarCE HactarCE disabled auto-merge November 10, 2025 23:35
@HactarCE HactarCE merged commit da94f89 into main Nov 11, 2025
23 checks passed
@HactarCE HactarCE deleted the multi-word-snippets-2 branch November 11, 2025 21:34
11happy pushed a commit to 11happy/zed that referenced this pull request Dec 1, 2025
Supercedes zed-industries#41126

Closes zed-industries#39559, zed-industries#35397, and zed-industries#41426

Release Notes:

- Added support for multi-word snippet prefixes

---------

Co-authored-by: Agus Zubiaga <hi@aguz.me>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Cole Miller <cole@zed.dev>
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.

@ snippet not working in zed

1 participant