Skip to content

Commit

Permalink
Add linters setting and pass it to the server
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed Apr 12, 2024
1 parent 62a497e commit 1326854
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions vscode/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function collectClientOptions(
),
featuresConfiguration: configuration.get("featuresConfiguration"),
formatter: configuration.get("formatter"),
linters: configuration.get("linters"),
},
};
}
Expand Down

0 comments on commit 1326854

Please sign in to comment.