mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 01:44:15 +00:00
.gitattributes lists *.fixed, *.pp, and *.mir as file extensions which should be treated as Rust source code. Do the same for VS Code and Zed. This only does syntax highlighting, which is appropriate, as MIR isn't really Rust code. At the same time, consistently order `rust-analyzer.linkedProjects` between editors. For some reason, Eglot didn't include library/Cargo.toml.
46 lines
1.4 KiB
JSON
46 lines
1.4 KiB
JSON
{
|
|
"git.detectSubmodulesLimit": 20,
|
|
"rust-analyzer.check.invocationStrategy": "once",
|
|
"rust-analyzer.check.overrideCommand": [
|
|
"python3",
|
|
"x.py",
|
|
"check",
|
|
"--json-output"
|
|
],
|
|
"rust-analyzer.linkedProjects": [
|
|
"Cargo.toml",
|
|
"compiler/rustc_codegen_cranelift/Cargo.toml",
|
|
"compiler/rustc_codegen_gcc/Cargo.toml",
|
|
"library/Cargo.toml",
|
|
"src/bootstrap/Cargo.toml",
|
|
"src/tools/rust-analyzer/Cargo.toml"
|
|
],
|
|
"rust-analyzer.rustfmt.overrideCommand": [
|
|
"${workspaceFolder}/build/host/rustfmt/bin/rustfmt",
|
|
"--edition=2021"
|
|
],
|
|
"rust-analyzer.procMacro.server": "${workspaceFolder}/build/host/stage0/libexec/rust-analyzer-proc-macro-srv",
|
|
"rust-analyzer.procMacro.enable": true,
|
|
"rust-analyzer.cargo.buildScripts.enable": true,
|
|
"rust-analyzer.cargo.buildScripts.invocationStrategy": "once",
|
|
"rust-analyzer.cargo.buildScripts.overrideCommand": [
|
|
"python3",
|
|
"x.py",
|
|
"check",
|
|
"--json-output"
|
|
],
|
|
"rust-analyzer.cargo.sysrootSrc": "./library",
|
|
"rust-analyzer.rustc.source": "./Cargo.toml",
|
|
"rust-analyzer.cargo.extraEnv": {
|
|
"RUSTC_BOOTSTRAP": "1"
|
|
},
|
|
"rust-analyzer.server.extraEnv": {
|
|
"RUSTUP_TOOLCHAIN": "nightly"
|
|
},
|
|
"files.associations": {
|
|
"*.fixed": "rust",
|
|
"*.pp": "rust",
|
|
"*.mir": "rust"
|
|
}
|
|
}
|