mirror of https://github.com/helix-editor/helix
Since locals are handled during parsing instead of highlighting with tree-house, we need to call `helix_core::syntax::Loader::set_scopes` before parsing any documents. During `:config-reload` we previously reloaded the `Loader` and re-parsed documents and _then_ updated the theme. So documents were parsed before `Loader::set_scopes` was called on the new loader. With this change the `refresh_language_config` helper is inlined into `refresh_config`. Updating the `Editor`'s `ArcSwap` of the loader is done before updating the theme so that the `load_configured_theme` helper can call `set_scopes` with on the new loader. |
||
---|---|---|
.. | ||
commands | ||
handlers | ||
keymap | ||
ui | ||
application.rs | ||
args.rs | ||
commands.rs | ||
compositor.rs | ||
config.rs | ||
events.rs | ||
handlers.rs | ||
health.rs | ||
job.rs | ||
keymap.rs | ||
lib.rs | ||
main.rs |