rust/crates/rust-analyzer
Aleksey Kladov 3ced546033 Make code more understandable
Avoid mutation of snapshot's config -- that's spooky action at a
distance. Instead, copy it over to a local variable.

This points out a minor architecture problem, which we won't fix right
away.

Various `ide`-level config structs, like `AssistConfig`, are geared
towards one-shot use when calling a specific methods. On the other
hand, the large `Config` struct in `rust-analyzer` is a long-term
config store.

The fact that `Config` stores `AssistConfig` is accidental -- a better
design would probably be to just store `ConfigData` inside `Config`
and create various `Config`s on the fly out of it.
2020-12-23 13:16:24 +03:00
..
src Make code more understandable 2020-12-23 13:16:24 +03:00
tests/rust-analyzer Latest LSP 3.16 protocol 2020-11-16 15:10:13 -05:00
build.rs Fix fmt 2020-06-19 02:25:07 +08:00
Cargo.toml LSP 3.16 - Released 2020-12-17 11:33:35 -05:00