mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
feat(lsp): use stricter types for methods
This change modifies gen_lsp.lua so alias types are generated for various types of lsp methods to distinguish between notifications and requests: - vim.lsp.protocol.Method.ServerToClient.Request - vim.lsp.protocol.Method.ServerToClient.Notification - vim.lsp.protocol.Method.ClientToServer.Request - vim.lsp.protocol.Method.ClientToServer.Notification These types are then used instead of `string` where appropriate.
This commit is contained in:

committed by
Lewis Russell

parent
34b4df774d
commit
d7e0d46ffa
@@ -1,11 +1,11 @@
|
||||
--[[
|
||||
THIS FILE IS GENERATED by scripts/gen_lsp.lua
|
||||
THIS FILE IS GENERATED by scr/gen/gen_lsp.lua
|
||||
DO NOT EDIT MANUALLY
|
||||
|
||||
Based on LSP protocol 3.18
|
||||
|
||||
Regenerate:
|
||||
nvim -l scripts/gen_lsp.lua gen --version 3.18
|
||||
nvim -l scr/gen/gen_lsp.lua gen --version 3.18
|
||||
--]]
|
||||
|
||||
---@meta
|
||||
|
Reference in New Issue
Block a user