aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/types/lsp/ada_ls.lua15
-rw-r--r--lua/lspconfig/types/lsp/basedpyright.lua6
-rw-r--r--lua/lspconfig/types/lsp/jdtls.lua9
-rw-r--r--lua/lspconfig/types/lsp/luau_lsp.lua39
-rw-r--r--lua/lspconfig/types/lsp/omnisharp.lua23
-rw-r--r--lua/lspconfig/types/lsp/powershell_es.lua8
-rw-r--r--lua/lspconfig/types/lsp/rust_analyzer.lua45
7 files changed, 135 insertions, 10 deletions
diff --git a/lua/lspconfig/types/lsp/ada_ls.lua b/lua/lspconfig/types/lsp/ada_ls.lua
index 4bb477c2..8193bbf9 100644
--- a/lua/lspconfig/types/lsp/ada_ls.lua
+++ b/lua/lspconfig/types/lsp/ada_ls.lua
@@ -75,6 +75,11 @@
---default = 10
---```
---@field logThreshold? integer
+---Configurable thresholds for metrics provided by `gnatmetric`. Each key is a metric name (e.g., `cyclomatic_complexity`, `code_lines`), and the value is an object with optional 'warn' and 'error' numeric thresholds.
+---Metric names can be retrieved from the XML metric files generated by `gnatmetric`, which by default are located under the project's object directory (`.metrics.xml` files).
+---
+---If not set, no thresholds will be applied.
+---@field metricThresholds? table
---Defines the number of parameters/components beyond which named notation is used for completion snippets.
---
---If not set in VS Code, this setting takes its value from the [`.als.json`](https://github.com/AdaCore/ada_language_server/blob/master/doc/settings.md) file at the root of the workspace, if that file exists. Otherwise it defaults to `3`.
@@ -118,6 +123,10 @@
---
---If not set in VS Code, this setting takes its value from the [`.als.json`](https://github.com/AdaCore/ada_language_server/blob/master/doc/settings.md) file at the root of the workspace, if that file exists.
---@field scenarioVariables? table
+---Controls whether or not the Ada Language Server should emit diagnostics related to the semantic analysis of Ada files.
+---
+---If not set in VS Code, this setting takes its value from the [`.als.json`](https://github.com/AdaCore/ada_language_server/blob/master/doc/settings.md) file at the root of the workspace, if that file exists. Otherwise it defaults to `true`.
+---@field semanticDiagnostics? true | false
---Whether to show error notifications in VS Code for failing LSP requests.
---@field showNotificationsOnErrors? boolean
---Controls whether or not the Ada Language Server should emit source information diagnostics (e.g: for opened files that do not belong to the loaded project tree).
@@ -129,6 +138,12 @@
---
---If not set in VS Code, this setting takes its value from the [`.als.json`](https://github.com/AdaCore/ada_language_server/blob/master/doc/settings.md) file at the root of the workspace, if that file exists. Otherwise it defaults to `true`.
---@field useCompletionSnippets? true | false
+---Workspace symbol search method.
+---
+---```lua
+---default = "fuzzy"
+---```
+---@field workspaceSearch? "fuzzy" | "startWord"
---@class _.lspconfig.settings.ada_ls.E3Testsuite
---Command line arguments to pass to testsuite.py when running tests
diff --git a/lua/lspconfig/types/lsp/basedpyright.lua b/lua/lspconfig/types/lsp/basedpyright.lua
index ffda748e..bcab4862 100644
--- a/lua/lspconfig/types/lsp/basedpyright.lua
+++ b/lua/lspconfig/types/lsp/basedpyright.lua
@@ -74,6 +74,12 @@
---default = "none"
---```
---@field reportDuplicateImport? "none" | "hint" | "information" | "warning" | "error" | true | false
+---Diagnostics for an attempt to instantiate an abstract class that has no abstract members.
+---
+---```lua
+---default = "none"
+---```
+---@field reportEmptyAbstractUsage? "none" | "hint" | "information" | "warning" | "error" | true | false
---Diagnostics for type annotations that use the `Any` type
---
---```lua
diff --git a/lua/lspconfig/types/lsp/jdtls.lua b/lua/lspconfig/types/lsp/jdtls.lua
index 6f5cdae7..0a7ac689 100644
--- a/lua/lspconfig/types/lsp/jdtls.lua
+++ b/lua/lspconfig/types/lsp/jdtls.lua
@@ -562,6 +562,14 @@
---```
---@field enabled? boolean
+---@class _.lspconfig.settings.jdtls.Java.Jdt.Ls.ScalaSupport
+---[Experimental] Specify whether to enable `scala` plugin in Gradle projects. Defaults to `true`.
+---
+---```lua
+---default = true
+---```
+---@field enabled? boolean
+
---@class _.lspconfig.settings.jdtls.Java.Jdt.Ls
---@field androidSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.AndroidSupport
---@field appcds? _.lspconfig.settings.jdtls.Java.Jdt.Ls.Appcds
@@ -572,6 +580,7 @@
---@field kotlinSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.KotlinSupport
---@field lombokSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.LombokSupport
---@field protobufSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.ProtobufSupport
+---@field scalaSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.ScalaSupport
---Specifies extra VM arguments used to launch the Java Language Server. Eg. use `-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable` to optimize memory usage with the parallel garbage collector
---
---```lua
diff --git a/lua/lspconfig/types/lsp/luau_lsp.lua b/lua/lspconfig/types/lsp/luau_lsp.lua
index 8deca1a1..eea22e6a 100644
--- a/lua/lspconfig/types/lsp/luau_lsp.lua
+++ b/lua/lspconfig/types/lsp/luau_lsp.lua
@@ -294,6 +294,27 @@
---```
---@field port? number
+---@class _.lspconfig.settings.luau_lsp.LuauLsp.Plugins.FileSystem
+---Allow plugins to read files within the workspace. Only files within the workspace can be accessed for security.
+---@field enabled? boolean
+
+---@class _.lspconfig.settings.luau_lsp.LuauLsp.Plugins
+---Enable source code transformation plugins. Plugins are Luau scripts that can transform source code before type checking.
+---@field enabled? boolean
+---@field fileSystem? _.lspconfig.settings.luau_lsp.LuauLsp.Plugins.FileSystem
+---Paths to Luau plugin scripts. Plugins are executed in order and can transform source code before type checking.
+---
+---```lua
+---default = {}
+---```
+---@field paths? string[]
+---Timeout in milliseconds for plugin execution. If a plugin takes longer than this, it will be terminated.
+---
+---```lua
+---default = 5000
+---```
+---@field timeoutMs? number
+
---@class _.lspconfig.settings.luau_lsp.LuauLsp.Require
---A mapping of custom require string prefixes to directory paths. The aliases should include trailing slashes
---
@@ -380,6 +401,22 @@
---Whether the VSCode filesystem watchers are used to regenerate the sourcemap. If disabled, delegates to the generator process. If using `rojo`, this command stops using `--watch`
---@field useVSCodeWatcher? boolean
+---@class _.lspconfig.settings.luau_lsp.LuauLsp.StudioPlugin
+---Use Roblox Studio Plugin to provide DataModel information
+---@field enabled? boolean
+---The maximum request body size accepted from the plugin, in a string representation parse-able by the [bytes](https://www.npmjs.com/package/bytes) library
+---
+---```lua
+---default = "3mb"
+---```
+---@field maximumRequestBodySize? string
+---Port number to connect to the Studio Plugin
+---
+---```lua
+---default = 3667
+---```
+---@field port? number
+
---@class _.lspconfig.settings.luau_lsp.LuauLsp.Types
---A mapping of package names to paths of definition files to load in to the type checker. Note that definition file syntax is currently unstable and may change at any time
---
@@ -431,10 +468,12 @@
---@field inlayHints? _.lspconfig.settings.luau_lsp.LuauLsp.InlayHints
---@field platform? _.lspconfig.settings.luau_lsp.LuauLsp.Platform
---@field plugin? _.lspconfig.settings.luau_lsp.LuauLsp.Plugin
+---@field plugins? _.lspconfig.settings.luau_lsp.LuauLsp.Plugins
---@field require? _.lspconfig.settings.luau_lsp.LuauLsp.Require
---@field server? _.lspconfig.settings.luau_lsp.LuauLsp.Server
---@field signatureHelp? _.lspconfig.settings.luau_lsp.LuauLsp.SignatureHelp
---@field sourcemap? _.lspconfig.settings.luau_lsp.LuauLsp.Sourcemap
+---@field studioPlugin? _.lspconfig.settings.luau_lsp.LuauLsp.StudioPlugin
---@field types? _.lspconfig.settings.luau_lsp.LuauLsp.Types
---@class lspconfig.settings.luau_lsp
diff --git a/lua/lspconfig/types/lsp/omnisharp.lua b/lua/lspconfig/types/lsp/omnisharp.lua
index 77a8e141..261a5c92 100644
--- a/lua/lspconfig/types/lsp/omnisharp.lua
+++ b/lua/lspconfig/types/lsp/omnisharp.lua
@@ -177,6 +177,8 @@
---%generateOptionsSchema.suppressJITOptimizations.markdownDescription%
---@field suppressJITOptimizations? boolean
---@field symbolOptions? _.lspconfig.settings.omnisharp.Csharp.Debug.SymbolOptions
+---%generateOptionsSchema.terminateChildProcesses.description%
+---@field terminateChildProcesses? boolean
---@class _.lspconfig.settings.omnisharp.Csharp.Format
---%configuration.omnisharp.csharp.format.enable%
@@ -212,6 +214,17 @@
---```
---@field enabled? boolean
+---@class _.lspconfig.settings.omnisharp.Csharp.Wasm.Debug
+---%generateOptionsSchema.useVSDbg.description%
+---
+---```lua
+---default = true
+---```
+---@field useVSDbg? boolean
+
+---@class _.lspconfig.settings.omnisharp.Csharp.Wasm
+---@field debug? _.lspconfig.settings.omnisharp.Csharp.Wasm.Debug
+
---@class _.lspconfig.settings.omnisharp.Csharp
---@field debug? _.lspconfig.settings.omnisharp.Csharp.Debug
---@field format? _.lspconfig.settings.omnisharp.Csharp.Format
@@ -244,6 +257,7 @@
---@field suppressHiddenDiagnostics? boolean
---%configuration.omnisharp.csharp.suppressProjectJsonWarning%
---@field suppressProjectJsonWarning? boolean
+---@field wasm? _.lspconfig.settings.omnisharp.Csharp.Wasm
---@class _.lspconfig.settings.omnisharp.Dotnet.AutoInsert
---%configuration.dotnet.autoInsert.enableAutoInsert%
@@ -315,6 +329,14 @@
---```
---@field reportInformationAsHint? boolean
+---@class _.lspconfig.settings.omnisharp.Dotnet.FileBasedApps
+---%configuration.dotnet.fileBasedApps.enableAutomaticDiscovery%
+---
+---```lua
+---default = true
+---```
+---@field enableAutomaticDiscovery? boolean
+
---@class _.lspconfig.settings.omnisharp.Dotnet.Formatting
---%configuration.dotnet.formatting.organizeImportsOnFormat%
---@field organizeImportsOnFormat? boolean
@@ -707,6 +729,7 @@
---default = true
---```
---@field enableXamlTools? boolean
+---@field fileBasedApps? _.lspconfig.settings.omnisharp.Dotnet.FileBasedApps
---@field formatting? _.lspconfig.settings.omnisharp.Dotnet.Formatting
---@field highlighting? _.lspconfig.settings.omnisharp.Dotnet.Highlighting
---@field inlayHints? _.lspconfig.settings.omnisharp.Dotnet.InlayHints
diff --git a/lua/lspconfig/types/lsp/powershell_es.lua b/lua/lspconfig/types/lsp/powershell_es.lua
index 7b03657d..3b4292fc 100644
--- a/lua/lspconfig/types/lsp/powershell_es.lua
+++ b/lua/lspconfig/types/lsp/powershell_es.lua
@@ -31,6 +31,12 @@
---default = true
---```
---@field addWhitespaceAroundPipe? boolean
+---Align member value assignments in an Enum Type Definition.
+---
+---```lua
+---default = true
+---```
+---@field alignEnumMemberValues? boolean
---Align assignment statements in a hashtable or a DSC Configuration.
---
---```lua
@@ -201,6 +207,8 @@
---@field startLocation? "Editor" | "Panel"
---Do not show the startup banner in the PowerShell Extension Terminal.
---@field suppressStartupBanner? boolean
+---Do not show a notification when the PowerShell Extension Terminal has stopped.
+---@field suppressTerminalStoppedNotification? boolean
---This will disable the use of PSReadLine in the PowerShell Extension Terminal and use a legacy implementation. **This setting is not recommended and likely to be deprecated!**
---@field useLegacyReadLine? boolean
diff --git a/lua/lspconfig/types/lsp/rust_analyzer.lua b/lua/lspconfig/types/lsp/rust_analyzer.lua
index a1c69950..9297a7d3 100644
--- a/lua/lspconfig/types/lsp/rust_analyzer.lua
+++ b/lua/lspconfig/types/lsp/rust_analyzer.lua
@@ -143,6 +143,13 @@
---default = {}
---```
---@field features? "all"|string[]
+---Extra arguments passed only to `cargo metadata`, not to other cargo invocations.
+---Useful for flags like `--config` that `cargo metadata` supports.
+---
+---```lua
+---default = {}
+---```
+---@field metadataExtraArgs? string[]
---Whether to pass `--no-default-features` to cargo.
---@field noDefaultFeatures? boolean
---Whether to skip fetching dependencies. If set to "true", the analysis is performed
@@ -1257,18 +1264,30 @@
---Override the command used for bench runnables.
---The first element of the array should be the program to execute (for example, `cargo`).
---
----Use the placeholders `${package}`, `${target_arg}`, `${target}`, `${executable_args}` to dynamically
----replace the package name, target option (such as `--bin` or `--example`), the target name and
----the arguments passed to test binary args (includes `rust-analyzer.runnables.extraTestBinaryArgs`).
+---Use the placeholders:
+---- `${package}`: package name.
+---- `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.
+---- `${target}`: target name (empty for `--lib`).
+---- `${test_name}`: the test path filter, e.g. `module::bench_func`.
+---- `${exact}`: `--exact` for single benchmarks, empty for modules.
+---- `${include_ignored}`: always empty for benchmarks.
+---- `${executable_args}`: all of the above binary args bundled together
+--- (includes `rust-analyzer.runnables.extraTestBinaryArgs`).
---@field overrideCommand? string[]
---@class _.lspconfig.settings.rust_analyzer.RustAnalyzer.Runnables.Doctest
----Override the command used for bench runnables.
+---Override the command used for doc-test runnables.
---The first element of the array should be the program to execute (for example, `cargo`).
---
----Use the placeholders `${package}`, `${target_arg}`, `${target}`, `${executable_args}` to dynamically
----replace the package name, target option (such as `--bin` or `--example`), the target name and
----the arguments passed to test binary args (includes `rust-analyzer.runnables.extraTestBinaryArgs`).
+---Use the placeholders:
+---- `${package}`: package name.
+---- `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.
+---- `${target}`: target name (empty for `--lib`).
+---- `${test_name}`: the test path filter, e.g. `module::func`.
+---- `${exact}`: always empty for doc-tests.
+---- `${include_ignored}`: always empty for doc-tests.
+---- `${executable_args}`: all of the above binary args bundled together
+--- (includes `rust-analyzer.runnables.extraTestBinaryArgs`).
---@field overrideCommand? string[]
---@class _.lspconfig.settings.rust_analyzer.RustAnalyzer.Runnables.Test
@@ -1281,9 +1300,15 @@
---Override the command used for test runnables.
---The first element of the array should be the program to execute (for example, `cargo`).
---
----Use the placeholders `${package}`, `${target_arg}`, `${target}`, `${executable_args}` to dynamically
----replace the package name, target option (such as `--bin` or `--example`), the target name and
----the arguments passed to test binary args (includes `rust-analyzer.runnables.extraTestBinaryArgs`).
+---Available placeholders:
+---- `${package}`: package name.
+---- `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.
+---- `${target}`: target name (empty for `--lib`).
+---- `${test_name}`: the test path filter, e.g. `module::test_func`.
+---- `${exact}`: `--exact` for single tests, empty for modules.
+---- `${include_ignored}`: `--include-ignored` for single tests, empty otherwise.
+---- `${executable_args}`: all of the above binary args bundled together
+--- (includes `rust-analyzer.runnables.extraTestBinaryArgs`).
---@field overrideCommand? string[]
---@class _.lspconfig.settings.rust_analyzer.RustAnalyzer.Runnables