Skip to content

Commit fb5fa30

Browse files
docs: update generated annotations
skip-checks: true
1 parent ef3cda8 commit fb5fa30

5 files changed

Lines changed: 52 additions & 0 deletions

File tree

lua/lspconfig/types/lsp/ada_ls.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@
7575
---default = 10
7676
---```
7777
---@field logThreshold? integer
78+
---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.
79+
---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).
80+
---
81+
---If not set, no thresholds will be applied.
82+
---@field metricThresholds? table
7883
---Defines the number of parameters/components beyond which named notation is used for completion snippets.
7984
---
8085
---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`.

lua/lspconfig/types/lsp/jdtls.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,14 @@
562562
---```
563563
---@field enabled? boolean
564564

565+
---@class _.lspconfig.settings.jdtls.Java.Jdt.Ls.ScalaSupport
566+
---[Experimental] Specify whether to enable `scala` plugin in Gradle projects. Defaults to `true`.
567+
---
568+
---```lua
569+
---default = true
570+
---```
571+
---@field enabled? boolean
572+
565573
---@class _.lspconfig.settings.jdtls.Java.Jdt.Ls
566574
---@field androidSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.AndroidSupport
567575
---@field appcds? _.lspconfig.settings.jdtls.Java.Jdt.Ls.Appcds
@@ -572,6 +580,7 @@
572580
---@field kotlinSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.KotlinSupport
573581
---@field lombokSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.LombokSupport
574582
---@field protobufSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.ProtobufSupport
583+
---@field scalaSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.ScalaSupport
575584
---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
576585
---
577586
---```lua

lua/lspconfig/types/lsp/luau_lsp.lua

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,27 @@
294294
---```
295295
---@field port? number
296296

297+
---@class _.lspconfig.settings.luau_lsp.LuauLsp.Plugins.FileSystem
298+
---Allow plugins to read files within the workspace. Only files within the workspace can be accessed for security.
299+
---@field enabled? boolean
300+
301+
---@class _.lspconfig.settings.luau_lsp.LuauLsp.Plugins
302+
---Enable source code transformation plugins. Plugins are Luau scripts that can transform source code before type checking.
303+
---@field enabled? boolean
304+
---@field fileSystem? _.lspconfig.settings.luau_lsp.LuauLsp.Plugins.FileSystem
305+
---Paths to Luau plugin scripts. Plugins are executed in order and can transform source code before type checking.
306+
---
307+
---```lua
308+
---default = {}
309+
---```
310+
---@field paths? string[]
311+
---Timeout in milliseconds for plugin execution. If a plugin takes longer than this, it will be terminated.
312+
---
313+
---```lua
314+
---default = 5000
315+
---```
316+
---@field timeoutMs? number
317+
297318
---@class _.lspconfig.settings.luau_lsp.LuauLsp.Require
298319
---A mapping of custom require string prefixes to directory paths. The aliases should include trailing slashes
299320
---
@@ -431,6 +452,7 @@
431452
---@field inlayHints? _.lspconfig.settings.luau_lsp.LuauLsp.InlayHints
432453
---@field platform? _.lspconfig.settings.luau_lsp.LuauLsp.Platform
433454
---@field plugin? _.lspconfig.settings.luau_lsp.LuauLsp.Plugin
455+
---@field plugins? _.lspconfig.settings.luau_lsp.LuauLsp.Plugins
434456
---@field require? _.lspconfig.settings.luau_lsp.LuauLsp.Require
435457
---@field server? _.lspconfig.settings.luau_lsp.LuauLsp.Server
436458
---@field signatureHelp? _.lspconfig.settings.luau_lsp.LuauLsp.SignatureHelp

lua/lspconfig/types/lsp/omnisharp.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,14 @@
315315
---```
316316
---@field reportInformationAsHint? boolean
317317

318+
---@class _.lspconfig.settings.omnisharp.Dotnet.FileBasedApps
319+
---%configuration.dotnet.fileBasedApps.enableAutomaticDiscovery%
320+
---
321+
---```lua
322+
---default = true
323+
---```
324+
---@field enableAutomaticDiscovery? boolean
325+
318326
---@class _.lspconfig.settings.omnisharp.Dotnet.Formatting
319327
---%configuration.dotnet.formatting.organizeImportsOnFormat%
320328
---@field organizeImportsOnFormat? boolean
@@ -707,6 +715,7 @@
707715
---default = true
708716
---```
709717
---@field enableXamlTools? boolean
718+
---@field fileBasedApps? _.lspconfig.settings.omnisharp.Dotnet.FileBasedApps
710719
---@field formatting? _.lspconfig.settings.omnisharp.Dotnet.Formatting
711720
---@field highlighting? _.lspconfig.settings.omnisharp.Dotnet.Highlighting
712721
---@field inlayHints? _.lspconfig.settings.omnisharp.Dotnet.InlayHints

lua/lspconfig/types/lsp/rust_analyzer.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@
143143
---default = {}
144144
---```
145145
---@field features? "all"|string[]
146+
---Extra arguments passed only to `cargo metadata`, not to other cargo invocations.
147+
---Useful for flags like `--config` that `cargo metadata` supports.
148+
---
149+
---```lua
150+
---default = {}
151+
---```
152+
---@field metadataExtraArgs? string[]
146153
---Whether to pass `--no-default-features` to cargo.
147154
---@field noDefaultFeatures? boolean
148155
---Whether to skip fetching dependencies. If set to "true", the analysis is performed

0 commit comments

Comments
 (0)