Skip to content

Commit 06943cf

Browse files
authored
Merge pull request #3052 from emuell/patch-1
Avoid truncating output in ---doc mode
2 parents 5275a75 + d5135ab commit 06943cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
5+
* `FIX` Don't truncate any output when running in `--doc` mode [#3049](https://github.com/LuaLS/lua-language-server/issues/3049)
56
* `CHG` [#3014] Generic pattern now supports definition after capture and optional, union, array
67
```lua
78
---@generic T

script/vm/infer.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,8 @@ function mt:view(uri, default)
473473
end
474474
end
475475

476-
if #view > 200 then
476+
-- do not truncate if exporting doc
477+
if not DOC and #view > 200 then
477478
view = view:sub(1, 180) .. '...(too long)...' .. view:sub(-10)
478479
end
479480

0 commit comments

Comments
 (0)