diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-14 15:38:20 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-14 15:38:45 +0800 |
commit | 1a682cdf32775f1e21bc76a17e168df67acb35c2 (patch) | |
tree | e8aeffbce063f866ea43bdf039bba4b676273025 | |
parent | d4f2ccb12e740fa086892714a58d70bc3d832cfa (diff) | |
download | lua-language-server-1a682cdf32775f1e21bc76a17e168df67acb35c2.zip |
add source to methods
-rw-r--r-- | script/provider/build-meta.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/provider/build-meta.lua b/script/provider/build-meta.lua index 090b7b04..f0973228 100644 --- a/script/provider/build-meta.lua +++ b/script/provider/build-meta.lua @@ -66,6 +66,7 @@ local function addMethod(lines, name, method) return end addComments(lines, method.comment) + lines[#lines+1] = ('---@source %s'):format(method.location:gsub('#', ':')) local params = {} for _, param in ipairs(method.params) do lines[#lines+1] = ('---@param %s %s'):format(param.name, param.typeName) |