ep: Dont send type definition requests to tombi (#54676)
Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #ISSUE Release Notes: - N/A or Added/Fixed/Improved ...
This commit is contained in:
1 parent
cf8eb424b0
commit
1b277fe2d0
2 files changed
+25
-27
No files matched your search
@@ -9,31 +9,4 @@ TOML support is available through the [TOML extension](https://zed.dev/extension
|
||||
|
||||
- Tree-sitter: [tree-sitter/tree-sitter-toml](https://github.com/tree-sitter/tree-sitter-toml)
|
||||
|
||||
## Language server
|
||||
|
||||
A TOML language server is available in the [Tombi extension](https://zed.dev/extensions/tombi).
|
||||
|
||||
<div class="warning">
|
||||
|
||||
Tombi replies to language server requests for definitions by opening a scratch JSON buffer with the schema definition for some known formats (`Cargo.toml`, `pyproject.toml`, ...). Since [Edit Predictions](/docs/ai/edit-prediction) rely on looking up definitions, this leads to tabs opening when you edit the TOML file.
|
||||
|
||||
You can fix it by [disabling definition requests](https://tombi-toml.github.io/tombi/docs/configuration/#lsp-goto-definition-enabled) in your Tombi configuration:
|
||||
|
||||
```toml
|
||||
[lsp]
|
||||
goto-type-definition.enabled = false
|
||||
```
|
||||
|
||||
Alternatively, you can disable edit predictions in TOML buffers:
|
||||
|
||||
```json
|
||||
{
|
||||
"languages": {
|
||||
"TOML": {
|
||||
"show_edit_predictions": false // https://github.com/tombi-toml/tombi/issues/1556
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
</div>
|
||||
Reference in new issue
Block a user