mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 06:36:54 +08:00
Update vscode editor.codeActionsOnSave.source.* settings (#11735)
This commit is contained in:
12
.vscode/settings.default.json
vendored
12
.vscode/settings.default.json
vendored
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user