mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(lsp): clean up duplicate and unused meta type annotations
This commit is contained in:
parent
f936a962d0
commit
fa9a85ae46
@ -14,10 +14,3 @@ error('Cannot require a meta file')
|
|||||||
---@field code integer
|
---@field code integer
|
||||||
---@field message string
|
---@field message string
|
||||||
---@field data string|number|boolean|table[]|table|nil
|
---@field data string|number|boolean|table[]|table|nil
|
||||||
|
|
||||||
--- @class lsp.DocumentFilter
|
|
||||||
--- @field language? string
|
|
||||||
--- @field scheme? string
|
|
||||||
--- @field pattern? string
|
|
||||||
|
|
||||||
--- @alias lsp.RegisterOptions any | lsp.StaticRegistrationOptions | lsp.TextDocumentRegistrationOptions
|
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
--[[
|
--[[
|
||||||
This file is autogenerated from scripts/gen_lsp.lua
|
THIS FILE IS GENERATED by scripts/gen_lsp.lua
|
||||||
|
DO NOT EDIT MANUALLY
|
||||||
|
|
||||||
|
Based on LSP protocol 3.18
|
||||||
|
|
||||||
Regenerate:
|
Regenerate:
|
||||||
nvim -l scripts/gen_lsp.lua gen --version 3.18 --out runtime/lua/vim/lsp/_meta/protocol.lua
|
nvim -l scripts/gen_lsp.lua gen --version 3.18
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
---@meta
|
---@meta
|
||||||
@ -9,12 +13,9 @@ error('Cannot require a meta file')
|
|||||||
|
|
||||||
---@alias lsp.null nil
|
---@alias lsp.null nil
|
||||||
---@alias uinteger integer
|
---@alias uinteger integer
|
||||||
---@alias lsp.decimal number
|
---@alias decimal number
|
||||||
---@alias lsp.DocumentUri string
|
---@alias lsp.DocumentUri string
|
||||||
---@alias lsp.URI string
|
---@alias lsp.URI string
|
||||||
---@alias lsp.LSPObject table<string, lsp.LSPAny>
|
|
||||||
---@alias lsp.LSPArray lsp.LSPAny[]
|
|
||||||
---@alias lsp.LSPAny lsp.LSPObject|lsp.LSPArray|string|number|boolean|nil
|
|
||||||
|
|
||||||
---@class lsp.ImplementationParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams
|
---@class lsp.ImplementationParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams
|
||||||
|
|
||||||
|
@ -159,11 +159,13 @@ function M.gen(opt)
|
|||||||
|
|
||||||
local output = {
|
local output = {
|
||||||
'--' .. '[[',
|
'--' .. '[[',
|
||||||
'This file is autogenerated from scripts/gen_lsp.lua',
|
'THIS FILE IS GENERATED by scripts/gen_lsp.lua',
|
||||||
|
'DO NOT EDIT MANUALLY',
|
||||||
|
'',
|
||||||
|
'Based on LSP protocol ' .. opt.version,
|
||||||
|
'',
|
||||||
'Regenerate:',
|
'Regenerate:',
|
||||||
([=[nvim -l scripts/gen_lsp.lua gen --version %s --out runtime/lua/vim/lsp/_meta/protocol.lua]=]):format(
|
([=[nvim -l scripts/gen_lsp.lua gen --version %s]=]):format(DEFAULT_LSP_VERSION),
|
||||||
DEFAULT_LSP_VERSION
|
|
||||||
),
|
|
||||||
'--' .. ']]',
|
'--' .. ']]',
|
||||||
'',
|
'',
|
||||||
'---@meta',
|
'---@meta',
|
||||||
@ -171,12 +173,9 @@ function M.gen(opt)
|
|||||||
'',
|
'',
|
||||||
'---@alias lsp.null nil',
|
'---@alias lsp.null nil',
|
||||||
'---@alias uinteger integer',
|
'---@alias uinteger integer',
|
||||||
'---@alias lsp.decimal number',
|
'---@alias decimal number',
|
||||||
'---@alias lsp.DocumentUri string',
|
'---@alias lsp.DocumentUri string',
|
||||||
'---@alias lsp.URI string',
|
'---@alias lsp.URI string',
|
||||||
'---@alias lsp.LSPObject table<string, lsp.LSPAny>',
|
|
||||||
'---@alias lsp.LSPArray lsp.LSPAny[]',
|
|
||||||
'---@alias lsp.LSPAny lsp.LSPObject|lsp.LSPArray|string|number|boolean|nil',
|
|
||||||
'',
|
'',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user