Skip to content

Commit c0924b1

Browse files
committed
3.9.0
1 parent 49908b9 commit c0924b1

File tree

4 files changed

+34
-3
lines changed

4 files changed

+34
-3
lines changed

changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# changelog
22

3+
## 3.9.0
4+
`2024-5-11`
5+
* `NEW` goto implementation
6+
* `NEW` narrow the function prototype based on the parameter type
7+
```lua
8+
---@overload fun(a: boolean): A
9+
---@overload fun(a: number): B
10+
local function f(...) end
11+
12+
local r1 = f(true) --> r1 is `A`
13+
local r2 = f(10) --> r2 is `B`
14+
```
15+
316
## 3.8.3
417
`2024-4-23`
518
* `FIX` server may crash when the workspace is using a non-English path.

package.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"description": "",
1111
"restrictedConfigurations": [
1212
"Lua.runtime.plugin",
13+
"Lua.misc.executablePath",
1314
"Lua.misc.parameters"
1415
],
1516
"supported": "limited"
@@ -37,6 +38,14 @@
3738
{
3839
"command": "lua.reloadFFIMeta",
3940
"title": "%command.reloadFFIMeta%"
41+
},
42+
{
43+
"command": "lua.startServer",
44+
"title": "%command.startServer%"
45+
},
46+
{
47+
"command": "lua.stopServer",
48+
"title": "%command.stopServer%"
4049
}
4150
],
4251
"configuration": {
@@ -311,6 +320,15 @@
311320
"scope": "resource",
312321
"type": "array"
313322
},
323+
"Lua.diagnostics.globalsRegex": {
324+
"default": [],
325+
"items": {
326+
"type": "string"
327+
},
328+
"markdownDescription": "%config.diagnostics.globalsRegex%",
329+
"scope": "resource",
330+
"type": "array"
331+
},
314332
"Lua.diagnostics.groupFileStatus": {
315333
"additionalProperties": false,
316334
"markdownDescription": "%config.diagnostics.groupFileStatus%",
@@ -3350,5 +3368,5 @@
33503368
"sponsor": {
33513369
"url": "https://github.com/LuaLS/lua-language-server/issues/484"
33523370
},
3353-
"version": "3.8.3"
3371+
"version": "3.9.0"
33543372
}

package/build.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local json = require 'json-beautify'
22

3-
local VERSION = "3.8.3"
3+
local VERSION = "3.9.0"
44

55
local package = require 'package.package'
66
local fsu = require 'fs-utility'

0 commit comments

Comments
 (0)