diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2023-02-07 11:40:55 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2023-02-07 17:12:10 +0000 |
| commit | eb18293cec81d3e717f5287f305f7f3c596eb5d6 (patch) | |
| tree | 06755a0b5b7eac4270187d85e892db9bcef00c36 /src/etc | |
| parent | dffea43fc1102bdfe16d88ed412c23d4f0f08d9d (diff) | |
| download | rust-eb18293cec81d3e717f5287f305f7f3c596eb5d6.tar.gz rust-eb18293cec81d3e717f5287f305f7f3c596eb5d6.zip | |
Allow automatically creating vscode `settings.json` from bootstrap
Diffstat (limited to 'src/etc')
| -rw-r--r-- | src/etc/vscode_settings.json | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/etc/vscode_settings.json b/src/etc/vscode_settings.json new file mode 100644 index 00000000000..cd61a38c5da --- /dev/null +++ b/src/etc/vscode_settings.json @@ -0,0 +1,26 @@ +{ + "rust-analyzer.checkOnSave.overrideCommand": [ + "python3", + "x.py", + "check", + "--json-output" + ], + "rust-analyzer.linkedProjects": ["src/bootstrap/Cargo.toml", "Cargo.toml"], + "rust-analyzer.rustfmt.overrideCommand": [ + "./build/host/rustfmt/bin/rustfmt", + "--edition=2021" + ], + "rust-analyzer.procMacro.server": "./build/host/stage0/libexec/rust-analyzer-proc-macro-srv", + "rust-analyzer.procMacro.enable": true, + "rust-analyzer.cargo.buildScripts.enable": true, + "rust-analyzer.cargo.buildScripts.invocationLocation": "root", + "rust-analyzer.cargo.buildScripts.invocationStrategy": "once", + "rust-analyzer.cargo.buildScripts.overrideCommand": [ + "python3", + "x.py", + "check", + "--json-output" + ], + "rust-analyzer.cargo.sysroot": "./build/host/stage0-sysroot", + "rust-analyzer.rustc.source": "./Cargo.toml" +} |
