mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-14 16:07:52 +00:00
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
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user