ZIm/crates/assistant_context_editor/src
Kirill Bulatov 566c5f91a7
Refine word completions (#26779)
Follow-up of https://github.com/zed-industries/zed/pull/26410

* Extract word completions into their own, `editor::ShowWordCompletions`
action so those could be triggered independently of completions
* Assign `ctrl-shift-space` binding to this new action
* Still keep words returned along the completions as in the original PR,
but:
* Tone down regular completions' fallback logic, skip words when the
language server responds with empty list of completions, but keep on
adding words if nothing or an error were returned instead
    * Adjust the defaults to wait for LSP completions infinitely
* Skip "words" with digits such as `0_usize` or `2.f32` from completion
items, unless a completion query has digits in it

Release Notes:

- N/A
2025-03-14 15:18:55 +00:00
..
context chore: Extract PromptStore out of prompt_library (#25837) 2025-03-01 00:34:28 +01:00
assistant_context_editor.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
context.rs Track cumulative token usage in assistant2 when using anthropic API (#26738) 2025-03-13 22:56:16 +00:00
context_editor.rs Revert "ui: Color cleanup (#26673)" (#26681) 2025-03-13 15:40:57 +00:00
context_history.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
context_store.rs Remove worktree and project notifies (#26244) 2025-03-07 10:51:46 -07:00
patch.rs Fix auto-indent when pasting multi-line content that was copied start… (#26246) 2025-03-06 22:13:34 +00:00
slash_command.rs Refine word completions (#26779) 2025-03-14 15:18:55 +00:00
slash_command_picker.rs git_ui: Prevent button overflow due to long names (#25940) 2025-03-03 18:38:15 +00:00