fix(lsp): fix some type annotations (#22397)

This commit is contained in:
Mathias Fußenegger
2023-02-25 18:47:05 +01:00
committed by GitHub
parent db32d312ac
commit c1514d7e67
5 changed files with 92 additions and 79 deletions

View File

@@ -20,14 +20,6 @@ function transform_schema_to_table()
end
--]=]
---@class lsp.ShowMessageRequestParams
---@field type lsp.MessageType
---@field message string
---@field actions nil|lsp.MessageActionItem[]
---@class lsp.MessageActionItem
---@field title string
local constants = {
DiagnosticSeverity = {
-- Reports an error.
@@ -60,6 +52,7 @@ local constants = {
},
-- The file event type.
---@enum lsp.FileChangeType
FileChangeType = {
-- The file got created.
Created = 1,