Releases: fqix/lua-devtools
Release list
Lua DevTools v0.5.0
- Add
luaDevtools.probeNativeModules(off by default): load C modules in the selected interpreter to complete their members afterrequire, using project packages, the interpreter'spackage.cpathand launchpackageCPath. - Find references and rename across the workspace for globals and statically resolved table members (module exports,
__indexchains, aliases), with per-file edits and conflict checks; bindings are tracked per site, and rename refuses members whose table is reassigned undecidably or declared in installed packages. Go to definition reaches data fields through their first declaration. - Resolve definitions and member completions through the
packagePathentries of Lua launch configurations, with folder-level variables substituted; editinglaunch.jsonrefreshes the language environment.
Full changelog: v0.4.0...v0.5.0
Lua DevTools v0.4.0
Lua DevTools 0.4.0
- Add StyLua formatting with project configuration and ignore rules.
- Browse standard libraries and third-party modules in the environment tree; install specific package versions, upgrade and uninstall project packages.
- Resolve package source definitions and completions using the selected interpreter; add lexical references, safe local renaming and signature help.
- View cyclic tables, mixed keys, binary strings and non-finite numbers in read-only tagged snapshots.
- Add cooperative Lua/embedded-host attach, interactive stdin and EOF, suspended-coroutine resume and opt-in caught-error inspection.
- Use the project icon in the sidebar and interpreter status bar; cache module roots per request to reduce filesystem work.
Interactive launch and attach require LuaSocket. Attach requires a cooperating host and leaves it running on disconnect. Native C functions still cannot be stepped into with the Lua debugger.
提供 macOS、Linux、Windows 的 x64/ARM64 安装包。新增环境包管理、语言服务、复杂 table 查看和调试扩展;配置方法见 README 及调试指南。
Lua DevTools v0.3.0
新增功能
- Lua 环境树:在侧边栏发现解释器、查看路径、切换环境、刷新扫描、手动指定路径或恢复自动选择。
- 项目独立装包:点击解释器旁的包图标,通过 LuaRocks 安装依赖,按项目和解释器隔离存放;新的运行和调试会话自动加载。
- LuaRocks 配置:支持
luaDevtools.luarocksPath,安装进度和错误显示在任务终端。
文档
- 精简中英文 README,新增独立的架构、开发、测试与发布指南。
装包需要预先安装 LuaRocks;原生包可能需要编译器和对应 Lua 开发头文件。建议将项目的 .lua-devtools/ 加入 .gitignore。
Lua DevTools v0.2.0
新增功能
- 自动发现并选择 Lua 解释器,状态栏显示当前环境,运行、调试、语法检查和标准库补全跟随所选解释器。
- 支持 Lua 5.1–5.5 和 LuaJIT 2.1。
- 支持 Lua 5.5 新声明的跳转和大纲,包括词法
global声明、属性和具名可变参数。 - 支持本地模块导出函数的跳转,覆盖别名、方法、目录模块和未保存源码。
- 调试暂停时可查看 table 的只读 JSON 快照;保留数值精度,函数等值显示类型标记,不提供独立导出命令。
- 新增协程、sleep、模块和运行中控制示例。
改进与修复
- 跨 Lua 版本的原生辅助模块支持运行中暂停和更新断点;不可用时回退到纯 Lua 调试。阻塞中的 C 调用仍需等待返回 Lua。
- 修复 Windows 文本换行处理、平台安装包运行文件完整性检查,并支持使用已有 release 附件重试商店发布。
- 构建工具使用 Node.js 24 LTS。
发布流程将构建 macOS、Linux、Windows 的 x64/ARM64 安装包并发布至 VS Code Marketplace 和 Open VSX。
Lua DevTools v0.1.0
首个版本,提供 VS Code Lua 调试与语言服务。
- 支持 Lua 5.2–5.5,CI 覆盖 5.2.4、5.3.6、5.4.9、5.5.1。
- 支持断点、条件断点、单步、协程检查、变量查看和表达式求值。
- 提供语法诊断、跳转、大纲、标准库及静态表成员和模块导出补全。
- 支持 LuaUnit 和 Busted 单用例运行/调试 CodeLens。
- 提供中英文界面,以及 macOS、Linux、Windows 的 x64/ARM64 安装包。
已知限制:运行时不能主动暂停,断点修改在下一次暂停时生效;暂不支持 attach 或嵌入式 Lua。完整说明见 README。
六个平台构建及 Lua 5.2–5.5 兼容性测试均已通过,VSIX 安装包见下方附件。可在 VS Code 中选择“Extensions: Install from VSIX”安装。
商店发布状态:VS Code Marketplace 已发布成功。Open VSX 的五个平台已发布;darwin-x64 0.1.0 已被接收但尚未激活、不可见。更新令牌后已通过 GitHub Actions 重试并确认此状态:https://github.com/fqix/lua-devtools/actions/runs/35503510413 。六个平台均可从下方 VSIX 附件安装。