From 13268547e217134310e0a38c58d7b33d764dab02 Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Fri, 12 Apr 2024 15:32:38 -0400 Subject: [PATCH] Add linters setting and pass it to the server --- vscode/package.json | 10 ++++++++++ vscode/src/client.ts | 1 + 2 files changed, 11 insertions(+) diff --git a/vscode/package.json b/vscode/package.json index fde92508f7..830bd0b5d0 100644 --- a/vscode/package.json +++ b/vscode/package.json @@ -274,6 +274,16 @@ ], "default": "auto" }, + "rubyLsp.linters": { + "description": "List of linter tools that the Ruby LSP should use for diagnostics", + "type": "array", + "examples": [ + [ + "rubocop" + ] + ], + "default": null + }, "rubyLsp.bundleGemfile": { "description": "Relative or absolute path to the Gemfile to use for bundling the Ruby LSP server. Only necessary when using a separate Gemfile for the Ruby LSP", "type": "string", diff --git a/vscode/src/client.ts b/vscode/src/client.ts index f9b5895814..d00668d32b 100644 --- a/vscode/src/client.ts +++ b/vscode/src/client.ts @@ -117,6 +117,7 @@ function collectClientOptions( ), featuresConfiguration: configuration.get("featuresConfiguration"), formatter: configuration.get("formatter"), + linters: configuration.get("linters"), }, }; }