Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

完善 @alias 中枚举类型的提示与使用 #26

Open
kaishiqi opened this issue Jul 7, 2021 · 4 comments
Open

完善 @alias 中枚举类型的提示与使用 #26

kaishiqi opened this issue Jul 7, 2021 · 4 comments

Comments

@kaishiqi
Copy link

kaishiqi commented Jul 7, 2021

期望作者大大能够完善竞品插件般的的枚举提示
https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Annotations#alias

当我使用了竞品插件后,定义了如下代码

---@alias requestMode string
---| '"GET"'   # 资源已被提取并在消息正文中传输。
---| '"HEAD"'  # 实体标头位于消息正文中。
---|>'"POST"'  # 描述动作结果的资源在消息体中传输。
---| '"TRACE"' # 消息正文包含服务器收到的请求消息。

---@param mode requestMode
function toRequest(mode)
end

首先,竞品插件拥有悬浮提示
image

其次,竞品插件输入时也具有配套的自动提示
image

诚恳作者大大能够加入todo任务中,期待早日用上这个功能特性,真的能很方便coding体验。

@kaishiqi
Copy link
Author

kaishiqi commented Jul 7, 2021

Ps:竞品插件速度上不如lua Helper,所以我依旧会支持作者大大,期待早日实现lua里的all in one插件。

@yinfei8
Copy link
Collaborator

yinfei8 commented Jul 8, 2021

恩,多谢反馈。
这个特性会尽快支持,后面体验到功能有什么不爽的地方,直接提需求,多谢了。

@klarkxy
Copy link

klarkxy commented Dec 9, 2021

这个现在实现了嘛?

@yinfei8
Copy link
Collaborator

yinfei8 commented Dec 9, 2021

这个还没有,这个我们已经在排期中了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants