-
-
Notifications
You must be signed in to change notification settings - Fork 380
Description
How are you using the lua-language-server?
Command Line
Which OS are you using?
Windows
What is the issue affecting?
Other
Expected Behaviour
We're using the language server to generate a Lua API reference for mdbooks in the project: https://github.com/emuell/luals-docs-gen
In this project, the language server is only used as a raw JSON document generator, not as a language server. We run it via lua-language-server --doc PATH_TO_LIBRARY --doc_out_path =OUT_PATH ...
and capture the output.
Apart from the need to adjust a few other settings to optimize the output for our document generator, the output of the language server is in general truncated to ~200 lines for large enums displays and other things. This may be useful when running the language server as, well, a language server, but not when using it as a document generator.
Actual Behaviour
When running the language server in --doc
mode, no output should be magically truncated.
Optionally, there should be a user-definable setting/option to tweak this behavior.
Reproduction steps
See Expected Behaviour above...
Additional Notes
It seems that this part of the code is causing the problem:
https://github.com/LuaLS/lua-language-server/blob/master/script/vm/infer.lua#L476
Log File
No response