LuaLS / LuaLS/lua-language-server
Feature Request Hover Alias Original and Expanded
还没有人认领这个 Issue。
- 主要语言
- Lua
- 星标
- 4.4k
- 派生
- 442
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently there is an option Lua > Hover > Expand Alias that allows defining an alias and instead of seeing the alias-name when using the alias you will see what the alias is made of so `---@alias myType boolean | number` will appear as `boolean | number` instead of `myType`. However, there are circumstances where knowing what the alias is but also what it is made of can be useful. Is there a way we can have a both option here where on hover we can see both the alias name and its expansion? Something like `myType - (boolean | number)`
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Lua > Hover > Expand Alias 设置开始,跟踪类型别名的悬停渲染过程。添加一种同时显示别名名称及其展开结果的模式,例如 `myType - (boolean | number)`,并验证现有的别名显示模式保持不变。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- lua
- 领域
- devtools
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100