-
-
Notifications
You must be signed in to change notification settings - Fork 427
Better global recognizing for loadfile #143
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestfeat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)Related to Lua Language Server Annotations (LuaCats)
Milestone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfeat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)Related to Lua Language Server Annotations (LuaCats)
Type
Fields
Give feedbackNo fields configured for issues without a type.
In some cases you might need to make the plugin recognize a specific local variable as global, without declaring that variable as an actual global, one of these cases are using
loadandloadfilewere you can pass anenvvariable that represents the chunk environment.*mainFile.lua
*secondFile.lua
So i would suggest better recognizing for
load/loadfile/loadstringenvironment or/and a custom emmylua annotations--- @globalthat marks the local var as a global one.Thanks in advance.