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.

snippets: Disable `feature_paths` by default (#37565)

Marshall Bowers4c32d5bf1381
diff --git a/extensions/snippets/src/snippets.rs b/extensions/snippets/src/snippets.rs
index 05e1ebca38d..1efe4c23400 100644
--- a/extensions/snippets/src/snippets.rs
+++ b/extensions/snippets/src/snippets.rs
@@ -120,7 +120,9 @@ impl zed::Extension for SnippetExtension {
"snippets_first": true,
"feature_words": false,
"feature_snippets": true,
- "feature_paths": true
+ // We disable `feature_paths` by default, because it's bad UX to assume that any `/` that is typed
+ // is the start of a path.
+ "feature_paths": false
})
});
Ok(Some(settings))