From dc4bfc02ef1082c4a9bb9b1e327b7684f30841d1 Mon Sep 17 00:00:00 2001 From: Avasam Date: Tue, 9 Apr 2024 03:06:46 -0400 Subject: [PATCH] Update vscode `editor.codeActionsOnSave.source.*` settings (#11735) --- .vscode/settings.default.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.default.json b/.vscode/settings.default.json index 38709967d..84c81614f 100644 --- a/.vscode/settings.default.json +++ b/.vscode/settings.default.json @@ -9,7 +9,7 @@ // Don't format on save for formatters we don't explicitely control "editor.formatOnSave": false, "editor.codeActionsOnSave": { - "source.fixAll": false + "source.fixAll": "never" }, // Set file associations to support comments syntax highlight "files.associations": { @@ -48,9 +48,7 @@ "[json][jsonc][yaml][python][toml]": { "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll": true, - // Allow isort or Ruff to organize imports - "source.organizeImports": true + "source.fixAll": "explicit" } }, "[json][jsonc]": { @@ -69,7 +67,11 @@ "editor.rulers": [ 130 ], - "editor.defaultFormatter": "ms-python.black-formatter" + "editor.defaultFormatter": "ms-python.black-formatter", + "editor.codeActionsOnSave": { + // Let Ruff lint fixes handle imports + "source.organizeImports": "never" + } }, // python.analysis is Pylance (pyright) configurations "python.analysis.fixAll": [