11
0

- 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) }

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-language-server?expand=0&rev=21
This commit is contained in:
Matej Cepl 2022-06-29 21:21:37 +00:00 committed by Git OBS Bridge
parent 87c84fd14f
commit be449e9359
6 changed files with 105 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d644ac9b553d5c7666d99adb38bab6fb2b2fa4d44b0af7f75bef5bb7ca4d341
size 1229617

3
3.4.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7693bf37e18038b79eb74c8f5f35231844fb61557bc502efc42919b00fbf311
size 1954656

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cce786fb1f9332a545730cc164107c97046e993cf7ccb98f88519a4c05cfecc5
size 26456715

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d32a5c96169cd93b60a2d6dd079904f436eac2d5ba698d55a0f74d4c0c670f3e
size 27231592

View File

@ -1,3 +1,101 @@
-------------------------------------------------------------------
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/
-------------------------------------------------------------------
Sat May 28 06:07:09 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>

View File

@ -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