diff --git a/changelog.md b/changelog.md index 51c327d..bdea8e2 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,13 @@ ## Unreleased +## 3.13.5 +`2024-12-20` +* `NEW` Setting: `Lua.hint.awaitPropagate`: When enabled, --@async propagates to the caller. +* `CHG` Add server version information to `initialize` response #2996 +* `CHG` If the `---@field` of the same name has a type of `fun`, the `duplicate-doc-field` check will not be performed. +* `FIX` Incorrect infer for function array annotation on tables [#2367](https://github.com/LuaLS/lua-language-server/issues/2367) + ## 3.13.4 `2024-12-13` * `CHG` Can adjust the level of detail of Hover (VSCode) diff --git a/package.json b/package.json index e267008..37e5063 100644 --- a/package.json +++ b/package.json @@ -2570,6 +2570,12 @@ "scope": "resource", "type": "boolean" }, + "Lua.hint.awaitPropagate": { + "default": false, + "markdownDescription": "%config.hint.awaitPropagate%", + "scope": "resource", + "type": "boolean" + }, "Lua.hint.enable": { "default": false, "markdownDescription": "%config.hint.enable%", @@ -3433,5 +3439,5 @@ "sponsor": { "url": "https://github.com/LuaLS/lua-language-server/issues/484" }, - "version": "3.13.4" + "version": "3.13.5" } diff --git a/package.nls.ja-jp.json b/package.nls.ja-jp.json index 81eab73..957cbcb 100644 --- a/package.nls.ja-jp.json +++ b/package.nls.ja-jp.json @@ -148,6 +148,7 @@ "config.hint.arrayIndex.Disable": "Disable hints of array index.", "config.hint.arrayIndex.Enable": "Show hints in all tables.", "config.hint.await": "If the called function is marked `---@async`, prompt `await` at the call.", + "config.hint.awaitPropagate": "Enable the propagation of `await`. When a function calls a function marked `---@async`,it will be automatically marked as `---@async`.", "config.hint.enable": "Enable inlay hint.", "config.hint.paramName": "Show hints of parameter name at the function call.", "config.hint.paramName.All": "All types of parameters are shown.", diff --git a/package.nls.json b/package.nls.json index 81eab73..957cbcb 100644 --- a/package.nls.json +++ b/package.nls.json @@ -148,6 +148,7 @@ "config.hint.arrayIndex.Disable": "Disable hints of array index.", "config.hint.arrayIndex.Enable": "Show hints in all tables.", "config.hint.await": "If the called function is marked `---@async`, prompt `await` at the call.", + "config.hint.awaitPropagate": "Enable the propagation of `await`. When a function calls a function marked `---@async`,it will be automatically marked as `---@async`.", "config.hint.enable": "Enable inlay hint.", "config.hint.paramName": "Show hints of parameter name at the function call.", "config.hint.paramName.All": "All types of parameters are shown.", diff --git a/package.nls.pt-br.json b/package.nls.pt-br.json index e0bf9a5..90f23dd 100644 --- a/package.nls.pt-br.json +++ b/package.nls.pt-br.json @@ -148,6 +148,7 @@ "config.hint.arrayIndex.Disable": "Disable hints of array index.", "config.hint.arrayIndex.Enable": "Show hints in all tables.", "config.hint.await": "If the called function is marked `---@async`, prompt `await` at the call.", + "config.hint.awaitPropagate": "Enable the propagation of `await`. When a function calls a function marked `---@async`,it will be automatically marked as `---@async`.", "config.hint.enable": "Enable inlay hint.", "config.hint.paramName": "Show hints of parameter name at the function call.", "config.hint.paramName.All": "All types of parameters are shown.", diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index dfadaae..355f612 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -148,6 +148,7 @@ "config.hint.arrayIndex.Disable": "禁用数组索引提示。", "config.hint.arrayIndex.Enable": "所有的表中都提示数组索引。", "config.hint.await": "如果调用的函数被标记为了 `---@async` ,则在调用处提示 `await` 。", + "config.hint.awaitPropagate": "启用 `await` 的传播, 当一个函数调用了一个`---@async`标记的函数时,会自动标记为`---@async`。", "config.hint.enable": "启用内联提示。", "config.hint.paramName": "在函数调用处提示参数名。", "config.hint.paramName.All": "所有类型的参数均进行提示。", diff --git a/package.nls.zh-tw.json b/package.nls.zh-tw.json index 87a40f2..162b030 100644 --- a/package.nls.zh-tw.json +++ b/package.nls.zh-tw.json @@ -148,6 +148,7 @@ "config.hint.arrayIndex.Disable": "停用陣列索引提示。", "config.hint.arrayIndex.Enable": "所有的表中都提示陣列索引。", "config.hint.await": "如果呼叫的函數被標記為了 `---@async`,則在呼叫處提示 `await`。", + "config.hint.awaitPropagate": "啟用 `await` 的傳播,當一個函數呼叫了一個 `---@async` 標記的函數時,會自動標記為 `---@async`。", "config.hint.enable": "啟用內嵌提示。", "config.hint.paramName": "在函式呼叫處提示參數名。", "config.hint.paramName.All": "所有類型的參數均進行提示。", diff --git a/package/build.lua b/package/build.lua index b1e30e3..bed559f 100644 --- a/package/build.lua +++ b/package/build.lua @@ -1,6 +1,6 @@ local json = require 'json-beautify' -local VERSION = "3.13.4" +local VERSION = "3.13.5" local fsu = require 'fs-utility' local package = json.decode(fsu.loadFile(ROOT / 'package.json')) diff --git a/server b/server index 108ce76..cdb1b09 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit 108ce76c99bcb9990421edd4453a2ca8e282af95 +Subproject commit cdb1b094edf125dc537298cc408f8c751dcedf00 diff --git a/setting/schema-ja-jp.json b/setting/schema-ja-jp.json index 6ef7434..6cca0ce 100644 --- a/setting/schema-ja-jp.json +++ b/setting/schema-ja-jp.json @@ -2636,6 +2636,9 @@ "await": { "$ref": "#/properties/hint.await" }, + "awaitPropagate": { + "$ref": "#/properties/hint.awaitPropagate" + }, "enable": { "$ref": "#/properties/hint.enable" }, @@ -2675,6 +2678,12 @@ "scope": "resource", "type": "boolean" }, + "hint.awaitPropagate": { + "default": false, + "markdownDescription": "Enable the propagation of `await`. When a function calls a function marked `---@async`,it will be automatically marked as `---@async`.", + "scope": "resource", + "type": "boolean" + }, "hint.enable": { "default": false, "markdownDescription": "Enable inlay hint.", diff --git a/setting/schema-pt-br.json b/setting/schema-pt-br.json index a085313..d553695 100644 --- a/setting/schema-pt-br.json +++ b/setting/schema-pt-br.json @@ -2636,6 +2636,9 @@ "await": { "$ref": "#/properties/hint.await" }, + "awaitPropagate": { + "$ref": "#/properties/hint.awaitPropagate" + }, "enable": { "$ref": "#/properties/hint.enable" }, @@ -2675,6 +2678,12 @@ "scope": "resource", "type": "boolean" }, + "hint.awaitPropagate": { + "default": false, + "markdownDescription": "Enable the propagation of `await`. When a function calls a function marked `---@async`,it will be automatically marked as `---@async`.", + "scope": "resource", + "type": "boolean" + }, "hint.enable": { "default": false, "markdownDescription": "Enable inlay hint.", diff --git a/setting/schema-zh-cn.json b/setting/schema-zh-cn.json index 9d4f88c..e51dd9f 100644 --- a/setting/schema-zh-cn.json +++ b/setting/schema-zh-cn.json @@ -2636,6 +2636,9 @@ "await": { "$ref": "#/properties/hint.await" }, + "awaitPropagate": { + "$ref": "#/properties/hint.awaitPropagate" + }, "enable": { "$ref": "#/properties/hint.enable" }, @@ -2675,6 +2678,12 @@ "scope": "resource", "type": "boolean" }, + "hint.awaitPropagate": { + "default": false, + "markdownDescription": "启用 `await` 的传播, 当一个函数调用了一个`---@async`标记的函数时,会自动标记为`---@async`。", + "scope": "resource", + "type": "boolean" + }, "hint.enable": { "default": false, "markdownDescription": "启用内联提示。", diff --git a/setting/schema-zh-tw.json b/setting/schema-zh-tw.json index eccb52e..d4a885b 100644 --- a/setting/schema-zh-tw.json +++ b/setting/schema-zh-tw.json @@ -2636,6 +2636,9 @@ "await": { "$ref": "#/properties/hint.await" }, + "awaitPropagate": { + "$ref": "#/properties/hint.awaitPropagate" + }, "enable": { "$ref": "#/properties/hint.enable" }, @@ -2675,6 +2678,12 @@ "scope": "resource", "type": "boolean" }, + "hint.awaitPropagate": { + "default": false, + "markdownDescription": "啟用 `await` 的傳播,當一個函數呼叫了一個 `---@async` 標記的函數時,會自動標記為 `---@async`。", + "scope": "resource", + "type": "boolean" + }, "hint.enable": { "default": false, "markdownDescription": "啟用內嵌提示。", diff --git a/setting/schema.json b/setting/schema.json index 6ef7434..6cca0ce 100644 --- a/setting/schema.json +++ b/setting/schema.json @@ -2636,6 +2636,9 @@ "await": { "$ref": "#/properties/hint.await" }, + "awaitPropagate": { + "$ref": "#/properties/hint.awaitPropagate" + }, "enable": { "$ref": "#/properties/hint.enable" }, @@ -2675,6 +2678,12 @@ "scope": "resource", "type": "boolean" }, + "hint.awaitPropagate": { + "default": false, + "markdownDescription": "Enable the propagation of `await`. When a function calls a function marked `---@async`,it will be automatically marked as `---@async`.", + "scope": "resource", + "type": "boolean" + }, "hint.enable": { "default": false, "markdownDescription": "Enable inlay hint.",