From 4c32d5bf138171a52b00dc5f2be233c718c800ae Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 4 Sep 2025 15:35:48 -0400 Subject: [PATCH] snippets: Disable `feature_paths` by default (#37565) This PR updates the default configuration of the `snippets` extension to disable suggesting paths (`feature_paths`). If users want to enable it, it can be done via the settings: ```json { "lsp": { "snippet-completion-server": { "settings": { "feature_paths": true } } } } ``` Release Notes: - N/A --- extensions/snippets/src/snippets.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/snippets/src/snippets.rs b/extensions/snippets/src/snippets.rs index 05e1ebca38ddfa576795e6040ccd2b3dde20cc3e..1efe4c234002b5c8b3d26b9bdb0b30095e212ea6 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))