Update vscode editor.codeActionsOnSave.source.* settings (#11735)

This commit is contained in:
Avasam
2024-04-09 03:06:46 -04:00
committed by GitHub
parent 09ff220e09
commit dc4bfc02ef

View File

@@ -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": [