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
This commit is contained in:
Marshall Bowers
2025-09-04 15:35:48 -04:00
committed by GitHub
parent ccae033d85
commit 4c32d5bf13

View File

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