diff --git a/lib/solargraph/language_server/message/text_document/formatting.rb b/lib/solargraph/language_server/message/text_document/formatting.rb index dbe927048..77653b546 100644 --- a/lib/solargraph/language_server/message/text_document/formatting.rb +++ b/lib/solargraph/language_server/message/text_document/formatting.rb @@ -54,7 +54,7 @@ def config_for(file_uri) def cli_args file_uri, config file = UriHelpers.uri_to_file(file_uri) args = [ - config['cops'] == 'all' ? '--autocorrect-all' : '--autocorrect', + config['cops'] == 'all' ? '-A' : '-a', '--cache', 'false', '--format', formatter_class(config).name, ]