From 7d0b89a62d0c58647b96719acf30802e52e8b46b Mon Sep 17 00:00:00 2001 From: Steven Johnson Date: Thu, 5 Sep 2024 20:24:59 +0700 Subject: [PATCH] fix(rust): Fix recommended vscode settings for rust-analyzer --- .vscode/settings.recommended.json | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.recommended.json b/.vscode/settings.recommended.json index d02c96c8061..03f0ee4a800 100644 --- a/.vscode/settings.recommended.json +++ b/.vscode/settings.recommended.json @@ -9,7 +9,9 @@ }, "files.autoSave": "afterDelay", "editor.formatOnType": true, - "editor.rulers": [100], + "editor.rulers": [ + 100 + ], "editor.tabSize": 4, "debug.openDebug": "openOnDebugBreak", "debug.internalConsoleOptions": "openOnSessionStart", @@ -17,7 +19,9 @@ "[dart]": { "editor.formatOnSave": true, "editor.formatOnType": true, - "editor.rulers": [80], + "editor.rulers": [ + 80 + ], "editor.codeActionsOnSave": { "source.fixAll": true, "source.organizeImports": true @@ -46,8 +50,11 @@ "files.associations": { "Earthfile": "earthfile" }, - "rust-analyzer.linkedProjects": ["crates/*"], - "rust-analyzer.check.overrideCommand": ["bash", "-c", "cargo lint-vscode"], + "rust-analyzer.check.overrideCommand": [ + "bash", + "-c", + "cargo lint-vscode" + ], "yaml.schemas": { "https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml" }, @@ -64,6 +71,8 @@ "files.trimTrailingWhitespace": true, "editor.defaultFormatter": "DavidAnson.vscode-markdownlint" }, - "rust-analyzer.rustfmt.extraArgs": ["+nightly"], + "rust-analyzer.rustfmt.extraArgs": [ + "+nightly" + ], "rust-analyzer.lens.enable": true -} +} \ No newline at end of file