diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2026-09-30 10:29:39 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2026-09-30 10:29:39 +0000 |
| commit | e65e0c0ee741c697f6fcb0051ddd486ac2b72f35 (patch) | |
| tree | 171d345e94f249dab7c51f7b3576960983891aea | |
| parent | feat: autocorrect #4542 (diff) | |
| download | nvim-lspconfig-e65e0c0ee741c697f6fcb0051ddd486ac2b72f35.tar nvim-lspconfig-e65e0c0ee741c697f6fcb0051ddd486ac2b72f35.tar.gz nvim-lspconfig-e65e0c0ee741c697f6fcb0051ddd486ac2b72f35.tar.bz2 nvim-lspconfig-e65e0c0ee741c697f6fcb0051ddd486ac2b72f35.tar.lz nvim-lspconfig-e65e0c0ee741c697f6fcb0051ddd486ac2b72f35.tar.xz nvim-lspconfig-e65e0c0ee741c697f6fcb0051ddd486ac2b72f35.tar.zst nvim-lspconfig-e65e0c0ee741c697f6fcb0051ddd486ac2b72f35.zip | |
docs: update generated annotations
skip-checks: true
| -rw-r--r-- | lua/lspconfig/types/lsp/jetls.lua | 12 | ||||
| -rw-r--r-- | lua/lspconfig/types/lsp/ruff_lsp.lua | 78 |
2 files changed, 10 insertions, 80 deletions
diff --git a/lua/lspconfig/types/lsp/jetls.lua b/lua/lspconfig/types/lsp/jetls.lua index df25ccd5..037ea74b 100644 --- a/lua/lspconfig/types/lsp/jetls.lua +++ b/lua/lspconfig/types/lsp/jetls.lua @@ -131,12 +131,18 @@ ---TestRunner integration configuration. See [TestRunner integration](https://aviatesk.github.io/JETLS.jl/release/configuration/#config/testrunner). ---@class _.lspconfig.settings.jetls.JetlsClient.Settings.Testrunner ----Path to the TestRunner.jl executable. Defaults to `testrunner` (or `testrunner.bat` on Windows). +---Environment variables for the TestRunner.jl process. `JULIA_APPS_JULIA_CMD` selects the Julia executable to run tests with, and `JULIAUP_CHANNEL` selects a [juliaup](https://github.com/JuliaLang/juliaup) channel of the `julia` command; tests run with the Julia running JETLS otherwise. `JULIA_DEPOT_PATH`, `JULIA_LOAD_PATH`, and `JULIA_PROJECT` cannot be set. See [`testrunner.env`](https://aviatesk.github.io/JETLS.jl/release/configuration/#config/testrunner/env). --- ---```lua ----default = "testrunner" +---default = {} +---``` +---@field env? table +---Additional command-line options for the Julia process that runs tests (e.g. `["--threads=4"]`). See [`testrunner.julia_args`](https://aviatesk.github.io/JETLS.jl/release/configuration/#config/testrunner/julia_args). +--- +---```lua +---default = {} ---``` ----@field executable? string +---@field julia_args? string[] ---JETLS server configuration settings. See [Configuration documentation](https://aviatesk.github.io/JETLS.jl/release/configuration/) for detailed information. --- diff --git a/lua/lspconfig/types/lsp/ruff_lsp.lua b/lua/lspconfig/types/lsp/ruff_lsp.lua index abe630ce..a13c2f5d 100644 --- a/lua/lspconfig/types/lsp/ruff_lsp.lua +++ b/lua/lspconfig/types/lsp/ruff_lsp.lua @@ -49,14 +49,6 @@ ---@field fixViolation? _.lspconfig.settings.ruff_lsp.Ruff.CodeAction.FixViolation ---@class _.lspconfig.settings.ruff_lsp.Ruff.Format ----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`. ---- ----**This setting is not supported by the native server.** ---- ----```lua ----default = {} ----``` ----@field args? string[] ---The backend to use for formatting. --- ---```lua @@ -64,19 +56,9 @@ ---``` ---@field backend? "internal" | "uv" ---Enable [preview mode](https://docs.astral.sh/ruff/settings/#format_preview) for the formatter; enables unstable formatting. ---- ----**This setting is used only by the native server.** ---@field preview? boolean ---@class _.lspconfig.settings.ruff_lsp.Ruff.Lint ----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`. ---- ----**This setting is not supported by the native server.** ---- ----```lua ----default = {} ----``` ----@field args? string[] ---Whether to enable linting. Set to `false` to use Ruff exclusively as a formatter. --- ---```lua @@ -84,32 +66,16 @@ ---``` ---@field enable? boolean ---Enable additional rule codes on top of existing configuration, instead of overriding it. Use `ALL` to enable all rules. ---- ----**This setting is used only by the native server.** ---@field extendSelect? string[] ---Set rule codes to disable. See [the documentation](https://docs.astral.sh/ruff/settings/#lint_ignore) for more details. ---- ----**This setting is used only by the native server.** ---@field ignore? string[] ---Enable [preview mode](https://docs.astral.sh/ruff/settings/#lint_preview) for the linter; enables unstable rules and fixes. ---- ----**This setting is used only by the native server.** ---@field preview? boolean ----Run Ruff on every keystroke (`onType`) or on save (`onSave`). ---- ----**This setting is not supported by the native server.** ---- ----```lua ----default = "onType" ----``` ----@field run? "onType" | "onSave" ---Set rule codes to enable. Use `ALL` to enable all rules. See [the documentation](https://docs.astral.sh/ruff/settings/#lint_select) for more details. ---- ----**This setting is used only by the native server.** ---@field select? string[] ---@class _.lspconfig.settings.ruff_lsp.Ruff.Trace ----Traces the communication between VSCode and the ruff-lsp. +---Traces the communication between VS Code and the Ruff language server. --- ---```lua ---default = "off" @@ -117,23 +83,11 @@ ---@field server? "off" | "messages" | "verbose" ---@class _.lspconfig.settings.ruff_lsp.Ruff ----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`. ---- ----**This setting is not supported by the native server.** ---- ----```lua ----default = {} ----``` ----@field args? string[] ---@field codeAction? _.lspconfig.settings.ruff_lsp.Ruff.CodeAction ---Configuration overrides for Ruff. See [the documentation](https://docs.astral.sh/ruff/editors/settings/#configuration) for more details. ---- ----**This setting is used only by the native server.** ---@field configuration? string|table ---The preferred method of resolving configuration in the editor with local configuration from `.toml` files. --- ----**This setting is used only by the native server.** ---- ---```lua ---default = "editorFirst" ---``` @@ -144,11 +98,7 @@ ---default = true ---``` ---@field enable? boolean ----Controls whether Ruff registers as capable of code formatting. ----@field enableExperimentalFormatter? boolean ---Set paths for the linter and formatter to ignore. See [the documentation](https://docs.astral.sh/ruff/settings/#lint_exclude) for more details. ---- ----**This setting is used only by the native server.** ---@field exclude? string[] ---Whether to register Ruff as capable of handling `source.fixAll` actions. --- @@ -157,12 +107,6 @@ ---``` ---@field fixAll? boolean ---@field format? _.lspconfig.settings.ruff_lsp.Ruff.Format ----Whether to ignore files that are inferred to be part of the Python standard library. ---- ----```lua ----default = true ----``` ----@field ignoreStandardLibrary? boolean ---Strategy for loading the `ruff` executable. `fromEnvironment` picks up Ruff from the environment, falling back to the bundled version if needed. `useBundled` uses the version bundled with the extension. --- ---```lua @@ -176,17 +120,11 @@ ---``` ---@field interpreter? string[] ---Set the [line length](https://docs.astral.sh/ruff/settings/#line-length) used by the formatter and linter. Must be greater than 0. Ruff 0.15.12 or older uses a maximum of 320. ---- ----**This setting is used only by the native server.** ---@field lineLength? integer ---@field lint? _.lspconfig.settings.ruff_lsp.Ruff.Lint ---Path to the log file for the language server. ---- ----**This setting is used only by the native server.** ---@field logFile? string ---Controls the log level of the language server. ---- ----**This setting is used only by the native server.** ---@field logLevel? "error" | "warn" | "info" | "debug" | "trace" ---Whether to use the native language server, [`ruff-lsp`](https://github.com/astral-sh/ruff-lsp) or automatically decide between the two based on the Ruff version and extension settings. --- @@ -206,20 +144,6 @@ ---default = {} ---``` ---@field path? string[] ----Run Ruff on every keystroke (`onType`) or on save (`onSave`). ---- ----**This setting is not supported by the native server.** ---- ----```lua ----default = "onType" ----``` ----@field run? "onType" | "onSave" ----Controls when notifications are shown by this extension. ---- ----```lua ----default = "off" ----``` ----@field showNotifications? "off" | "onError" | "onWarning" | "always" ---Whether to show syntax error diagnostics. --- ---```lua |
