Commit Graph

1618 Commits

Author SHA1 Message Date
Álan Crístoffer
347aee47b3 Removes default.nix 2023-04-30 21:37:07 +02:00
Lee Cannon
b4bcbeea55
Merge pull request #1154 from sagehane/nix
flake.lock: Update
2023-04-29 05:10:22 -07:00
Lee Cannon
dd2fb2d9e1
Merge pull request #1159 from sagehane/minimum
build.zig: Update minimum Zig version
2023-04-29 05:09:59 -07:00
Sage Hane
71a202f12a
build.zig: Update minimum Zig version
Requires the minimum version to support https://github.com/ziglang/zig/pull/15278
2023-04-29 12:19:42 +02:00
Sage Hane
733881bde4
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/c58e6fbf258df1572b535ac1868ec42faf7675dd' (2023-04-13)
  → 'github:NixOS/nixpkgs/358a179550508bf2dafdf1657a94b7f65d91c4bf' (2023-04-28)
• Updated input 'zig-overlay':
    'github:mitchellh/zig-overlay/097485122ab0a997ed094a26c11d437a86f4cd93' (2023-04-14)
  → 'github:mitchellh/zig-overlay/f555394c03b10e455b465a6c657c5a6ddd89c5a8' (2023-04-29)
2023-04-29 11:41:29 +02:00
travisstaloch
1ef3944cb0
chore: use new @memset api (#1156) 2023-04-27 18:27:59 -04:00
Lee Cannon
50f0753a0e
Merge pull request #1153 from nullptrdevs/update_config_gen
Update `config_gen` and data
2023-04-26 09:35:47 +01:00
nullptrdevs
30c49e11df Update config_gen and data 2023-04-26 00:42:38 -07:00
Lee Cannon
71e819c56a
Merge pull request #1148 from nullptrdevs/misc-fixes
Mem fixes
2023-04-24 14:59:57 +01:00
Lee Cannon
d4bc2c2349
Merge pull request #1150 from Techatrix/gen-data-files
update config gen according to new `std.http` changes
2023-04-24 14:58:52 +01:00
Lee Cannon
7b79a99f6d
Merge pull request #1152 from artix-boi/master
Fix to make zls compile for 0.11.0-dev.2775+21aa55d34.
2023-04-24 13:48:46 +01:00
Mridul Krishna Mishra
d122cbf157
Fix to make zls compile for 0.11.0-dev.2775+21aa55d34. 2023-04-24 17:19:48 +05:30
Techatrix
5fd5ae0677 update config gen according to new std.http changes 2023-04-23 19:11:04 +02:00
nullptrdevs
5519b3a2c0 Mem fixes
* `gpa.deinit()` now returns an enum
* avoid double free when `--config-path` is specified
* avoid leaking memory in `Server.create` if `configChanged` returns err
2023-04-22 06:47:36 -07: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
Lee Cannon
811de07706
Merge pull request #1141 from Techatrix/intern-pool
InternPool: add c_char type
2023-04-17 21:55:12 +01:00
Techatrix
c77e3cebeb update data files 2023-04-17 21:53:35 +01:00
Techatrix
31aec11b38 InternPool: add c_char type 2023-04-17 22:14:41 +02:00
Casey Banner
3ae56929fc
Implement $/setTrace and add --enable-message-tracing (#1135) 2023-04-16 12:04:42 -04:00
Lee Cannon
421ae86917
Merge pull request #1133 from sagehane/nix
flake.lock: Update
2023-04-14 18:50:44 +01:00
Sage Hane
f683f7a0de
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/6b70761ea8c896aff8994eb367d9526686501860' (2023-04-12)
  → 'github:NixOS/nixpkgs/c58e6fbf258df1572b535ac1868ec42faf7675dd' (2023-04-13)
• Updated input 'zig-overlay':
    'github:mitchellh/zig-overlay/320441bdd26a344d97020cb19f17983ed972923b' (2023-04-13)
  → 'github:mitchellh/zig-overlay/097485122ab0a997ed094a26c11d437a86f4cd93' (2023-04-14)
2023-04-14 18:39:46 +02:00
Jakub Konka
5457cec8da
update to latest zig: add c_char type (#1124)
* update to latest zig: add c_char type

* Bump version, add c_char to isTypeIdent
2023-04-13 22:02:18 -04:00
Angus Dippenaar
4111d28073 flake update 2023-04-13 13:25:35 +01:00
Lee Cannon
7978485aaf
Merge pull request #1116 from nullptrdevs/nested-struct-init
Nested struct init fields completion
2023-04-13 13:14:20 +01:00
Lee Cannon
fe4c9d5a8b
Merge pull request #1122 from arp242/prefer-text
Use plain text if the client tells zls it's preferred
2023-04-13 13:13:15 +01:00
Ali Chraghi
42d582c0a2 Update configuration.zig 2023-04-13 09:58:42 +01:00
Martin Tournoij
622efdcd6a
Use plain text if the client tells zls it's preferred
LSP clients send a list of supported formats for definition and
completion; the specification says "the order describes the preferred
format of the client."[1]

My client sends:

	'hover': {'contentFormat': ['plaintext', 'markdown']},

So it should prefer plaintext, using markdown if that's not supported by
the server. zls behaved slightly different: it would use Markdown if it
appears at all in the list of supported formats.

This fixes it so that it will use plain text if that appears before
'markdown' in the list.

[1]: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_hover
2023-04-13 07:33:43 +02:00
Techatrix
d2287816a7 disable assertions in smallestEnclosingSubrange 2023-04-12 23:44:39 +01:00
nullptrdevs
99cd67e183 Update build to the new zig build API 2023-04-12 23:16:25 +01:00
nullptrdevs
735f884394 Nested struct init fields completion 2023-04-05 10:57:06 -07:00
nullptrdevs
55b1aeb6f7
Avoid accessing inactive union fields in completeDot (#1115)
As reported on Discord by CodotakuYT:
```zig
fn populate(T: type, index: i32) T {
    _ = index;
    @typeInfo(T).struct.
}
```
```
thread 17384 panic: access of union field 'ast_node' while field 'param_payload' is active
C:\Users\taoua\zls\src\features\completions.zig:875:61: 0x7ff68070caac in completeDot (zls.exe.obj)
                const node_data = nodes_data[local_decl.decl.ast_node];
```
2023-04-05 10:28:21 -04:00
Auguste Rame
7814a05921
Remove format lt 512 diff restriction (#1109) 2023-04-04 16:23:44 -04:00
Auguste Rame
0f85c49e46
Add WASI to CI builds (#1113) 2023-04-04 16:23:33 -04:00
Auguste Rame
ace6d7f32b
Remove outdated diagnostics check (#1106) 2023-04-03 13:42:22 -04:00
Techatrix
b970dd20a3
remove zls.json (#1108) 2023-04-03 11:22:51 -04:00
Auguste Rame
471d971d1d
Merge pull request #1000 from Techatrix/stage2-zir
Embed AstGen into ZLS
2023-04-01 23:08:40 -04:00
Auguste Rame
99af009232
Disable build file config runs for WASI (#1102) 2023-04-01 23:07:38 -04:00
Techarix
018569888f explain how AstGen will diverge from zig codebase 2023-04-01 23:03:51 +02:00
Techarix
4215edbc33 add support for running ast-check without zig 2023-04-01 23:03:51 +02:00
Techarix
c06cf6e95c add zig code for generating Zir 2023-04-01 22:44:56 +02:00
Auguste Rame
8b5c649805
Add anytype resolution based on call references (#1067) 2023-03-31 11:54:46 -04:00
Auguste Rame
c217502670
Make Analyser use its own arena (#1101) 2023-03-29 14:36:32 -04:00
Techatrix
9a7d262e6c only include snippet completions when enable_snippet is set 2023-03-26 16:20:15 +01:00
Techatrix
90b468ac9f update snippet data 2023-03-26 16:20:15 +01:00
Techatrix
29037f2f05 disable .fixall autofix mode 2023-03-26 16:19:38 +01:00
Techatrix
283ca0006d Apply suggestions from code review
Co-authored-by: Lee Cannon <leecannon@leecannon.xyz>
2023-03-26 16:19:00 +01:00
Techatrix
4b042a562a exclude default cimport declarations from completions 2023-03-26 16:19:00 +01:00