zls/tests
Alex Kladov cfb0b023ad
fix #801, IOOB in foldingRanges (#802)
* Add smoke tests for folding ranges

* fix index out of bounds in foldingRanges

closes #801

For invalid syntax trees, zig's parser seems to return bogus data where
startToken > endToken, which then causes everything else to crash.

This seems like a deeper issue, which needs to be fixed "properly", but
let's just paper over it here.
2022-12-03 17:23:13 +02:00
..
language_features Revert "move to stage2 (#781)" (#783) 2022-11-25 19:18:32 -05:00
lsp_features fix #801, IOOB in foldingRanges (#802) 2022-12-03 17:23:13 +02:00
utility detect comment position context (#756) 2022-11-16 17:34:36 -05:00
context.zig avoid config copy for document store (#669) 2022-09-21 21:31:48 -04:00
ErrorBuilder.zig Testing improvements (#662) 2022-09-18 22:47:06 +00:00
helper.zig Allocgate 2.0 slain (#791) 2022-12-02 15:14:58 -05:00
tests.zig fix #801, IOOB in foldingRanges (#802) 2022-12-03 17:23:13 +02:00
zls.json Add test zls.json file 2020-07-03 14:24:27 +03:00