From 0f972168028189beafb9ee455667fa0c13a7ba61 Mon Sep 17 00:00:00 2001 From: Lucas Alber Date: Tue, 14 Feb 2023 13:37:05 +0100 Subject: [PATCH] Fix settings and schema --- LSP-ruff.sublime-settings | 32 ++++++++-------- sublime-package.json | 80 ++++++++++++++++++++------------------- 2 files changed, 59 insertions(+), 53 deletions(-) diff --git a/LSP-ruff.sublime-settings b/LSP-ruff.sublime-settings index 3656448..6ab2cdd 100644 --- a/LSP-ruff.sublime-settings +++ b/LSP-ruff.sublime-settings @@ -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" diff --git a/sublime-package.json b/sublime-package.json index 132e99c..28bec55 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -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 - }, + } }, }, }, @@ -116,4 +120,4 @@ }, ] } -} +} \ No newline at end of file