Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make config.rs a single source of truth for configuration. #6761

Merged
merged 1 commit into from
Dec 8, 2020

Commits on Dec 8, 2020

  1. 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.
    matklad committed Dec 8, 2020
    Configuration menu
    Copy the full SHA
    2544abb View commit details
    Browse the repository at this point in the history