fix(lsp): run every server's fix-all on save, and give ESLint its codeActionOnSave setting (#2950)

Run code cleanup applied one source.fixAll action, so in TypeScript files vtsls's won and ESLint's was dropped; fix-all now runs once per server that offers it, each asked again after the previous edit. ESLint rejected every fix-all request because the built-in settings lacked codeActionOnSave; all language files attaching eslint now send { mode = "all", rules = [] }. Failed save actions are logged.

Fixes #2927
Fixes #2928
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-12 19:23:59 +08:00
1 джерело 435b00d893
коміт fb269afdfa
9 files changed
+118 -13

No files matched your search

+2
Переглянути файл
@@ -74,6 +74,8 @@ nodePath = ""
problems = { shortenToSingleLine = false }
workingDirectory = { mode = "auto" }
codeAction = { disableRuleComment = { enable = true, location = "separateLine" }, showDocumentation = { enable = true } }
# vscode-eslint reads it for every source.fixAll request (Actions on Save, Code Cleanup).
codeActionOnSave = { mode = "all", rules = [] }
[debugger]
adapter = "js-debug"