summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-04-25 15:27:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-04-25 15:27:25 +0800
commit1c2ea3463e3dc07a9cf43947677169aaeada164e (patch)
tree49c026e5f119ac5fa0097c0078feb71cff274e94 /script
parent2f57957693fd9f79e803918f25034e5dcf6e8238 (diff)
downloadlua-language-server-1c2ea3463e3dc07a9cf43947677169aaeada164e.zip
fix method view in doc
Diffstat (limited to 'script')
-rw-r--r--script/cli/doc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/cli/doc.lua b/script/cli/doc.lua
index f94a2066..efaa70c8 100644
--- a/script/cli/doc.lua
+++ b/script/cli/doc.lua
@@ -57,7 +57,7 @@ local function packObject(source, mark)
new.returns[i] = packObject(rtn)
end
end
- new['view'] = getLabel(source)
+ new['view'] = getLabel(source, source.parent.type == 'setmethod')
end
if source.type == 'doc.type.table' then
new['fields'] = packObject(source.fields, mark)