commit lua-language-server for openSUSE:Factory

Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lua-language-server for openSUSE:Factory checked in at 2022-06-30 13:18:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lua-language-server (Old) and /work/SRC/openSUSE:Factory/.lua-language-server.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "lua-language-server" Thu Jun 30 13:18:27 2022 rev:10 rq:985951 version:3.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/lua-language-server/lua-language-server.changes 2022-05-28 22:16:53.377005040 +0200 +++ /work/SRC/openSUSE:Factory/.lua-language-server.new.1548/lua-language-server.changes 2022-06-30 13:18:34.069542627 +0200 @@ -1,0 +2,98 @@ +Wed Jun 29 21:05:12 UTC 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/ + +------------------------------------------------------------------- Old: ---- 3.2.4.tar.gz lua-language-server-3.2.4-submodules.zip New: ---- 3.4.0.tar.gz lua-language-server-3.4.0-submodules.zip ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lua-language-server.spec ++++++ --- /var/tmp/diff_new_pack.H9mmC4/_old 2022-06-30 13:18:35.517543713 +0200 +++ /var/tmp/diff_new_pack.H9mmC4/_new 2022-06-30 13:18:35.525543720 +0200 @@ -18,7 +18,7 @@ Name: lua-language-server -Version: 3.2.4 +Version: 3.4.0 Release: 0 Summary: Lua Language Server coded by Lua License: MIT ++++++ 3.2.4.tar.gz -> 3.4.0.tar.gz ++++++ ++++ 138812 lines of diff (skipped)
participants (1)
-
Source-Sync