Techatrix
5d6f23b5f1
fix integer underflow in ast.fullPtrType
( #829 )
2022-12-16 15:24:25 -05:00
Techatrix
e1973afafc
fix cimport duplicate messages & crash ( #828 )
2022-12-16 15:24:03 -05:00
Techatrix
68ac6f9f30
remove ast.tokenSlice()
( #824 )
2022-12-15 17:01:42 -05:00
Techatrix
c39a4eb2ab
simplify & refactor analysis code ( #823 )
2022-12-15 13:03:09 -05:00
nullptrdevs
3526f5fb84
Zig @call changes ( #822 )
...
First parameter is now a `std.builtin.CallModifier`.
2022-12-14 20:58:38 -05:00
Auguste Rame
d43329a9ee
Fix labels for real this time ( #819 )
2022-12-14 05:51:01 -05:00
Auguste Rame
0ab34abc0f
Bug stream fixes ( #818 )
...
* Fix glaring inlay hint issue; thanks for the report Nameless
* Fix label references; closes #728
2022-12-13 22:07:36 -05:00
Lee Cannon
878464ea72
Merge pull request #816 from alexnask/ascii-deprecated-removed
...
Use new versions of now removed std.ascii declarations
2022-12-12 00:18:23 +00:00
Lee Cannon
974bdff6b3
fix missed reference on windows
2022-12-12 00:13:13 +00:00
Techatrix
1ae341850e
automatically generate config associated files ( #813 )
2022-12-11 13:10:48 +02:00
Alexandros Naskos
3cac23f8a1
Fix references to now removed, previously deprecated std.ascii declarations
2022-12-10 23:21:55 +02:00
Lee Cannon
9e658cdbb6
update TracyAllocator for new Allocator changes ( #812 )
...
* update TracyAllocator for new Allocator changes
* Add build with Tracy to CI to catch regressions
* disable Tracy CI step on macos
2022-12-08 14:32:50 -05:00
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
Auguste Rame
580469cd32
Fix rogue resize, bump minimum version ( #805 )
2022-12-03 21:35:51 -05:00
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
Alexandros Naskos
3ab859a304
Make sure zig lib path retrieved from zig env
is absolute ( #799 )
2022-12-02 23:22:35 +02:00
Auguste Rame
6ab2c68355
Allocgate 2.0 slain ( #791 )
...
* Allocgate 2.0 slain
* Tests now compile, but they fail
* Temporary bruteforce
2022-12-02 15:14:58 -05:00
Techatrix
784047d952
add a dummy cancelRequest implementation ( #790 )
2022-12-01 04:00:08 -05:00
Lee Cannon
c3256c00e7
pass correct zig-cache path ( #789 )
2022-11-29 17:50:09 -05:00
Alexandros Naskos
56a65f42bf
Added tuple type support, fixed compilation with zig master branch ( #786 )
...
* Added tuple type support, fixed compilation with zig master branch
* Removed unneeded comment
* Bumped up minimum zig version required to build zls
2022-11-26 12:22:16 -05:00
Aleksey Kladov
8731a37d1f
textDocument/selectionRange
...
closes #777
2022-11-26 11:31:46 +00:00
Techatrix
aa14772cfe
use textDocument/willSaveWaitUntil for autofix ( #780 )
2022-11-25 16:32:08 -05:00
Techatrix
1ced17266c
set TextDocumentSync to Incremental ( #776 )
2022-11-22 21:05:29 -05:00
nullptrdevs
4794f1e8d9
Disable label references until #728 is resolved
2022-11-22 02:08:43 -08:00
Techatrix
ea2caee3ad
correctly find last full text change in applyTextEdits ( #772 )
2022-11-21 13:21:24 -05:00
halting
5f3d58edeb
fix anytype snippet ( #769 )
...
i forgot that
2022-11-20 15:16:15 -05:00
halting
245e11e033
snippets for primitive types ( #767 )
2022-11-19 14:59:12 -05:00
Techatrix
f09ffb63db
don't format files with syntax errors ( #766 )
...
* don't format files with syntax errors
* Remove showMessage
Co-authored-by: Auguste Rame <19855629+SuperAuguste@users.noreply.github.com>
2022-11-18 18:49:59 -05:00
halting
d1aeec4c41
update snippets
2022-11-17 11:24:00 -03:00
Auguste Rame
87aa4c09e1
Quick comptime interpreter fix, place it behind an option ( #761 )
...
* Quick fix
* Add config option
2022-11-16 19:28:01 -05:00
Auguste Rame
355d56376f
Merge pull request #724 from zigtools/comptime-bebe-steps
...
Implement comptime interpreter
2022-11-16 18:13:35 -05:00
Techatrix
28be9a4cc7
report actual zls version in initialize response ( #759 )
2022-11-16 17:58:37 -05:00
Techatrix
31584cff60
find references in while continue expressions ( #758 )
2022-11-16 17:35:51 -05:00
Techatrix
46da74d32e
don't iterate handles while potential invalidation occurs ( #757 )
2022-11-16 17:35:19 -05:00
Techatrix
d75fd3a880
detect comment position context ( #756 )
2022-11-16 17:34:36 -05:00
Techatrix
662b560861
format with Ast.render
instead of zig fmt
( #755 )
2022-11-16 17:33:15 -05:00
Ingo Lohmar
e98aea61ea
do not panic on error response to workspace/configuration ( #747 )
2022-11-13 17:28:00 -05:00
Auguste Rame
c8dffc1f9b
Some comptime interpreter fixes
2022-11-10 20:51:02 -05:00
Auguste Rame
c803a5de3f
Quick cleanup
2022-11-09 23:46:23 -05:00
Auguste Rame
411e74d364
Add param type resolution & stop using stage2, still a bit broken :(
2022-11-09 23:17:21 -05:00
Nick Cernis
e58bddd769
Improve Zig version mismatch error ( #744 )
...
Improves the server message we send if the system Zig version is older
than the Zig version that ZLS was built with:
- Correct typo (“build with” → “built with”).
- Show versions so users know which one they need to update to.
- Suggest step needed to fix the error (“Update Zig…”).
2022-11-09 23:13:35 -05:00
Auguste Rame
b91a193d04
We can interpret std now because of proper tree shaking!
2022-11-08 14:42:40 -05:00
Auguste Rame
c6ab7e8a0f
Casts++, compileLog, pointers
2022-11-08 14:42:40 -05:00
Auguste Rame
e6b691e447
More builtins, use stage2 because we can
2022-11-08 14:42:33 -05:00
Auguste Rame
d2e166bb0b
Some builtins, rudimentary hacky diagnostics; need to nerf global evaluation
2022-11-08 14:37:14 -05:00
Auguste Rame
599c134593
Imports, cross-boundary resolution; can import std but dies on missing builtins / lang features
2022-11-08 14:37:13 -05:00
Auguste Rame
da00751726
Field access, function calls based on function value
2022-11-08 14:37:13 -05:00
Auguste Rame
779c3c0710
Hacky mess but it works (only if your function is the first root decl tho :P)
2022-11-08 14:37:13 -05:00
Auguste Rame
06e8756849
Add struct test
2022-11-08 14:37:13 -05:00
Auguste Rame
d2640a44ac
comptime interpreter moment
2022-11-08 14:37:01 -05:00