diff --git a/README.md b/README.md index cbb061236d63af58f55ef3ff50f6630153b80e9d..8241f7ed7c5752eca4928cc5922838ea2b399dbb 100644 --- a/README.md +++ b/README.md @@ -1,80 +1,107 @@ # lua-language-server - +[](https://marketplace.visualstudio.com/items?itemName=sumneko.lua)   +[](https://github.com/sumneko/lua-language-server/issues "Average time to resolve an issue") -## Install In VSCode -https://marketplace.visualstudio.com/items?itemName=sumneko.lua - +***Lua development just got a whole lot better*** 🧠 -## Change Log -https://github.com/sumneko/lua-language-server/blob/master/changelog.md +The Lua language server provides various language features for Lua to make development easier and faster. With around half a million installs on Visual Studio Code, it is the most popular extension for Lua language support. -## Wiki -https://github.com/sumneko/lua-language-server/wiki +## Features -## Feature +- 📄 Over 20 supported [annotations](https://github.com/sumneko/lua-language-server/wiki/Annotations) for documenting your code +- ↪ Go to definition +- 🦺 Dynamic [type checking](https://github.com/sumneko/lua-language-server/wiki/Type-Checking) +- 🔍 Find references +- ⚠️ [Diagnostics/Warnings](https://github.com/sumneko/lua-language-server/wiki/Diagnostics) +- 🕵️ [Syntax checking](https://github.com/sumneko/lua-language-server/wiki/Syntax-Errors) +- 📝 Element renaming +- 🗨️ Hover to view details on variables, functions, and more +- 🖊️ Autocompletion +- 📚 Support for [libraries](https://github.com/sumneko/lua-language-server/wiki/Libraries) +- 💅 [Code formatting](https://github.com/sumneko/lua-language-server/wiki/Formatter) +- 💬 [Spell checking](https://github.com/sumneko/lua-language-server/wiki/Formatter) +- 🛠️ Custom [plugins](https://github.com/sumneko/lua-language-server/wiki/Plugins) -- [x] Goto Definition -- [x] Find All References -- [x] Hover -- [x] Diagnostics -- [x] Rename -- [x] Auto Completion -- [x] IntelliSense -- [x] Signature Help -- [x] Document Symbols -- [x] Workspace Symbols -- [x] Syntax Check -- [x] Highlight -- [x] Code Action -- [x] EmmyLua Annotation -- [x] Multi Workspace -- [x] Semantic Tokens -- [x] Formatter +## Install -## Version +The language server can easily be installed for use in VS Code, but it can also be used by other clients using the command line. -- [x] Lua 5.1 -- [x] Lua 5.2 -- [x] Lua 5.3 -- [x] Lua 5.4 -- [x] LuaJIT +### Visual Studio Code +[](https://marketplace.visualstudio.com/items?itemName=sumneko.lua) -If you find any mistakes, please [tell me][issues] or use [Pull Requests][@meta] to fix them directly. +The language server and Visual Studio Code client can be installed from [the VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=sumneko.lua). -如果你发现了任何错误,请[告诉我][issues]或使用[Pull Requests][@meta]来直接修复。 + + +### Command Line +[](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#command-line) + +Check the [wiki for a guide](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#command-line) to install the language server for use on the command line. This allows the language server to be used for NeoVim and other clients that follow the language server protocol. + +## Supported Lua Versions +| Version | Supported | +| :-----: | :------------: | +| Lua 5.1 | ![][checkmark] | +| Lua 5.2 | ![][checkmark] | +| Lua 5.3 | ![][checkmark] | +| Lua 5.4 | ![][checkmark] | +| LuaJIT | ![][checkmark] | + +## Links +- [Changelog](https://github.com/sumneko/lua-language-server/blob/master/changelog.md) +- [Wiki](https://github.com/sumneko/lua-language-server/wiki) +- [FAQ](https://github.com/sumneko/lua-language-server/wiki/FAQ) +- [Report an issue][issues] +- [Suggest a feature][issues] +- [Discuss](https://github.com/sumneko/lua-language-server/discussions) + +> If you find any mistakes, please [report it][issues] or open a [pull request][pulls] if you have a fix of your own ❤️ +> +> 如果你发现了任何错误,请[告诉我][issues]或使用[Pull Requests][pulls]来直接修复。❤️ [issues]: https://github.com/sumneko/lua-language-server/issues -[@meta]: https://github.com/sumneko/lua-language-server/tree/master/meta/template +[pulls]: https://github.com/sumneko/lua-language-server/pulls + +## Available Languages -## Locale +- `en-us` 🇺🇸 +- `zh-cn` 🇨🇳 +- `zh-tw` 🇹🇼 +- `pt-br` 🇧🇷 -- [x] en-us -- [x] zh-cn -- [x] zh-tw (thanks [AlexCai2019](https://github.com/AlexCai2019)) -- [x] pt-br (thanks [Jeferson Ferreira](https://github.com/jefersonf)) -Please [help me][en-US] improve the quality of `en-US`. +> ℹ Note: All translations are provided and collaborated on by the community. If you find an inappropriate or harmful translation, [please report it immediately](https://github.com/sumneko/lua-language-server/issues). + +Are you able to [provide a translation](https://github.com/sumneko/lua-language-server/wiki/Translations)? It would be greatly appreciated! + +Thank you to [all contributors of translations](https://github.com/sumneko/lua-language-server/commits/master/locale)! [en-US]: https://github.com/sumneko/lua-language-server/tree/master/locale/en-us -## Build -The extensions in the VSCode market already come with pre-compiled binary files, usually you don't need to compile them. +## Configuration +Configuration of the server can be done in a number of ways, which are explained more in-depth in the [wiki](https://github.com/sumneko/lua-language-server/wiki/Configuration-File). + +### Visual Studio Code +You can use the [settings editor](https://code.visualstudio.com/docs/getstarted/settings#_settings-editor) or edit the [raw JSON file](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson). -Other clients can first try to download and use [pre-compiled binary files](https://github.com/sumneko/lua-language-server/wiki/PreCompiled-Binaries). +### Other +See the [configuration file wiki page](https://github.com/sumneko/lua-language-server/wiki/Configuration-File). -If you need to compile by yourself, please refer to [here](https://github.com/sumneko/lua-language-server/wiki/Build-and-Run) -## Setting +## Privacy +This language server has **opt-in** telemetry that collects usage data and sends it to the development team to help improve the extension. Read our [privacy policy](https://github.com/sumneko/lua-language-server/wiki/Home#privacy) to learn more. -* In VSCode: Just use the setting of VSCode. -* Standalone: See https://github.com/sumneko/lua-language-server/wiki/Setting + +## Contributors + ## Credit +Software that the language server (or the development of it) uses: * [bee.lua](https://github.com/actboy168/bee.lua) * [luamake](https://github.com/actboy168/luamake) @@ -91,27 +118,5 @@ If you need to compile by yourself, please refer to [here](https://github.com/su * [EmmyLuaCodeStyle](https://github.com/CppCXY/EmmyLuaCodeStyle) * [inspect.lua](https://github.com/kikito/inspect.lua) -## Acknowledgement - -* [actboy168](https://github.com/actboy168) -* [Dmitry Sannikov](https://github.com/dasannikov) -* [Jayden Charbonneau](https://github.com/Reshiram110) -* [Stjepan Bakrac](https://github.com/z16) -* [Peter Young](https://github.com/young40) -* [Li Xiaobin](https://github.com/Xiaobin0860) -* [Fedora7](https://github.com/Fedora7) -* [Allen Shaw](https://github.com/shuxiao9058) -* [Bartel](https://github.com/Letrab) -* [Ruin0x11](https://github.com/Ruin0x11) -* [uhziel](https://github.com/uhziel) -* [火凌之](https://github.com/PhoenixZeng) -* [CppCXY](https://github.com/CppCXY) -* [Ketho](https://github.com/Ketho) -* [Folke Lemaitre](https://github.com/folke) -* [Vikas Raj](https://github.com/numToStr) -* [kevinhwang91](https://github.com/kevinhwang91) -* [Cassolette](https://github.com/Cassolette) - -## Telemetry - -This language server collects usage data and sends it to the development team to help improve the extension. Read our [privacy policy](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy) to learn more and how to disable any telemetry. + +[checkmark]: https://gist.githubusercontent.com/carsakiller/362482775731de88cdafeeca9f6a392e/raw/cd3976e92a85aafe1f33e3f9fe3d0e0bd451902c/checkmark.svg diff --git a/changelog.md b/changelog.md index 502b6fbc8963d52d2fb65c76c747eb2489a7825b..18d8569a6f189e29eae97d1b89f56d94a2d57eb9 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # changelog +## 3.5.2 +`2022-8-1` +* `FIX` [#1395](https://github.com/sumneko/lua-language-server/issues/1395) +* `FIX` [#1403](https://github.com/sumneko/lua-language-server/issues/1403) +* `FIX` [#1405](https://github.com/sumneko/lua-language-server/issues/1405) +* `FIX` [#1406](https://github.com/sumneko/lua-language-server/issues/1406) +* `FIX` [#1418](https://github.com/sumneko/lua-language-server/issues/1418) + ## 3.5.1 `2022-7-26` * `NEW` supports [color](https://github.com/sumneko/lua-language-server/pull/1379) diff --git a/package.json b/package.json index 93ab2fccac109887193430ad3e713cd3ffa060ba..f7a4a2d842299b6501783103d0556fa045b6d9ba 100644 --- a/package.json +++ b/package.json @@ -2905,5 +2905,5 @@ "sponsor": { "url": "https://github.com/sumneko/lua-language-server/issues/484" }, - "version": "3.5.1" + "version": "3.5.2" } diff --git a/package.nls.json b/package.nls.json index 74c3684e92daa25e7898e189d0c047bc0e0b6d2f..d0df3491dbd891d424da7f1cc4d42da4ac533afa 100644 --- a/package.nls.json +++ b/package.nls.json @@ -55,7 +55,7 @@ "config.diagnostics.lowercase-global": "Enable lowercase global variable definition diagnostics.", "config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator", "config.diagnostics.neededFileStatus": "* Opened: only diagnose opened files\n* Any: diagnose all files\n* None: disable this diagnostic\n\nEnd with `!` means override the group setting `diagnostics.groupFileStatus`.\n", - "config.diagnostics.newfield-call": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作", + "config.diagnostics.newfield-call": "Enable newfield call diagnostics. It is raised when the parenthesis of a function call appear on the following line when defining a field in a table.", "config.diagnostics.newline-call": "Enable newline call diagnostics. Is's raised when a line starting with `(` is encountered, which is syntactically parsed as a function call on the previous line.", "config.diagnostics.redefined": "* redefined-local", "config.diagnostics.redefined-local": "Enable redefined local variable diagnostics.", @@ -112,7 +112,7 @@ "config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.", "config.runtime.path": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n", "config.runtime.pathStrict": "When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.", - "config.runtime.plugin": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.", + "config.runtime.plugin": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugins) to learn more.", "config.runtime.pluginArgs": "Additional arguments for the plugin.", "config.runtime.special": "The custom global variables are regarded as some special built-in variables, and the language server will provide special support\nThe following example shows that 'include' is treated as' require '.\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n", "config.runtime.unicodeName": "Allows Unicode characters in name.", @@ -123,7 +123,7 @@ "config.semantic.variable": "Semantic coloring of variables/fields/parameters.", "config.signatureHelp.enable": "Enable signature help.", "config.spell.dict": "Custom words for spell checking.", - "config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n", + "config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Home#privacy).\n", "config.type.castNumberToInteger": "Allowed to assign the `number` type to the `integer` type.", "config.type.weakNilCheck": "When checking the type of union type, ignore the `nil` in it.\n\nWhen this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.\n", "config.type.weakUnionCheck": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n", diff --git a/package.nls.pt-br.json b/package.nls.pt-br.json index 1e64bd9034149b1c5e07c2811577188f5fa83524..3551d62138d7692ba7ec223a97b224f26f77e43e 100644 --- a/package.nls.pt-br.json +++ b/package.nls.pt-br.json @@ -112,7 +112,7 @@ "config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.", "config.runtime.path": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n", "config.runtime.pathStrict": "When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.", - "config.runtime.plugin": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.", + "config.runtime.plugin": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugins) to learn more.", "config.runtime.pluginArgs": "Additional arguments for the plugin.", "config.runtime.special": "The custom global variables are regarded as some special built-in variables, and the language server will provide special support\nThe following example shows that 'include' is treated as' require '.\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n", "config.runtime.unicodeName": "Allows Unicode characters in name.", @@ -123,7 +123,7 @@ "config.semantic.variable": "Semantic coloring of variables/fields/parameters.", "config.signatureHelp.enable": "Enable signature help.", "config.spell.dict": "Custom words for spell checking.", - "config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n", + "config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Home#privacy).\n", "config.type.castNumberToInteger": "Allowed to assign the `number` type to the `integer` type.", "config.type.weakNilCheck": "When checking the type of union type, ignore the `nil` in it.\n\nWhen this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.\n", "config.type.weakUnionCheck": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n", diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index 3ed7a620937d475090fb4e52b6ec1dff0f46677a..2142ae3f8f99e52f8c5c09a173155ed411534c78 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -105,14 +105,14 @@ "config.hover.viewStringMax": "悬停提示查看字符串内容时的最大长度。", "config.intelliSense.fastGlobal": "在对全局变量进行补全,及查看 `_G` 的悬浮提示时进行优化。这会略微降低类型推测的准确度,但是对于大量使用全局变量的项目会有大幅的性能提升。", "config.intelliSense.searchDepth": "设置智能感知的搜索深度。增大该值可以增加准确度,但会降低性能。不同的项目对该设置的容忍度差异较大,请自己调整为合适的值。", - "config.misc.parameters": "VSCode中启动语言服务时的[命令行参数](https://github.com/sumneko/lua-language-server/wiki/Command-line)。", + "config.misc.parameters": "VSCode中启动语言服务时的[命令行参数](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#arguments)。", "config.runtime.builtin": "调整内置库的启用状态,你可以根据实际运行环境禁用掉不存在的库(或重新定义)。\n\n* `default`: 表示库会根据运行版本启用或禁用\n* `enable`: 总是启用\n* `disable`: 总是禁用\n", "config.runtime.fileEncoding": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。", "config.runtime.meta": "meta文件的目录名称格式。", "config.runtime.nonstandardSymbol": "支持非标准的符号。请务必确认你的运行环境支持这些符号。", "config.runtime.path": "当使用 `require` 时,如何根据输入的名字来查找文件。\n此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索 `{workspace}/myfile/init.lua`。\n当 `runtime.pathStrict` 设置为 `false` 时,还会尝试搜索 `${workspace}/**/myfile/init.lua`。\n如果你想要加载工作区以外的文件,你需要先设置 `Lua.workspace.library`。\n", "config.runtime.pathStrict": "启用后 `runtime.path` 将只搜索第一层目录,见 `runtime.path` 的说明。", - "config.runtime.plugin": "插件路径,请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/Plugin)了解用法。", + "config.runtime.plugin": "插件路径,请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/Plugins)了解用法。", "config.runtime.pluginArgs": "Additional arguments for the plugin.", "config.runtime.special": "将自定义全局变量视为一些特殊的内置变量,语言服务将提供特殊的支持。\n下面这个例子表示将 `include` 视为 `require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n", "config.runtime.unicodeName": "允许在名字中使用 Unicode 字符。", @@ -123,7 +123,7 @@ "config.semantic.variable": "对变量/字段/参数进行语义着色。", "config.signatureHelp.enable": "启用参数提示。", "config.spell.dict": "拼写检查的自定义单词。", - "config.telemetry.enable": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。\n", + "config.telemetry.enable": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/Home#privacy)阅读我们的隐私声明。\n", "config.type.castNumberToInteger": "允许将 `number` 类型赋给 `integer` 类型。", "config.type.weakNilCheck": "对联合类型进行类型检查时,忽略其中的 `nil`。\n\n此设置为 `false` 时,`numer|nil` 类型无法赋给 `number` 类型;为 `true` 是则可以。\n", "config.type.weakUnionCheck": "联合类型中只要有一个子类型满足条件,则联合类型也满足条件。\n\n此设置为 `false` 时,`number|boolean` 类型无法赋给 `number` 类型;为 `true` 时则可以。\n", diff --git a/package.nls.zh-tw.json b/package.nls.zh-tw.json index 488c11534129423ae9dd1b3f7aa97d62b6d0aa76..33967586f16c45270024baa5122dae51fdb1ee3a 100644 --- a/package.nls.zh-tw.json +++ b/package.nls.zh-tw.json @@ -105,14 +105,14 @@ "config.hover.viewStringMax": "懸浮提示檢視字串內容時的最大長度。", "config.intelliSense.fastGlobal": "在對全域變數進行補全,及檢視 `_G` 的懸浮提示時進行最佳化。這會略微降低類型推測的準確度,但是對於大量使用全域變數的專案會有大幅的效能提升。", "config.intelliSense.searchDepth": "設定智慧感知的搜尋深度。增大該值可以增加準確度,但會降低效能。不同的工作區對該設定的容忍度差異較大,請自己調整為合適的值。", - "config.misc.parameters": "VSCode中啟動語言伺服時的[命令列參數](https://github.com/sumneko/lua-language-server/wiki/Command-line)。", + "config.misc.parameters": "VSCode中啟動語言伺服時的[命令列參數](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#arguments)。", "config.runtime.builtin": "調整內建庫的啟用狀態,你可以根據實際執行環境停用(或重新定義)不存在的庫。\n\n* `default`: 表示庫會根據執行版本啟用或停用\n* `enable`: 總是啟用\n* `disable`: 總是停用\n", "config.runtime.fileEncoding": "檔案編碼,選項 `ansi` 只在 `Windows` 平台下有效。", "config.runtime.meta": "meta檔案的目錄名稱格式", "config.runtime.nonstandardSymbol": "支援非標準的符號。請務必確認你的執行環境支援這些符號。", "config.runtime.path": "當使用 `require` 時,如何根據輸入的名字來尋找檔案。\n此選項設定為 `?/init.lua` 意味著當你輸入 `require 'myfile'` 時,會從已載入的檔案中搜尋 `{workspace}/myfile/init.lua`。\n當 `runtime.pathStrict` 設定為 `false` 時,還會嘗試搜尋 `${workspace}/**/myfile/init.lua`。\n如果你想要載入工作區以外的檔案,你需要先設定 `Lua.workspace.library`。\n", "config.runtime.pathStrict": "啟用後 `runtime.path` 將只搜尋第一層目錄,見 `runtime.path` 的説明。", - "config.runtime.plugin": "延伸模組路徑,請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/Plugin)瞭解用法。", + "config.runtime.plugin": "延伸模組路徑,請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/Plugins)瞭解用法。", "config.runtime.pluginArgs": "Additional arguments for the plugin.", "config.runtime.special": "將自訂全域變數視為一些特殊的內建變數,語言伺服將提供特殊的支援。\n下面這個例子表示將 `include` 視為 `require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n", "config.runtime.unicodeName": "允許在名字中使用 Unicode 字元。", @@ -123,7 +123,7 @@ "config.semantic.variable": "對變數/欄位/參數進行語義著色。", "config.signatureHelp.enable": "啟用參數提示。", "config.spell.dict": "拼寫檢查的自訂單詞。", - "config.telemetry.enable": "啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%B1%E7%A7%81%E8%81%B2%E6%98%8E)閱讀我們的隱私聲明。\n", + "config.telemetry.enable": "啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/sumneko/lua-language-server/wiki/Home#privacy)閱讀我們的隱私聲明。\n", "config.type.castNumberToInteger": "允許將 `number` 類型賦值給 `integer` 類型。", "config.type.weakNilCheck": "When checking the type of union type, ignore the `nil` in it.\n\nWhen this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.\n", "config.type.weakUnionCheck": "同位類型中只要有一個子類型滿足條件,則同位類型也滿足條件。\n\n此設定為 `false` 時,`number|boolean` 類型無法賦給 `number` 類型;為 `true` 時則可以。\n", diff --git a/package/build.lua b/package/build.lua index 0fa088c4e7894e111daa69fdcd9cf950914290e8..77eeea55f248ca325ffe7d33f159f9077e65d7ab 100644 --- a/package/build.lua +++ b/package/build.lua @@ -1,6 +1,6 @@ local json = require 'json-beautify' -local VERSION = "3.5.1" +local VERSION = "3.5.2" local package = require 'package.package' local fsu = require 'fs-utility' diff --git a/server b/server index 0c4f94b7b4cc3f8776f8136e777634973bbc2ede..0f0c1c517f9ba14dcb6f947166b980a93ccb69d3 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit 0c4f94b7b4cc3f8776f8136e777634973bbc2ede +Subproject commit 0f0c1c517f9ba14dcb6f947166b980a93ccb69d3 diff --git a/setting/schema-pt-br.json b/setting/schema-pt-br.json index a038dcb0d247f5ccc3e030442abe11899f84b061..9e6768207aa01eee0e11319b8e25eea4a8f888cf 100644 --- a/setting/schema-pt-br.json +++ b/setting/schema-pt-br.json @@ -2677,7 +2677,7 @@ }, "runtime.plugin": { "default": "", - "markdownDescription": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.", + "markdownDescription": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugins) to learn more.", "scope": "resource", "type": "string" }, @@ -2822,7 +2822,7 @@ }, "telemetry.enable": { "default": null, - "markdownDescription": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n", + "markdownDescription": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Home#privacy).\n", "scope": "resource", "tags": [ "telemetry" diff --git a/setting/schema-zh-cn.json b/setting/schema-zh-cn.json index 980b9495c073365a0e102d335b0e8c5f4e2e6b34..85eda2bb849b94355c3b97a53cb85e60201dc6b8 100644 --- a/setting/schema-zh-cn.json +++ b/setting/schema-zh-cn.json @@ -2383,7 +2383,7 @@ "items": { "type": "string" }, - "markdownDescription": "VSCode中启动语言服务时的[命令行参数](https://github.com/sumneko/lua-language-server/wiki/Command-line)。", + "markdownDescription": "VSCode中启动语言服务时的[命令行参数](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#arguments)。", "scope": "resource", "type": "array" }, @@ -2677,7 +2677,7 @@ }, "runtime.plugin": { "default": "", - "markdownDescription": "插件路径,请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/Plugin)了解用法。", + "markdownDescription": "插件路径,请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/Plugins)了解用法。", "scope": "resource", "type": "string" }, @@ -2822,7 +2822,7 @@ }, "telemetry.enable": { "default": null, - "markdownDescription": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。\n", + "markdownDescription": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/Home#privacy)阅读我们的隐私声明。\n", "scope": "resource", "tags": [ "telemetry" diff --git a/setting/schema-zh-tw.json b/setting/schema-zh-tw.json index 2366bf9c499e657e036115d5dff4144be798b4d7..e99dcb6918404831fcf63a6fc496daa7cd51e08e 100644 --- a/setting/schema-zh-tw.json +++ b/setting/schema-zh-tw.json @@ -2383,7 +2383,7 @@ "items": { "type": "string" }, - "markdownDescription": "VSCode中啟動語言伺服時的[命令列參數](https://github.com/sumneko/lua-language-server/wiki/Command-line)。", + "markdownDescription": "VSCode中啟動語言伺服時的[命令列參數](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#arguments)。", "scope": "resource", "type": "array" }, @@ -2677,7 +2677,7 @@ }, "runtime.plugin": { "default": "", - "markdownDescription": "延伸模組路徑,請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/Plugin)瞭解用法。", + "markdownDescription": "延伸模組路徑,請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/Plugins)瞭解用法。", "scope": "resource", "type": "string" }, @@ -2822,7 +2822,7 @@ }, "telemetry.enable": { "default": null, - "markdownDescription": "啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%B1%E7%A7%81%E8%81%B2%E6%98%8E)閱讀我們的隱私聲明。\n", + "markdownDescription": "啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/sumneko/lua-language-server/wiki/Home#privacy)閱讀我們的隱私聲明。\n", "scope": "resource", "tags": [ "telemetry" diff --git a/setting/schema.json b/setting/schema.json index ba85da3450fc50c135567fdc459c9045a15d02ad..5b816289f81ebcd785081e960cbaf41bcd3f02a2 100644 --- a/setting/schema.json +++ b/setting/schema.json @@ -970,7 +970,7 @@ }, "newfield-call": { "default": "Any", - "description": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作", + "description": "Enable newfield call diagnostics. It is raised when the parenthesis of a function call appear on the following line when defining a field in a table.", "enum": [ "Any", "Opened", @@ -1733,7 +1733,7 @@ }, "newfield-call": { "default": "Warning", - "description": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作", + "description": "Enable newfield call diagnostics. It is raised when the parenthesis of a function call appear on the following line when defining a field in a table.", "enum": [ "Error", "Warning", @@ -2677,7 +2677,7 @@ }, "runtime.plugin": { "default": "", - "markdownDescription": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.", + "markdownDescription": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugins) to learn more.", "scope": "resource", "type": "string" }, @@ -2822,7 +2822,7 @@ }, "telemetry.enable": { "default": null, - "markdownDescription": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n", + "markdownDescription": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Home#privacy).\n", "scope": "resource", "tags": [ "telemetry"