Skip to content

Commit 703be1d

Browse files
authored
fix(types): ensure all fields for LazyPluginSpec are optional (#1843)
> After updating lua_ls to [v3.13.3](https://github.com/LuaLS/lua-language-server/releases/tag/3.13.3) noticed my plugin scripts using `@type LazyPluginSpec` now have `missing-fields` warnings. It seems they have changed how `missing-fields` diagnostics work with inherited types: LuaLS/lua-language-server@7b2d585. Duplicate offending fields as optional in type `LazyPluginSpec` Closes: #1842
1 parent 014d1d6 commit 703be1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/lazy/types.lua

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
---@field module? false
7676

7777
---@class LazyPluginSpec: LazyPluginBase,LazyPluginSpecHandlers,LazyPluginHooks,LazyPluginRef
78+
---@field name? string display name and name used for plugin config files
79+
---@field dir? string
7880
---@field dependencies? string|string[]|LazyPluginSpec[]
7981
---@field specs? string|string[]|LazyPluginSpec[]
8082

0 commit comments

Comments
 (0)