ZIm/crates/collab_ui/src
Marshall Bowers 7c5bc3c26f
Add the ability for extensions to provide language settings (#10296)
This PR adds the ability for extensions to provide certain language
settings via the language `config.toml`.

These settings are then merged in with the rest of the settings when the
language is loaded from the extension.

The language settings that are available are:

- `tab_size`
- `hard_tabs`
- `soft_wrap`

Additionally, for bundled languages we moved these settings out of the
`settings/default.json` and into their respective `config.toml`s .

For languages currently provided by extensions, we are leaving the
values in the `settings/default.json` temporarily until all released
versions of Zed are able to load these settings from the extension.

---

Along the way we ended up refactoring the `Settings::load` method
slightly, introducing a new `SettingsSources` struct to better convey
where the settings are being loaded from.

This makes it easier to load settings from specific locations/sets of
locations in an explicit way.

Release Notes:

- N/A

---------

Co-authored-by: Max <max@zed.dev>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2024-04-08 19:17:12 -04:00
..
chat_panel Refactor LSP adapter methods to compute labels in batches (#10097) 2024-04-03 09:22:56 -07:00
collab_panel Fix panel drag leaking through overlay (#10035) 2024-04-01 12:31:19 +02:00
notifications collab ui: Dismiss project shared notifications when leaving room (#10160) 2024-04-04 13:43:14 +02:00
channel_view.rs Remove release channel from Zed URLs (#8863) 2024-03-04 16:08:47 -07:00
chat_panel.rs collab ui: Dismiss project shared notifications when leaving room (#10160) 2024-04-04 13:43:14 +02:00
collab_panel.rs Fix panel drag leaking through overlay (#10035) 2024-04-01 12:31:19 +02:00
collab_titlebar_item.rs Add support for applying theme after extension is installed (#9529) 2024-03-20 11:13:58 -04:00
collab_ui.rs gpui: Add support for window transparency & blur on macOS (#9610) 2024-03-29 11:10:47 -04:00
face_pile.rs Fix flickering (#9012) 2024-03-11 10:45:57 +01:00
notification_panel.rs notification panel: rework time formatting (#8997) 2024-03-12 21:02:04 -06:00
notifications.rs Add stories for collab notifications (#3967) 2024-01-08 21:54:59 -05:00
panel_settings.rs Add the ability for extensions to provide language settings (#10296) 2024-04-08 19:17:12 -04:00