diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-03-19 22:38:34 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-03-19 22:38:34 +0100 |
| commit | fcd24adba9cca483115a7ac207854d2a0ea94823 (patch) | |
| tree | 3b2d22c5793fb966e3c2c945e356b2e232b40c37 /.vscode | |
| parent | 4bfe6248936bf9d12185ada7f43c938d87f99841 (diff) | |
vscode: recommend extensions, disable toml formatting, update.
Diffstat (limited to '.vscode')
| -rw-r--r-- | .vscode/extensions.json | 11 | ||||
| -rw-r--r-- | .vscode/settings.json | 8 |
2 files changed, 14 insertions, 5 deletions
diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..a8bb78adb --- /dev/null +++ b/.vscode/extensions.json | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | { | ||
| 2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
| 3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
| 4 | // List of extensions which should be recommended for users of this workspace. | ||
| 5 | "recommendations": [ | ||
| 6 | "rust-lang.rust-analyzer", | ||
| 7 | "tamasfe.even-better-toml", | ||
| 8 | ], | ||
| 9 | // List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
| 10 | "unwantedRecommendations": [] | ||
| 11 | } \ No newline at end of file | ||
diff --git a/.vscode/settings.json b/.vscode/settings.json index db37b64ce..700804dca 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json | |||
| @@ -1,9 +1,11 @@ | |||
| 1 | { | 1 | { |
| 2 | "editor.formatOnSave": true, | 2 | "editor.formatOnSave": true, |
| 3 | "[toml]": { | ||
| 4 | "editor.formatOnSave": false | ||
| 5 | }, | ||
| 3 | "rust-analyzer.check.allTargets": false, | 6 | "rust-analyzer.check.allTargets": false, |
| 4 | "rust-analyzer.check.noDefaultFeatures": true, | 7 | "rust-analyzer.check.noDefaultFeatures": true, |
| 5 | "rust-analyzer.cargo.noDefaultFeatures": true, | 8 | "rust-analyzer.cargo.noDefaultFeatures": true, |
| 6 | "rust-analyzer.procMacro.enable": true, | ||
| 7 | "rust-analyzer.cargo.target": "thumbv7em-none-eabi", | 9 | "rust-analyzer.cargo.target": "thumbv7em-none-eabi", |
| 8 | //"rust-analyzer.cargo.target": "thumbv8m.main-none-eabihf", | 10 | //"rust-analyzer.cargo.target": "thumbv8m.main-none-eabihf", |
| 9 | "rust-analyzer.cargo.features": [ | 11 | "rust-analyzer.cargo.features": [ |
| @@ -38,8 +40,4 @@ | |||
| 38 | // "examples/stm32wl55/Cargo.toml", | 40 | // "examples/stm32wl55/Cargo.toml", |
| 39 | // "examples/wasm/Cargo.toml", | 41 | // "examples/wasm/Cargo.toml", |
| 40 | ], | 42 | ], |
| 41 | "rust-analyzer.imports.granularity.enforce": true, | ||
| 42 | "rust-analyzer.imports.granularity.group": "module", | ||
| 43 | "rust-analyzer.cargo.buildScripts.enable": true, | ||
| 44 | "rust-analyzer.procMacro.attributes.enable": false, | ||
| 45 | } \ No newline at end of file | 43 | } \ No newline at end of file |
