* Fri Jan 05 2024 Kyle Scheuing <kyle@kylescheuing.com>
- Upgrade to 3.7.4:
- fix: doc.type.function resolve only existing arg.extends
- Add a rawdesc field to exported docs
- support c like comments
- translated some options to zh-cn
* Sun Dec 31 2023 Kyle Scheuing <kyle@kylescheuing.com>
- Upgrade to 3.7.3:
- fix: can not infer arg type in some cases
* Sat Apr 01 2023 Matej Cepl <mcepl@suse.com>
- Upgrade to 3.6.18:
- Make functions in string api accept numbers
- Don't override lm.bindir and lm.EXE_DIR in make.lua
- add: description for config.addonManager.enable
- Don't override lm.bindir and lm.EXE_DIR in make.lua
- add: description for config.addonManager.enable
- add: addon manager setting to template
- README updates
- Array of a class type does not get completion
- Improve math.abs annotation
- meta: newproxy can accept a userdata value
* Mon Feb 13 2023 Andreas Schneider <asn@cryptomilk.org>
- Update to version 3.6.11:
* https://github.com/sumneko/lua-language-server/blob/3.6.11/changelog.md
or packaged changelog.md
* Thu Jan 26 2023 Andreas Schneider <asn@cryptomilk.org>
- Update to version 3.6.7:
* https://github.com/sumneko/lua-language-server/blob/3.6.7/changelog.md
or packaged changelog.md
- Added %check section
- Moved lua-language-server binary to /usr/libexec
* Sat Sep 24 2022 Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update to version 3.5.6:
* fix #1506
* meta template: luajit add cdata type
* fix #1537
* Replace old variable return syntax
* fix: string.match return type
* string.find returns any for now
* update submodules
* update 3rd-api
- Remove time_includes.patch
* Tue Jul 26 2022 Matej Cepl <mcepl@suse.com>
- Update to 3.5.0:
- meta: openresty add api run_worker_thread
- bugfix:allow get() in sharedict return value and nil
- table new/clear function actual use scenarios
- #1325: add missing paramter type for getfenv
- Meta: make osdate accept strings
- More tag descriptions
- fix typos in annotation
- Update to 3.4.1:
- Fix dofile returns multiple values ---@return any ...
- add 3rd luafilesystem
- OpenResty type annotation updates
- fixing grammar in error message
- Add time_includes.patch to fix missing #includes
(gh#sumneko/lua-language-server#1377).
* Wed Jun 29 2022 Matej Cepl <mcepl@suse.com>
- Update to 3.4.0:
- NEW diagnostics:
cast-local-type
assign-type-mismatch
param-type-mismatch
unknown-cast-variable
cast-type-mismatch
missing-return-value
redundant-return-value
missing-return
return-type-mismatch
- NEW settings:
diagnostics.groupSeverity
diagnostics.groupFileStatus
type.castNumberToInteger
type.weakUnionCheck
hint.semicolon
- CHG infer nil as redundant return value
local function f() end
local x = f() -- `x` is `nil` instead of `unknown`
- CHG infer called function by params num
- --@overload fun(x: number, y: number):string
- --@overload fun(x: number):number
- --@return boolean
local function f() end
local n1 = f() -- `n1` is `boolean`
local n2 = f(0) -- `n2` is `number`
local n3 = f(0, 0) -- `n3` is `string`
- CHG semicolons and parentheses can be used in DocTable
- --@type { (x: number); (y: boolean) }
CHG return names and parentheses can be used in DocFunction
- --@type fun():(x: number, y: number, ...: number)
- CHG supports ---@return boolean ...
- CHG improve experience for diagnostics and semantic-tokens
- FIX diagnostics flash when opening a file
- FIX sometimes workspace diagnostics are not triggered
- Update to 3.3.0:
- NEW LuaDoc supports `CODE`
- --@type `CONST.X` | `CONST.Y`
local x
if x == -- suggest `CONST.X` and `CONST.Y` here
- CHG infer type by error
- --@type integer|nil
local n
if not n then
error('n is nil')
end
print(n) -- `n` is `integer` here
- CHG infer type by t and t.x
- --@type table|nil
local t
local s = t and t.x or 1 -- `t` in `t.x` is `table`
- CHG infer type by type(x)
local x
if type(x) == 'string' then
print(x) -- `x` is `string` here
end
local tp = type(x)
if tp == 'boolean' then
print(x) -- `x` is `boolean` here
end
- CHG infer type by >/</>=/<=
FIX with clients that support LSP 3.17 (VSCode), workspace
diagnostics are triggered every time when opening a file.
FIX #1204
FIX #1208
- Update to 3.2.5:
- NEW provide config docs in LUA_LANGUAGE_SERVER/doc/
* Sat May 28 2022 Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update to version 3.2.4:
* Include files required to compile by @sharksforarms in #1157
* NEW settings:
- workspace.supportScheme: ["file", "untitled", "git"]
- diagnostics.disableScheme: ["git"]
* NEW folding: support folding ---@alias
* CHG if rootUri or workspaceFolder is set to ROOT or HOME, this extension will refuse to load these directories and show an error message.
* CHG show warning message when scanning more than 100,000 files.
* CHG upgrade LSP to 3.17
* FIX hover: can not union table with other basic types
* FIX #1125
* FIX #1131
* FIX #1134
* FIX #1141
* FIX #1144
* FIX #1150
* FIX #1155
* Mon Apr 11 2022 Andreas Schneider <asn@cryptomilk.org>
- Update to version 3.0.1:
* FIX #1033
* FIX #1034
* FIX #1035
* FIX #1036
* FIX runtime errors reported by telemetry, see #1037