ZIm/crates/language/src
Thorsten Ball 3f415f3587
Fix use_on_type_format setting being unused per language (#18387)
Before this change, `use_on_type_format` would only have an effect when
defined on a global level in our settings.

But our default.json settings would also document that it's used in
language settings, i.e.:

```json
{
  "languages": {
    "C": {
      "use_on_type_format": false
    },
    "C++": {
      "use_on_type_format": false
    }
  }
}
```

But this did **not** work.

With the change, it now works globally and per-language.

Release Notes:

- Fixed `use_on_type_format` setting not working when defined inside
`"languages"` in the settings. This change will now change the default
behavior for C, C++, and Markdown, by turning language server's
`OnTypeFormatting` completions off by default.

Co-authored-by: Bennet <bennet@zed.dev>
2024-09-26 12:27:08 +02:00
..
syntax_map Replace Default trait bound with a zero function on Summary/Dimension (#17975) 2024-09-17 19:43:59 -06:00
buffer.rs Proposed changes editor features (#18373) 2024-09-25 16:33:00 -07:00
buffer_tests.rs Proposed changes editor features (#18373) 2024-09-25 16:33:00 -07:00
diagnostic_set.rs Replace Default trait bound with a zero function on Summary/Dimension (#17975) 2024-09-17 19:43:59 -06:00
highlight_map.rs Docs for indent_size_for_line and co 2024-01-09 20:50:34 +01:00
language.rs Make python run local worktree LSPs (#18353) 2024-09-25 12:45:41 -07:00
language_registry.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
language_settings.rs Fix use_on_type_format setting being unused per language (#18387) 2024-09-26 12:27:08 +02:00
markdown.rs Disable definition lists in Markdown (#17648) 2024-09-10 11:16:27 -04:00
outline.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
proto.rs lsp: Pass back diagnostic .data when querying code actions for it (#14962) 2024-07-22 17:49:11 +02:00
syntax_map.rs chore: Fix violations of elided_named_lifetimes (#18330) 2024-09-25 12:27:57 +02:00
task_context.rs Allow task context providers to access project env (#17964) 2024-09-17 21:49:12 +02:00