inline completion: Respect disabled_globs
when manually requesting completions (#24121)
When requesting completions manually with `editor: Show inline completion`, we did not check if completions are actually disabled for the current file (`inline_completions > disabled_globs`) Release Notes: - Fixed an issue where the `inline_completions > disabled_globs` setting would not be respected when manually requesting a completion (`editor: Show inline completion`)
This commit is contained in:
parent
08c834ced0
commit
eb820ab800
1 changed files with 4 additions and 0 deletions
|
@ -4758,6 +4758,10 @@ impl Editor {
|
|||
window: &mut Window,
|
||||
cx: &mut Context<Self>,
|
||||
) {
|
||||
if !self.inline_completions_enabled(cx) {
|
||||
return;
|
||||
}
|
||||
|
||||
if !self.has_active_inline_completion() {
|
||||
self.refresh_inline_completion(false, true, window, cx);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue