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
7a7576c06d
fix symbol references ( #712 )
...
* fix symbol references
* skip references for inline assembly
2022-10-29 04:37:52 -04:00
Techatrix
2755d8d8b7
simplify dependency collection in references.zig
2022-10-17 21:20:27 +02:00
Techatrix
0cfc792849
load handles on demand instead of ahead of time
2022-10-16 17:26:06 +02:00
Techatrix
25ce5dd8aa
undo DocumentStore constness changes
2022-10-16 17:17:40 +02:00
Techatrix
d6ef330984
Merge branch 'master' into document-store-refactor
2022-10-10 19:07:15 +02:00
Jonas Enlund
3833566790
Add missing .switch_case_inline, .switch_case_inline_one cases ( #699 )
...
* Add missing .switch_case_inline, .switch_case_inline_one cases
* Include inline semantic token
Co-authored-by: Auguste Rame <19855629+SuperAuguste@users.noreply.github.com>
2022-10-07 20:00:23 -04:00
Techatrix
5d748767e9
mark DocumentStore & Handle const
2022-10-05 13:40:11 +02:00
Techatrix
dab7eb81cc
reimplement document store
2022-10-05 13:23:38 +02:00
Techatrix
a9a1fad13e
remove types.TextDocument ( #693 )
...
* remove types.TextDocument
* resolve compile errors because of previous merge
2022-09-30 20:45:45 -04:00
Techatrix
6ff19e8b5f
analysis: store function node in parameter declaration
2022-09-24 21:25:32 +02:00
Techatrix
7f4f002380
Testing improvements ( #662 )
2022-09-18 22:47:06 +00:00
Techatrix
b76710ea5f
References improvements ( #653 )
2022-09-16 01:11:39 +00:00
Techatrix
e28549fa7d
Completely overhaul offsets.zig ( #643 )
...
* completely overhaul offsets.zig
2022-09-16 00:33:49 +00:00
nullptrdevs
6269eef776
fix: "f..o.o;" crashes the server ( #629 )
...
this is a fix for #381 and a hack for #409
(related, get triggered by "f..o.o;")
2022-09-07 13:14:11 -04:00
Techatrix
7730c7715b
respect document encoding
2022-09-05 22:49:50 +02:00
nullptrdevs
54be6d92c6
fix: fix server crash related to parsing incomplete function as a function's parameter
...
fixes zigtools#567
2022-08-25 13:17:38 -07:00
Techatrix
dc3199cffa
unmanage all the code
2022-08-23 12:44:26 +02:00
Techatrix
29690f4e0b
Refactor Ast helper functions
2022-08-18 00:52:21 +02:00
Gregory Anders
b71a83b64a
Limit references to current document for documentHighlight
2022-07-22 19:38:26 -06:00
Auguste Rame
6f19772c17
Fix config source of truth problems, refactor some more
2022-07-15 18:06:18 +02:00
Meghan Denny
ca409941e0
update to zig master 0.10.0-dev.1679+d227f76af
2022-03-31 16:01:43 -07:00
Matt Knight
f9133ffdec
allocgate defeated
2021-12-03 08:00:22 -05:00
Meghan Denny
04edc7a2d5
remove all use of usingnamespace
2021-10-19 19:26:57 -07:00
Meghan Denny
aae82d29bd
fix capitalization of top level fields structs
2021-10-19 19:26:57 -07:00
Meghan Denny
b63339e350
remove Tree when it was the same as Ast
2021-09-30 18:57:45 -07:00
Meghan Denny
9e0f201283
finish rename of usage of std.zig.Ast
2021-09-30 18:44:06 -07:00
Meghan Denny
ad8d75b613
use single line method signatures
2021-09-30 17:51:51 -07:00
Meghan Denny
f482950f5f
fix imports to use ./
for relative usage
2021-09-30 17:48:40 -07:00
Travis Staloch
50aa71c10f
support new ast token changes
...
- some ast token tags were renamed: ie .bit_shift_left => .shl
- add initial support for saturating operators: +|, -|, *|, <<|, +|=, -|=, *|=, <<|=
2021-09-28 21:15:37 -07:00
Sashiri
fed1c4c2c6
usingnamespace semantics update
...
+ Ast changes adjustments
2021-09-04 21:25:35 +02:00
Lee Cannon
ac4b198869
Update to zig master
...
Redundant comptime, unused locals, unused function params, unused captures
As issue with @"type" resolving to the keyword type
2021-06-24 11:38:01 +01:00
Alexandros Naskos
b756ed4da5
Fixed HashMap usage for latest master stdlib
2021-06-04 14:06:11 +03:00
Jonathan Hähne
b59db79a05
Refactor makeScopeInternal
2021-04-07 09:21:01 +02:00
Alexandros Naskos
2415e7ca6d
Removed all zig.ast.Tree methods that call lastToken with our own versions
2021-03-30 20:59:58 +03:00
Alexandros Naskos
f382a1b22d
Better import handling
2021-03-30 15:41:59 +03:00
Jonathan Hähne
826172edeb
Improve textDocument/references performance
...
Filtering out documents in symbolReferences that do not @import the file
defining the symbol led to an order of magnitude speedup in the projects
that I tested.
2021-03-28 17:05:22 +02:00
Alexandros Naskos
3e300e4d74
Added our own ifFull implementation, fixes some crashes
2021-03-26 21:46:49 +02:00
Alexandros Naskos
06518778c1
Removed comment preprocessing code from the semantic tokens gap highlighter,
...
Fixed various comment semantic highlighting issues.
Refactored some minor parts of the analysis code.
2021-03-26 21:04:51 +02:00
Luuk de Gram
3ac6c82b9a
Completion for index label in for loops and fix for function snippets
2021-03-09 19:53:59 +01:00
Luuk de Gram
43ebfc7300
Work on completion for unwrapped slices/optionals in loops/ifs
2021-03-08 19:46:23 +01:00
Luuk de Gram
e2f4bbf2f3
Implement semantic tokens for regular comments
2021-03-07 14:51:47 +01:00
Luuk de Gram
ac8a00342e
All functionalities implemented. Also implemented ability to skip searching for references through std
2021-03-06 20:55:59 +01:00
Luuk de Gram
d7ccf6a3c2
References working for current file
2021-03-03 20:38:52 +01:00
Luuk de Gram
a699dab2f7
Referencing fixes and more
2021-03-03 16:34:24 +01:00
Luuk de Gram
1dd39914ec
Hovering fixes
2021-03-02 15:32:38 +01:00
Luuk de Gram
c8a2467fac
Compiles without errors. Still needs improvement
2021-03-01 22:18:38 +01:00
Luuk de Gram
ada0d13ba9
Fix symbolReferencesInternal
2021-03-01 19:34:28 +01:00
Luuk de Gram
4645638434
Fixes and completions
2021-03-01 16:02:24 +01:00