mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 19:07:44 +03:00
fix lsp config reload (#9415)
`syn_loader` was replaced rather than interior value being replace, old value was still being referenced and not updated after `:config-refresh`. By using `ArcSwap` like for `config`, each `.load()` call will return the most updated value. Co-authored-by: kyfan <kyfan@email>
This commit is contained in:
parent
7934ac7714
commit
fe869e5dc7
13 changed files with 89 additions and 41 deletions
|
@ -30,3 +30,4 @@ thiserror = "1.0"
|
|||
tokio = { version = "1.36", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot", "sync"] }
|
||||
tokio-stream = "0.1.14"
|
||||
parking_lot = "0.12.1"
|
||||
arc-swap = "1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue