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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user