Skip to content

Commit bfafcef

Browse files
authored
Merge branch 'master' into master
2 parents 2566896 + b773037 commit bfafcef

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
- { os: ubuntu-22.04, target: linux, platform: linux-x64, container: 'alpine:latest', libc: musl }
2828
- { os: ubuntu-20.04, target: linux, platform: linux-x64 }
2929
- { os: ubuntu-20.04, target: linux, platform: linux-arm64 }
30-
- { os: macos-11, target: darwin, platform: darwin-x64 }
31-
- { os: macos-11, target: darwin, platform: darwin-arm64 }
30+
- { os: macos-latest, target: darwin, platform: darwin-x64 }
31+
- { os: macos-latest, target: darwin, platform: darwin-arm64 }
3232
- { os: windows-latest, target: windows, platform: win32-ia32 }
3333
- { os: windows-latest, target: windows, platform: win32-x64 }
3434
runs-on: ${{ matrix.os }}

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* `FIX` Respect `completion.showParams` config for local function completion
99
* `CHG` Improve performance of multithreaded `--check` and `undefined-field` diagnostic
1010
* `FIX` Bad triggering of the `inject-field` diagnostic, when the fields are declared at the creation of the object [#2746](https://github.com/LuaLS/lua-language-server/issues/2746)
11+
* `CHG` Change spacing of parameter inlay hints to match other LSPs, like `rust-analyzer`
1112

1213
## 3.9.3
1314
`2024-6-11`

meta/template/string.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ function string.gmatch(s, pattern, init) end
7373
---@param n? integer
7474
---@return string
7575
---@return integer count
76-
---@nodiscard
7776
function string.gsub(s, pattern, repl, n) end
7877

7978
---#DES 'string.len'

script/core/hint.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ local function typeHint(uri, results, start, finish)
5959
end
6060
mark[src] = true
6161
results[#results+1] = {
62-
text = ':' .. view,
62+
text = ': ' .. view,
6363
offset = src.finish,
6464
kind = define.InlayHintKind.Type,
6565
where = 'right',

script/provider/provider.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,8 +1426,8 @@ m.register 'textDocument/inlayHint' {
14261426
},
14271427
position = converter.packPosition(state, res.offset),
14281428
kind = res.kind,
1429-
paddingLeft = res.kind == 1,
1430-
paddingRight = res.kind == 2,
1429+
paddingLeft = false,
1430+
paddingRight = res.kind == define.InlayHintKind.Parameter,
14311431
}
14321432
end
14331433
return hintResults

0 commit comments

Comments
 (0)