Skip to content

Commit

Permalink
Update settings schema for 0.0.41
Browse files Browse the repository at this point in the history
  • Loading branch information
LDAP committed Oct 23, 2023
1 parent 5ff8dca commit a0a6852
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
14 changes: 10 additions & 4 deletions LSP-ruff.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
// same as globalSettings
},
"globalSettings": {
// Sets the tracing level for the extension.
"logLevel": "error",
// Custom arguments passed to ruff.
// See ruff documentation at https://github.com/charliermarsh/ruff/blob/main/README.md#configuration
"args": [],
"lint.args": [],
// Run Ruff on every keystroke (onType) or on save (onSave).
"lint.run": "onType",
// Sets the tracing level for the extension.
"logLevel": "error",
// Setting to provide custom ruff executables, to try in order.
"path": [],
// Path to a Python interpreter to use to run the linter server.
Expand All @@ -18,7 +20,11 @@
// Whether to register Ruff as capable of handling source.organizeImports actions.
"organizeImports": true,
// Whether to register Ruff as capable of handling source.fixAll actions.
"fixAll": true
"fixAll": true,
// Whether to display Quick Fix actions to autofix violations.
"codeAction.fixViolation.enable": true,
// Whether to display Quick Fix actions to disable rules via noqa suppression comments.
"codeAction.disableRuleComment.enable": true,
},
},
"command": [
Expand Down
21 changes: 20 additions & 1 deletion sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,20 @@
"LspRuffSettings": {
"additionalProperties": false,
"properties": {
"args": {
"lint.args": {
"type": "array",
"default": [],
"markdownDescription": "Custom arguments passed to ruff. See [ruff documentation](https://github.com/charliermarsh/ruff/blob/main/README.md#configuration)."
},
"lint.run": {
"type": "string",
"default": "onType",
"enum": [
"onType",
"onSave"
],
"description": "Run Ruff on every keystroke (onType) or on save (onSave)."
},
"logLevel": {
"type": "string",
"default": "error",
Expand Down Expand Up @@ -52,6 +61,16 @@
"type": "boolean",
"default": true,
"description": "Whether to register Ruff as capable of handling source.fixAll actions."
},
"codeAction.fixViolation.enable": {
"type": "boolean",
"default": true,
"description": "Whether to display Quick Fix actions to autofix violations."
},
"codeAction.disableRuleComment.enable": {
"type": "boolean",
"default": true,
"description": "Whether to display Quick Fix actions to disable rules via noqa suppression comments."
}
},
},
Expand Down

0 comments on commit a0a6852

Please sign in to comment.