Skip to content

Commit

Permalink
Fix settings and schema
Browse files Browse the repository at this point in the history
  • Loading branch information
LDAP committed Feb 14, 2023
1 parent 6711ef8 commit 0f97216
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 53 deletions.
32 changes: 17 additions & 15 deletions LSP-ruff.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
{
"settings": {
// Custom arguments passed to ruff.
"args": [],
// 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.
"interpreter": [],
// Setting to control when a notification is shown.
"showNotification": "off",
// 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
"initializationOptions": {
"settings": {
// Custom arguments passed to ruff.
"args": [],
// 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.
"interpreter": [],
// Setting to control when a notification is shown.
"showNotification": "off",
// 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
},
},
"command": [
"$server_path"
Expand Down
80 changes: 42 additions & 38 deletions sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,50 @@
"definitions": {
"PluginConfig": {
"properties": {
"settings": {
"initializationOptions": {
"properties": {
"args": {
"type": "array",
"default": [],
"description": "Custom arguments passed to ruff."
},
"logLevel": {
"type": "string",
"default": "error",
"description": "Sets the tracing level for the extension."
},
"path": {
"type": "array",
"default": [],
"description": "Setting to provide custom ruff executables, to try in order."
},
"interpreter": {
"type": "array",
"default": [],
"description": "Path to a Python interpreter to use to run the linter server."
},
"showNotification": {
"type": "string",
"default": "off",
"description": "Setting to control when a notification is shown."
},
"organizeImports": {
"type": "boolean",
"default": true,
"description": "Whether to register Ruff as capable of handling source.organizeImports actions."
},
"fixAll": {
"type": "boolean",
"default": true,
"description": "Whether to register Ruff as capable of handling source.fixAll actions."
"settings": {
"properties": {
"args": {
"type": "array",
"default": [],
"description": "Custom arguments passed to ruff."
},
"logLevel": {
"type": "string",
"default": "error",
"description": "Sets the tracing level for the extension."
},
"path": {
"type": "array",
"default": [],
"description": "Setting to provide custom ruff executables, to try in order."
},
"interpreter": {
"type": "array",
"default": [],
"description": "Path to a Python interpreter to use to run the linter server."
},
"showNotification": {
"type": "string",
"default": "off",
"description": "Setting to control when a notification is shown."
},
"organizeImports": {
"type": "boolean",
"default": true,
"description": "Whether to register Ruff as capable of handling source.organizeImports actions."
},
"fixAll": {
"type": "boolean",
"default": true,
"description": "Whether to register Ruff as capable of handling source.fixAll actions."
},
},
"additionalProperties": false
},
},
"additionalProperties": false
},
}
},
},
},
Expand Down Expand Up @@ -116,4 +120,4 @@
},
]
}
}
}

0 comments on commit 0f97216

Please sign in to comment.