ZIm/crates/language/src
Thorsten Ball ace4d5185d
settings: Show notification when user/project settings fail to parse (#18122)
Closes #16876

We only ever showed parsing errors, but not if something failed to
deserialize.

Basically, if you had a stray `,` somewhere, we'd show a notification
for user errors, but only squiggly lines if you had a `[]` instead of a
`{}`.

The squiggly lines would only show up when there were schema errors.

In the case of `formatter` settings, for example, if someone put in a
`{}` instead of `[]`, we'd never show anything.

With this change we always show a notification if parsing user or
project settings fails.

(Right now, the error message might still be bad, but that's a separate
change)


Release Notes:

- Added a notification to warn users if their user settings or
project-local settings failed to deserialize.

Demo:


https://github.com/user-attachments/assets/e5c48165-f2f7-4b5c-9c6d-6ea74f678683
2024-09-20 10:53:06 +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 Make Buffer::apply_ops infallible (#18089) 2024-09-19 13:14:15 -04:00
buffer_tests.rs Make Buffer::apply_ops infallible (#18089) 2024-09-19 13:14:15 -04: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 Tidy up LSP (#17973) 2024-09-18 11:15:46 -06:00
language_registry.rs Tidy up LSP (#17973) 2024-09-18 11:15:46 -06:00
language_settings.rs settings: Show notification when user/project settings fail to parse (#18122) 2024-09-20 10:53:06 +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 Replace Default trait bound with a zero function on Summary/Dimension (#17975) 2024-09-17 19:43:59 -06:00
task_context.rs Allow task context providers to access project env (#17964) 2024-09-17 21:49:12 +02:00