zls/tests
Joseph Stahl 887539ed1a
Allocator.resize() does not adjust size of string allocated for URI to file path conversion (#806)
* fix missing backslash

* fix: zls escaping colon to %3A on URIs

ZLS escapes a colon char ":" as "%3A" when encoding file paths to URIs
When decoding, need to make the target string 2 character shorter
to compensate for length decrease when replacing %3A with :

* add new failing test because of resize()

* revert changes to %3A handling - problem seems to be with allocator.resize

* switch to realloc

* Fix test failures, revert errdefer->defer

* platform-specific URI tests

URI parsing is highly platform-specific
run Unix-style (file:///home/main.zig) on non-Windows test runners,
run Windows-style (file://c%3A/main.zig) on Windows test runners
2022-12-04 16:44:22 -05:00
..
language_features Revert "move to stage2 (#781)" (#783) 2022-11-25 19:18:32 -05:00
lsp_features Fix rogue resize, bump minimum version (#805) 2022-12-03 21:35:51 -05:00
utility Allocator.resize() does not adjust size of string allocated for URI to file path conversion (#806) 2022-12-04 16:44:22 -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