lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

Improve Lua code to get current version

Open lcheylus opened this issue 1 year ago • 0 comments

How are you using the lua-language-server?

NeoVim

Which OS are you using?

Other

What is the issue affecting?

Other

Expected Behaviour

I would like to get the current version for lua-language-server without changelog.md file.

Improve Lua code in script/version.lua to get current version (last Git tag).

Actual Behaviour

When a contributor packages lua-language-server for a distribution (Linux or BSD), the changelog.md file is not always included.

In script/version.lua file, the current version is defined (function loadVersion) with parsing of the changelog.md file. If this file is not present, the returned version is Unknown.

It will be better to get the current version without parsing of changelog.md file => get version from the last Git tag or define the current version in script/version.lua file.

Reproduction steps

N/A

Additional Notes

No response

Log File

No response

lcheylus avatar Feb 26 '24 10:02 lcheylus