Skip to content

Add serverInfo.version to initialize response #2996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased
<!-- Add all new changes here. They will be moved under a version at release -->
* `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
Expand Down
2 changes: 2 additions & 0 deletions script/provider/provider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -128,6 +129,7 @@ m.register 'initialize' {
capabilities = cap.getProvider(),
serverInfo = {
name = 'sumneko.lua',
version = version.getVersion(),
},
}
log.debug('Server init', inspect(response))
Expand Down
Loading