Techarix
0e57f694be
update analysis of builtin functions
2023-06-23 21:10:26 +01:00
FalsePattern
9b176c5a66
Add notice to legacy_json
2023-06-22 19:53:43 +02:00
FalsePattern
c0439c646c
Update config_gen.zig and regenerated master
2023-06-21 23:14:00 +02:00
FalsePattern
71b09a3ffe
fix legacy json in tests
2023-06-21 17:47:58 +02:00
FalsePattern
d0c62157b4
Added legacy-style json api wrapper
2023-06-21 17:24:29 +02:00
FalsePattern
cf211cd599
update casting builtins
2023-06-21 17:08:10 +02:00
Lee Cannon
f8e8371f04
Fixed compatibility with latest builds of Zig ( #1246 )
...
* zig_change: `alignForward` requires type parameter
* zig_change: `std.builtin.Version` -> `std.SemanticVersion`
2023-06-18 17:29:24 -04:00
FalsePattern
4b35e80f96
Replace deprecated calls
...
std.math.min,
std.math.max,
std.math.inf_f32
Were removed from the standard library and no longer compile.
2023-06-17 16:32:09 +02:00
Joe Williams
83c9a7b493
autofix now handles comments in the event of a newline w/ comments ( #1236 )
...
* autofix now handles comments in the event of a newline w/ comments
* oob check
* continue statements so we don't waste time checking things we know
* added a skip for if the characters are a comment
* convert to switch for readability
2023-06-15 12:53:33 -07:00
Lee Cannon
c28a59ccf3
Merge pull request #1229 from leecannon/deduplicate_packages
...
deduplicate packages in the build runner
2023-06-10 10:34:56 +01:00
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
74cfaade37
deduplicate packages in the build runner
2023-06-05 22:04:14 +01:00
Lee Cannon
1020817ed0
Merge pull request #1228 from nullptrdevs/max_output_bytes
...
`executeBuildRunner`: increase `.max_output_bytes`
2023-06-05 21:15:16 +01:00
nullptrdevs
e0d4b9282b
executeBuildRunner
: increase .max_output_bytes
2023-06-05 12:34:26 -07:00
Auguste Rame
4f0762af62
Use @silversquirl's binned allocator ( #1134 )
...
* Use @silversquirl's binned allocator
* Finish this
2023-06-03 23:42:56 -07:00
nullptrdevs
0afc1c3b21
Fix configuration.getConfigurationType
returning non null values ( #1220 )
...
The function would change the `Config` struct fields' type to optional but keep a non null value which led to `Server.didChangeConfigurationHandler` assigning wrong values to `server.config`.
2023-06-02 16:46:29 -04:00
Lee Cannon
f96b226b4d
Merge pull request #1213 from Techatrix/update-debug-helpers
...
refactor debugging utilities
2023-05-31 18:12:58 +01: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
Lee Cannon
f06c75157c
Merge pull request #1212 from Techatrix/param-slice
...
add `paramSlice` helper function
2023-05-30 20:56:21 +01:00
Techatrix
458da88f90
refactor debugging utilities
2023-05-30 19:05:26 +02:00
Techatrix
cc8fb14906
add tests for autofix code actions
2023-05-30 18:46:37 +02:00
Lee Cannon
94334f4121
Merge pull request #1210 from junnplus/didChangeConfiguration
...
compatible with the `settings.zls` in didChangeConfigurationHandler
2023-05-30 17:42:03 +01:00
Ye Sijun
643496922d
compatible with the settings.zls
in didChangeConfigurationHandler
...
Signed-off-by: Ye Sijun <junnplus@gmail.com>
2023-05-30 15:54:26 +09:00
Techatrix
b623f141ea
revive translateC support
2023-05-30 01:59:46 +02:00
Techatrix
a2de5bf2e6
add paramSlice
helper function
2023-05-30 00:52:16 +02:00
Techatrix
9f9bf9eba8
include enum fields in enum completion set
2023-05-30 00:02:01 +02:00
Techatrix
a6f7e80ea3
fix memory leak on error in makeInnerScope
2023-05-30 00:02:01 +02:00
Techatrix
8b941e5444
reduce size of ScopeContext
2023-05-30 00:02:01 +02:00
Techatrix
52c38afe46
replace scope decl container from StringHashMap with StringArrayHashMap
2023-05-30 00:02:01 +02:00
Techatrix
a378eb74b1
store document scope declarations in std.ArrayList
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
Veikka Tuominen
6471db5274
exhaustively list semantic token types to exclude
2023-05-29 01:12:16 +03:00
Eric Joldasov
905f531a08
update to Zig 0.11.0-dev.3312+ab37ab33c
...
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-05-27 16:21:30 -07:00
Lee Cannon
0de454195c
Merge pull request #1202 from travisstaloch/issue-689-discard-caps
...
autofix: discard captures + some multi for loop support
2023-05-27 12:20:32 +01:00
Travis Staloch
58bc245ba3
autofix: tighten up getCaptureLoc()
...
* reject missing opening '|'
* reject capture group of only spaces
* add tests for these cases
2023-05-26 23:45:49 -07:00
Travis Staloch
32dc6c32ea
autofix: clean up dupe 'remove capture' action detection
2023-05-26 20:55:48 -07:00
Travis Staloch
49b679ee22
autofix: discard captures + some multi for loop support
...
this patch makes autofix add discards for unused loop and switch case
captures which have curlies. it prevents adding duplicate
'remove capture' actions by checking previous action ranges.
it removes special casing of index captures now that multi for loops
have arrived.
* make getCaptureLoc() return only single Loc
* remove CaptureLocs struct which is no longer used
* add DiagnosticKind.@"switch tag capture" to handle
'inline else => |x, tag|' discards
* add test "getCaptureLoc"
2023-05-26 20:19:50 -07:00
Victor Song
0af42d5608
Replace nonexistent std.sort.sort
with std.mem.sort
2023-05-24 02:13:43 -05:00
Lee Cannon
2ff2593a86
Merge pull request #1197 from Techatrix/invalidate-analysis-cache
...
invalidate Analyser on didClose
2023-05-21 15:31:40 -07:00
Techatrix
a64b63333a
invalidate Analyser on didClose
2023-05-21 22:56:42 +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
6836f9361d
use std.meta.fieldNames
instead of manually re-implementing it
2023-05-21 21:48:46 +02:00