diff --git a/changelog.md b/changelog.md index 46d629548..4a9ac7170 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,7 @@ ## Unreleased * `FIX` Incorrect infer for function array annotation on tables [#2367](https://github.com/LuaLS/lua-language-server/issues/2367) +* `CHG` Add server version information to `initialize` response #2996 * `NEW` Setting: `Lua.hint.awaitPropagate`: When enabled, --@async propagates to the caller. ## 3.13.4 diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 57dc82a91..af65110a5 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -19,6 +19,7 @@ local furi = require 'file-uri' local inspect = require 'inspect' local guide = require 'parser.guide' local fs = require 'bee.filesystem' +local version = require 'version' require 'library' @@ -128,6 +129,7 @@ m.register 'initialize' { capabilities = cap.getProvider(), serverInfo = { name = 'sumneko.lua', + version = version.getVersion(), }, } log.debug('Server init', inspect(response))