Commit Graph

1555 Commits

Author SHA1 Message Date
nullptrdevs
e1d90a1a1b More . completion 2023-03-23 15:01:23 +00:00
Sage Hane
c89431c625 flake.lock: Update
Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/3db36a8b464d0c4532ba1c7dda728f4576d6d073' (2023-02-13)
  → 'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/f5ffd5787786dde3a8bf648c7a1b5f78c4e01abb' (2023-03-03)
  → 'github:NixOS/nixpkgs/c9ece0059f42e0ab53ac870104ca4049df41b133' (2023-03-21)
• Updated input 'zig-overlay':
    'github:mitchellh/zig-overlay/09cda6f73587dd4d5dfa8ab8490a94eff5651001' (2023-03-05)
  → 'github:mitchellh/zig-overlay/10704a6e0705a7e5494a6baa8086c4eb88940db0' (2023-03-22)
2023-03-22 14:17:49 +00:00
nullptrdevs
9723a92508 Struct init fields completion. 2023-03-21 17:46:33 +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
334a16ea0c
Merge pull request #1083 from Techatrix/update-build-zig
update build.zig
2023-03-21 16:34:07 +00:00
Techatrix
31e133a559 update build.zig 2023-03-20 20:30:51 +01:00
Lee Cannon
a9295769e7
hack latest build changes (#1077) 2023-03-18 20:50:26 -04:00
Techatrix
4b034f1afb
Rework file structure (#1069)
* move language feature files into separate folder

* move code completions into features/completions.zig

* move goto definition/declaration into features folder

* move hover into features folder

* restructure imports

* move selection range into features folder

* restructure request handling tracy call

* add missing features to `zls.zig`
2023-03-17 23:01:41 +01:00
Auguste Rame
3586a7858e
Fix scope creation for label blocks (#1074) 2023-03-17 15:02:51 -04:00
Techatrix
0aacb76743
support enums in config_gen (#1072)
* support enum types in config_gen

* fix typo
2023-03-17 02:27:35 -04:00
Techatrix
8d86d54c0d
Merge pull request #1068 from Techatrix/fix-typos
fix typos
2023-03-15 18:57:06 +00:00
Techatrix
12014cd93d fix typos 2023-03-15 17:34:23 +01:00
Lee Cannon
985e7069a2
tracy: workaround zig bug (#1066) 2023-03-15 11:59:56 -04:00
Techatrix
0475d868c4
update git clone command in README.md (#1065) 2023-03-14 20:21:14 -04:00
Techatrix
c2d15bfc9a only return block scopes from innermostBlockScope 2023-03-14 15:16:30 +00:00
Techatrix
487281f8e2 improve variable lookup performance 2023-03-14 15:16:30 +00:00
Techatrix
f5897569c4 do not store Handle pointer in Analyser 2023-03-14 15:16:30 +00:00
Techatrix
9d7012596a replace unnecessary std.ArrayListUnmanaged in document scope 2023-03-14 15:16:30 +00:00
Techatrix
ea02e4364f remove had_root global 2023-03-14 15:16:30 +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
865e5efe8b refactor semantic tokens 2023-03-14 14:56:11 +00:00
Techatrix
bbc082d102 update config gen to work with vscode-zig 2023-03-14 14:27:18 +00:00
Techatrix
dc7efa591c resolve relative include directories 2023-03-14 14:25:13 +00:00
Auguste Rame
ef4a0607fb
Add some more basic overflow checks (#1055) 2023-03-12 01:53:05 -05: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
c203110555
more tracy calls (#1052) 2023-03-11 13:43:14 -05:00
Techatrix
ff467f9878
InternPool: add more helper functions and debug formatting (#1043) 2023-03-11 12:37:06 -05:00
Techatrix
333fcb5633
minor semantic token fixes (#1044)
* improve analysis and highlighting of error sets

* emit semantic token for unresolved identifiers

* minor semantic token fixes
2023-03-11 12:36:48 -05:00
Álan Crístoffer
f234b91a50
Fixes nix standard derivation. (#1042)
* Adds a formatter for nix. Use `nix fmt`.

* Fixes nix standard derivation.

The standard derivation has been broken for quite some time now, but I
didn't use it, so I didn't care to fix it. Today I cared. It now builds
and is updated for the new packaging system.
2023-03-10 20:27:50 -05:00
Techatrix
3c26892c7e
limit maximum detail length at 1024 bytes (#1048) 2023-03-10 20:06:17 -05:00
Techatrix
b8eb6aab7f
Merge pull request #1045 from Techatrix/memory-lifetime
fix leak in `openDocument`
2023-03-08 21:31:11 +00:00
Techatrix
ed91fd3823 fix leak in openDocument 2023-03-08 21:52:26 +01:00
Techatrix
42a8d1adb7 add more Ast tests 2023-03-07 09:38:18 -08:00
Techatrix
d5ac6b9734 rework nodesAtLoc 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
7a7928f466 fix locIntersect 2023-03-07 09:38:18 -08:00
Techatrix
0ee947e8a6 add Ast to callback field in iterateChildren 2023-03-07 09:38:18 -08:00
Techatrix
0f3319315f implement textDocument/semanticTokens/range 2023-03-07 09:29:39 -08:00
Techatrix
ce9ae21cf4 fix lastToken on tagged union with invalid members 2023-03-07 09:21:46 -08:00
Auguste Rame
2ce59a3bc3
Branching type resolution (#1031)
* Branching type resolution

* Add condition information to completions (borked rn i give up)

* Fix completion conditional descriptor

* Multi gotodef

* Multi hover

* Reenable references

* Fix getAllTypesWithHandles
2023-03-07 12:17:45 -05:00
Techatrix
515a0e4727
Merge pull request #1039 from Techatrix/skip-failed-cimports
skip failed cimports on garbage collection
2023-03-07 14:01:38 +00:00
Techatrix
8e6609e0f5 skip failed cimports on garbage collection 2023-03-07 12:28:20 +01:00
Techatrix
421a05ae5f
send response on shutdown request (#1037) 2023-03-06 13:34:09 -05:00
Techatrix
1fb7bfc63f update failing semantic tokens test 2023-03-06 09:32:03 -08:00
Techatrix
bb1b1dd102 update version data 2023-03-06 09:32:03 -08:00
Álan Crístoffer
8edb8bcac3
Fixes nix build. (#1032)
* fix nix build

* fix nix build
2023-03-05 14:38:27 -05:00
dec05eba
76ee4b80fd
Fix crash if zls.json is empty (#1034)
Fixes #1033
2023-03-05 14:09:39 -05:00