Tom Cheng
af14067911
Fix crash when getting signature of optional
...
e.g. typing 'foo.?.bar(' crashes zls because it doesn't recognize ? as a
possible token as part of a function expression, and tries to call
getFieldAccessType with '.bar' instead.
The actual fix is the one line in src/signature_help.zig
getFieldAccessType was reworked to be more resilient to this type of
thing - the `undefined` value of `current_type.type.data` was being used
since it hit the `.period` branch first. This caused the crash.
2022-11-02 14:55:22 +00:00
Techatrix
25ce5dd8aa
undo DocumentStore constness changes
2022-10-16 17:17:40 +02:00
Techatrix
5d748767e9
mark DocumentStore & Handle const
2022-10-05 13:40:11 +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
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
Auguste Rame
1d910ed973
Start refactoring main -> Server's globals
2022-07-17 12:00:29 +02: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
4bc8b92e19
collapse more fn signatures
2021-09-30 18:45:45 -07:00
Meghan Denny
9e0f201283
finish rename of usage of std.zig.Ast
2021-09-30 18:44:06 -07:00
Meghan Denny
f482950f5f
fix imports to use ./
for relative usage
2021-09-30 17:48:40 -07:00
Sashiri
fed1c4c2c6
usingnamespace semantics update
...
+ Ast changes adjustments
2021-09-04 21:25:35 +02:00
Alexandros Naskos
bba069526c
Fix build for zig master by inserting null terminators when tokenizing and resetting them when needed
2021-07-10 19:58:37 +03:00
Jonathan Hähne
b90c9b49ac
Fix inclusion of toplevel doc comments, remove @async recursion in
...
writeNodeTokens, add a few regression tests
2021-04-15 11:07:43 +02:00
Alexandros Naskos
4bee4e662b
Made lookupGlobalSymbol start the search from the innermost scope that contains the source index
2021-04-04 15:28:57 +03:00
Alexandros Naskos
cc3c146749
Correctly handle skipping self parameters in signature help requests
...
as well as completion requests.
2021-04-03 18:54:26 +03:00
Alexandros Naskos
8d95218575
Resolve aliases when looking for the function prototype to generate
...
signature information.
Fixed doc comments in function signature information.
2021-04-03 02:53:41 +03:00
Alexandros Naskos
7f432d8715
Implemented the signature help request.
...
Refreshes builtin data, added 0.7.1 builtins
2021-04-02 20:49:01 +03:00