Lua 编程助手是一款能够为Lua开发人员提供智能帮助的基于VSCODE的插件
Lua coder assistant is an vscode extension attempt to provide language intelligence for coders coding in lua language.
本插件可在微软VSCODE插件商店中搜索LuaCoderAssist
进行安装
Search LuaCoderAssist
in extension market of vscode and install.
- 文件内符号列表(document symbols)
- 符号定义跳转(goto definition)
- 符号定义预览(definition peak)
- 代码补全(code complete)
- 函数特征帮助(signatrue help)
- 静态检查(diagnostics)
- 符号重命名(rename), limitation: can only apply to local defined variable
- 代码格式化(code format), including format whole file and format select text, format on typing is not supported now.
- 返回表模式(symbol from return table)
- 插入函数头(insert ldoc)
- 代码度量(code metrics)
- extract variable
- extract function
- symbol document support
- luaparse: https://github.com/oxyc/luaparse
- luacheck: https://github.com/mpeterv/luacheck
- lua-fmt: https://github.com/trixnz/lua-fmt
- Not support module alias, like:
--in a.lua
require('modu')
local x = modu
x.funcA() -- here, symbol `funcA` cannot be code complete and cannot goto definition...
- fix issue #17.
- add intellisense support for
self
using in function of nested table, ralate to issue #15.
- fixed bug #16
- add: resolve
self
key word to provide precise complete list, relate to issue #13
- fix issue #12: fallback to vscode's default code-complete list when no defined symbol were found.
- fix issue #9: add
--max-line-length
to luacheck using theformat.lineWidth
configuration.
- fix: fixed bug in issue #7.
- fix: update the description of
LuaCoderAssist.search.externalPaths
configuration. - add: add chinese description in README.md
- add: code metric codelens
- fix: symbols in new create file and remove symbols of deleted file.
- remove: Extension Settings section in README.md
- fix errors when open a file without
.lua
extension, see issue #3.
- fix errors when open a file which has syntax error.
- add
keepAfterClosed
option for luacheck diagnostics.
- fix issue #3
- add ldoc command to insert document for function.
- add ldoc context menu 'Insert LDoc'.
- fix bugs when module/file return with nonthing
- add ldoc snippets
- fix issue #2
- update README.md
- add VER 1.2.0 Release Notes
- add format support
- add return table syntax support
- add support for rename local defined variables
- add support for return symbol from a file, for example:
---- in a.lua
local x = {}
function x.new()
end
return x
---- in b.lua
local xx = require('a')
xx.new() --- now support all the supported features.
Initial release.