diff options
author | Aleksey Kladov <[email protected]> | 2020-12-02 14:31:24 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-12-08 16:25:41 +0000 |
commit | 2544abbf867a7660bc2c9342181c8392774f1cca (patch) | |
tree | 1f37bdd023851034158279e10a439bcc87ea96b9 /crates/hir_ty/src/tests/traits.rs | |
parent | e2e6b709e60f22279b755ceae74e579520c9ae3b (diff) |
Make config.rs a single source of truth for configuration.
Configuration is editor-independent. For this reason, we pick
JSON-schema as the repr of the source of truth. We do specify it using
rust-macros and some quick&dirty hackery though.
The idea for syncing truth with package.json is to just do that
manually, but there's a test to check that they are actually synced.
There's CLI to print config's json schema:
$ rust-analyzer --print-config-schema
We go with a CLI rather than LSP request/response to make it easier to
incorporate the thing into extension's static config. This is roughtly
how we put the thing in package.json.
Diffstat (limited to 'crates/hir_ty/src/tests/traits.rs')
0 files changed, 0 insertions, 0 deletions