You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My actual use case is that I have a file defined some class namespace, to act as an common table reference. And the actual class implementation is spitted into multiple files, with each requires the type namespace then extend it from there to prevent circular require.
Right now the workaround is to add blank line in between the namespace declaration.
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Annotations
Expected Behaviour
I suppose
@class
can be used inline likelocal ClassA = {} ---@class ClassA
?(please correctly me if I am wrong)
So the following code should work, which 3 classes are defined
Actual Behaviour
However, with the above test code, only the last class
ClassC
is recognized.And if I add empty lines in between, then it will work properly.
Reproduction steps
As described with the minimal test code above.
Additional Notes
My actual use case is that I have a file defined some class namespace, to act as an common table reference. And the actual class implementation is spitted into multiple files, with each requires the type namespace then extend it from there to prevent circular require.
Right now the workaround is to add blank line in between the namespace declaration.
Log File
No response
The text was updated successfully, but these errors were encountered: