最萌小汐
最萌小汐
The current standard comes from #599 . I can supports these at the same time: ```lua ---@class A ---@operator add: A --> eqauls to `add(A, any): A` ---@operator add(): A...
> Is it possible to anlayze `setmetatable()` without performance issues? ~Yes, just need analyze it once, then I can cache the result.~ Unless I assume that the semantics of `Class:__add`...
`source` is an internally used annotation, you can pretend it doesn't exist. Perhaps a better name would be `shadow` .
It is used for jumping to another language, for example: ```lua ---@source lmathlib.c:220:11 function math.max(...) end math.max(1, 2) ``` When requesting goto definition for `math.max`, it will jump into `lmathlib.c`...
> As per the title meta/spell is not included in vscode releases. Fixed.
Another fix.
1. 请确认你打开的是lua文件(右下角语言模式是否是Lua) 2. 请查看“输出”窗口,右侧下拉列表中是否有Lua,如果有看看里面是不是有什么错误信息(比如VSCode版本太低)
> 输出没有报错 请确认你打开的是lua文件(右下角语言模式是否是Lua)
> lua跳转函数都没反应 没反应指的是右键菜单中有“转到定义”的按钮,但是点了以后显示“未找到任何定义”?
那说明就是找不到定义,比如某个函数是C++/C#导出的接口,Lua里是没办法找到定义位置的。