Make completions menu stay open after after it's manually requested (#32015)
Also includes a clarity refactoring to remove `ignore_completion_provider`. Closes #15549 Release Notes: - Fixed completions menu closing on typing after being requested while `show_completions_on_input: false`.
This commit is contained in:
parent
522abe8e59
commit
8c46a4f594
7 changed files with 70 additions and 38 deletions
|
@ -685,8 +685,9 @@ impl CompletionProvider for RustStyleCompletionProvider {
|
|||
&self,
|
||||
buffer: &Entity<language::Buffer>,
|
||||
position: language::Anchor,
|
||||
_: &str,
|
||||
_: bool,
|
||||
_text: &str,
|
||||
_trigger_in_words: bool,
|
||||
_menu_is_open: bool,
|
||||
cx: &mut Context<Editor>,
|
||||
) -> bool {
|
||||
completion_replace_range(&buffer.read(cx).snapshot(), &position).is_some()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue