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:
Bennet Bo Fenner 2025-02-03 09:54:24 +01:00 committed by GitHub
parent 08c834ced0
commit eb820ab800
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;