Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

inline completion: Respect `disabled_globs` when manually requesting completions (#24121)

Bennet Bo Fennereb820ab800ea
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index c3a7b20ec96..9aeba2a22e5 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -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;