From a4f24582e6597b5472e2db4cdbdbef23f5a88631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20B=C3=A4lter?= Date: Mon, 10 Oct 2022 15:42:46 +0200 Subject: [PATCH] Stop using deprecated cli args --- .../language_server/message/text_document/formatting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solargraph/language_server/message/text_document/formatting.rb b/lib/solargraph/language_server/message/text_document/formatting.rb index e8d1f7d15..dbe927048 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' ? '--auto-correct-all' : '--auto-correct', + config['cops'] == 'all' ? '--autocorrect-all' : '--autocorrect', '--cache', 'false', '--format', formatter_class(config).name, ]