ZIm/crates/language/src
Tom Wieczorek 77df7e56f7
settings: Make external formatter arguments optional (#18340)
If specifying a formatter in the settings like this:

    "languages": {
      "foo": {
        "formatter": {
          "external": {
            "command": "/path/to/foo-formatter"
          }
        }
      }
    }

Zed will show an error like this:

    Invalid user settings file
    data did not match any variant of untagged enum SingleOrVec

This is because the arguments are not optional. The error is hard to
understand, so let's make the arguments actually optional, which makes
the above settings snippet valid.

Release Notes:

- Make external formatter arguments optional
2024-09-30 09:34:41 +03: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 Pass Summary::Context to Item::summarize (#18510) 2024-09-29 10:30:48 -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 settings: Make external formatter arguments optional (#18340) 2024-09-30 09:34:41 +03: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 Pass Summary::Context to Item::summarize (#18510) 2024-09-29 10:30:48 -06:00
task_context.rs Allow task context providers to access project env (#17964) 2024-09-17 21:49:12 +02:00