Lee Cannon
4d0e1afb72
Merge pull request #1233 from Techatrix/enum-completion
...
set Enum completion kind to .EnumMember
2023-06-09 23:20:42 +01:00
Techatrix
c446087231
set Enum completion kind to .EnumMember
2023-06-09 23:35:27 +02:00
Techatrix
77e39a8da8
clear using_trail when calling resolveUse
...
fixes #1231
2023-06-09 23:13:36 +02:00
Lee Cannon
5d53f0104f
Merge pull request #1209 from Vexu/semantic-tokens
...
Semantic token adjustments
2023-05-30 21:24:58 +01:00
Lee Cannon
fa0793596f
Merge pull request #1215 from Techatrix/refactor-doc-scope
...
Refactor document scope generation
2023-05-30 21:05:26 +01:00
Lee Cannon
88978bac2e
Merge pull request #1214 from Techatrix/code-actions-tests
...
add tests for autofix code actions
2023-05-30 21:00:39 +01:00
Techatrix
cc8fb14906
add tests for autofix code actions
2023-05-30 18:46:37 +02:00
Techatrix
b623f141ea
revive translateC support
2023-05-30 01:59:46 +02:00
Techatrix
9f9bf9eba8
include enum fields in enum completion set
2023-05-30 00:02:01 +02:00
Techatrix
6f7f9dab9d
refactor document scope creation with ast.iterateChildren
2023-05-30 00:02:01 +02:00
Veikka Tuominen
cda0fd4386
rewrite semantic token types union and opaque as type
...
The default themes on vscode color these the same as all other identifiers.
2023-05-29 12:57:18 +03:00
Lee Cannon
2e3d66e465
update std.debug.TTY
to std.io.tty
2023-05-25 17:13:10 +01:00
Victor Song
0af42d5608
Replace nonexistent std.sort.sort
with std.mem.sort
2023-05-24 02:13:43 -05:00
Techatrix
5cc7b1341e
skip std module resolution test on webassembly target
2023-05-21 21:48:46 +02:00
Techatrix
6f0907bc16
fix semantic tokens on union and enum container fields
2023-05-21 21:48:46 +02:00
Techatrix
cde544125a
bring semantic token types and modifiers closer to predefined ones
2023-05-21 21:48:46 +02:00
Techatrix
d9965c7834
fix semantic tokens on if capture by ref
2023-05-21 21:48:46 +02:00
Techatrix
498517ba71
replace semantic token type .field with .property
2023-05-21 21:48:46 +02:00
Techatrix
ae5fa110b5
test and simplify semantic tokens on function call
2023-05-21 21:48:46 +02:00
Techatrix
3fefcfb398
simplify semantic token comment handling
2023-05-21 21:48:46 +02:00
Techatrix
3500aa7a76
update to new std.json api ( #1191 )
...
* update lsp.zig
* update to new `std.json` api
* update min zig version
* fix json api
2023-05-18 20:46:22 -04:00
Techatrix
029f5094ff
various intern pool & comptime interpreter changes ( #1179 )
...
* intern_pool: add getUnsignedInt
* add an empty struct literal
* resolve array length as usize in comptime interpreter
* use only one global intern pool
* store analysis errors in `DocumentStore.Handle`
* add typed undefined value
* add typed null value
2023-05-09 00:25:26 -04:00
Rekai Musuka
ec50d33241
fix: update test case involving @memcpy
2023-05-04 00:51:13 -05:00
Lee Cannon
825cbd2e07
Merge pull request #1142 from Techatrix/iterate-asm
...
implement `iterateChildren` on asm
2023-04-17 23:03:15 +01:00
Lee Cannon
2e282d991b
Merge pull request #1143 from Techatrix/test-struct-init-completion
...
add completion tests on struct init fields
2023-04-17 22:59:55 +01:00
Techarix
c0498fffa1
add completion tests on struct init fields
2023-04-17 23:25:20 +02:00
Techatrix
92eaa22c30
implement iterateChildren
on asm
2023-04-17 23:03:54 +02:00
Casey Banner
3ae56929fc
Implement $/setTrace and add --enable-message-tracing ( #1135 )
2023-04-16 12:04:42 -04:00
Techatrix
b970dd20a3
remove zls.json ( #1108 )
2023-04-03 11:22:51 -04:00
Techatrix
1e733a8782
fix block label completion test
2023-03-23 15:13:33 +00:00
Techatrix
1df17e8aa5
enable successful references test
2023-03-23 15:13:14 +00:00
Techatrix
6530fe01c4
implement testing for cross-file references
2023-03-23 15:13:14 +00:00
Techatrix
5944db49b3
add multi-file support to ErrorBuilder
...
colorize ErrorBuilder output
2023-03-23 15:13:14 +00:00
Techatrix
37e3cb463d
generate distinct uris in Context.addDocument
2023-03-23 15:13:14 +00:00
Veikka Tuominen
61b42ca63a
make semantic token configuration an enum
2023-03-23 15:02:12 +00:00
Techatrix
3c165eabcd
remove boxed null boilerplate
2023-03-21 16:58:05 +00:00
Techatrix
0c333aaa8a
do not print error messages in comptime interpreter tests
2023-03-21 16:58:05 +00:00
Techatrix
0ff0a193cc
simplify analysis by introducing a Analysis Struct
2023-03-14 15:16:30 +00:00
Techatrix
973d33d435
expand semantic token test coverage
2023-03-14 14:56:11 +00:00
Techatrix
a959f161e9
find references on test decl with identifier name ( #1051 )
2023-03-12 01:24:54 -05:00
Techatrix
ab23ff3616
Optimize document symbols ( #1050 )
...
* optimize document symbol generation
* match folding range index to position conversion and documentation to document symbol's
* skip function decls with no name
* skip document symbol field in opaque type
2023-03-12 01:24:42 -05:00
Techatrix
42a8d1adb7
add more Ast tests
2023-03-07 09:38:18 -08:00
Techatrix
397b5bc78f
add more tests to offsets.zig
2023-03-07 09:38:18 -08:00
Techatrix
1fb7bfc63f
update failing semantic tokens test
2023-03-06 09:32:03 -08:00
Auguste Rame
121f68b970
Fix build runner ( #1029 )
...
* Fix build runner
* Add zls module, bump version
* Fix path from root issue in modules (thanks daremakemyday from Twitch :))
* Libraryify
* remove build_runner backward compatibility
* Remove some `= undefined`s in Server.zig
Makes library use less dangerous
* Consistent mem model + custom build runner possible
* Add build runner utils for third-party tooling
* Make logs removable in libraries with zls_ prefix
* Fix build runner CI
* Expose references
* Use new addModule
2023-03-05 14:08:31 -05:00
Techatrix
30869d7d87
InternPool: replace untyped values with typed values ( #1023 )
...
* InternPool: replace untyped values with typed values
* InternPool: remove `indexToTag`
* InternPool: rework representation of optional values
* add representation for unknown values and types
* ComptimeInterpreter: use InternPool typed-values
* ComptimeInterpreter: field access test
* ComptimeInterpreter: improve handling of if expressions
* InternPool: fix typeOf on a comptime float
* ComptimeInterpreter: implement TypeOf with multiple parameters
2023-02-27 17:53:46 -05:00
Techatrix
89ab9fdf70
make diff.edits
memory safe ( #1026 )
2023-02-27 17:53:16 -05:00
Techarix
4b0da6f6ae
fix folding range on multi line function declaration
2023-02-25 10:58:29 -08:00
Techarix
97f7fd77c6
fix folding range on structs with doc comment on first field
2023-02-25 10:58:29 -08:00
Lee Cannon
5ede46f003
support new module cli arguments ( #1019 )
...
* support new module cli arguments
* capture the runtime zig version and store it on `Server`
* update build_runner action
* Use correct version for selecting arguments
2023-02-23 15:18:52 -05:00