Skip to content

Commit

Permalink
Add deprecation warning for ruff-lsp specific settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Jan 31, 2025
1 parent 2c79e6a commit 8b8f534
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
"ruff.lint.args": {
"default": [],
"markdownDescription": "Additional command-line arguments to pass to `ruff check`, e.g., `\"args\": [\"--config=/path/to/pyproject.toml\"]`. Supports a subset of Ruff's command-line arguments, ignoring those that are required to operate the LSP, like `--force-exclude` and `--verbose`.\n\n**This setting is not supported by the native server.**",
"markdownDeprecationMessage": "**Deprecated**: This setting is only used by [`ruff-lsp`](https://github.com/astral-sh/ruff-lsp) which is deprecated in favor of the native language server. Refer to the [migration guide](https://docs.astral.sh/ruff/editors/migration) for more information.",
"deprecationMessage": "Deprecated: This setting is only used by ruff-lsp which is deprecated in favor of the native language server.",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -194,6 +196,8 @@
"Run Ruff on every keystroke.",
"Run Ruff on save."
],
"markdownDeprecationMessage": "**Deprecated**: This setting is only used by [`ruff-lsp`](https://github.com/astral-sh/ruff-lsp) which is deprecated in favor of the native language server. This setting is irrelevant when using the native language server which runs on every keystroke by default.",
"deprecationMessage": "Deprecated: This setting is only used by ruff-lsp which is deprecated in favor of the native language server. This setting is irrelevant when using the native language server which runs on every keystroke by default.",
"scope": "window",
"type": "string"
},
Expand All @@ -206,6 +210,8 @@
"ruff.format.args": {
"default": [],
"markdownDescription": "Additional command-line arguments to pass to `ruff format`, e.g., `\"args\": [\"--config=/path/to/pyproject.toml\"]`. Supports a subset of Ruff's command-line arguments, ignoring those that are required to operate the LSP, like `--force-exclude` and `--verbose`.\n\n**This setting is not supported by the native server.**",
"markdownDeprecationMessage": "**Deprecated**: This setting is only used by [`ruff-lsp`](https://github.com/astral-sh/ruff-lsp) which is deprecated in favor of the native language server. Refer to the [migration guide](https://docs.astral.sh/ruff/editors/migration) for more information.",
"deprecationMessage": "Deprecated: This setting is only used by ruff-lsp which is deprecated in favor of the native language server.",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -309,6 +315,8 @@
"ruff.ignoreStandardLibrary": {
"default": true,
"markdownDescription": "Whether to ignore files that are inferred to be part of the Python standard library.",
"markdownDeprecationMessage": "**Deprecated**: This setting is only used by [`ruff-lsp`](https://github.com/astral-sh/ruff-lsp) which is deprecated in favor of the native language server. Refer to the [migration guide](https://docs.astral.sh/ruff/editors/migration) for more information.",
"deprecationMessage": "Deprecated: This setting is only used by ruff-lsp which is deprecated in favor of the native language server.",
"scope": "window",
"type": "boolean"
},
Expand Down Expand Up @@ -344,6 +352,8 @@
"ruff.showNotifications": {
"default": "off",
"markdownDescription": "Controls when notifications are shown by this extension.",
"markdownDeprecationMessage": "**Deprecated**: This setting is only used by [`ruff-lsp`](https://github.com/astral-sh/ruff-lsp) which is deprecated in favor of the native language server. Refer to the [migration guide](https://docs.astral.sh/ruff/editors/migration) for more information.",
"deprecationMessage": "Deprecated: This setting is only used by ruff-lsp which is deprecated in favor of the native language server.",
"enum": [
"off",
"onError",
Expand Down

0 comments on commit 8b8f534

Please sign in to comment.