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
In Mediawiki (Scribunto) environment, Lua modules are prefixed with Module:, but currently such names cannot be specified with @meta.
Actual Behaviour
This meta file will not work (Module is recognized as module name instead):
---@meta Module:Arguments
local p = {}
---@param frame Frame
---@param args { trim: boolean, removeBlanks: boolean, valueFunc: fun(key: any, value: any): any, frameOnly: boolean, parentOnly: boolean, parentFirst: boolean, wrappers: string|string[], readOnly: boolean, noOverwrite: boolean }?
---@return table
function p.getArgs ( frame, args ) end
return p
Reproduction steps
- Reproduction can be done with
local _args = require('Module:Arguments').getArgs and checking the type.
Additional Notes
No response
Log File
No response
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
In Mediawiki (Scribunto) environment, Lua modules are prefixed with
Module:, but currently such names cannot be specified with@meta.Actual Behaviour
This meta file will not work (
Moduleis recognized as module name instead):Reproduction steps
local _args = require('Module:Arguments').getArgsand checking the type.Additional Notes
No response
Log File
No response