disable .fixall autofix mode

This commit is contained in:
Techatrix 2023-03-25 03:15:13 +01:00 committed by Lee Cannon
parent 283ca0006d
commit 29037f2f05

View File

@ -495,7 +495,8 @@ fn getAutofixMode(server: *Server) enum {
none,
} {
if (!server.config.enable_autofix) return .none;
if (server.client_capabilities.supports_code_action_fixall) return .fixall;
// TODO https://github.com/zigtools/zls/issues/1093
// if (server.client_capabilities.supports_code_action_fixall) return .fixall;
if (server.client_capabilities.supports_apply_edits) {
if (server.client_capabilities.supports_will_save_wait_until) return .will_save_wait_until;
return .on_save;