docs: do not hardcode LSP version in URL #25648

This commit is contained in:
Maria José Solano
2023-10-16 08:13:37 -07:00
committed by GitHub
parent 0892c1cd94
commit c46a6c065e
9 changed files with 13 additions and 13 deletions

View File

@ -35,7 +35,7 @@ end
-- Gets the Lua symbol for a given fully-qualified LSP method name.
local function name(s)
-- "$/" prefix is special: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#dollarRequests
-- "$/" prefix is special: https://microsoft.github.io/language-server-protocol/specification/#dollarRequests
return s:gsub('^%$', 'dollar'):gsub('/', '_')
end
@ -44,7 +44,7 @@ local function gen_methods(protocol)
'-- Generated by gen_lsp.lua, keep at end of file.',
'--- LSP method names.',
'---',
'---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#metaModel',
'---@see https://microsoft.github.io/language-server-protocol/specification/#metaModel',
'protocol.Methods = {',
}
local indent = (' '):rep(2)