diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-08-29 17:48:52 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-08-29 17:48:52 +0200 |
| commit | b1db5ae2a8aeeb72dca127e62d5cbf5b3c7caced (patch) | |
| tree | 1edc666f72cb87ef164508de2f7fa0a408472763 /parser_test.lua | |
| parent | 5d8801804180f7f0ab09b97bbdf8ae41e619c759 (diff) | |
| download | vis-lspc-b1db5ae2a8aeeb72dca127e62d5cbf5b3c7caced.tar.gz vis-lspc-b1db5ae2a8aeeb72dca127e62d5cbf5b3c7caced.zip | |
do not index a nil value when no formatting edits are returned
The method textDocument/formatting is allowed to return null/nil which
was directly passed to vis_apply_textEdits causing an exception
when trying to iterate the textEdits table.
Only pass the result of textDocument/formatting to vis_apply_textEdits
if there is an actual result.
Fixes: e83950a7149f364b653395cdd4d9446875a7f469
Diffstat (limited to 'parser_test.lua')
0 files changed, 0 insertions, 0 deletions
