zls
zls copied to clipboard
A language server for Zig supporting developers with features like autocomplete and goto definition
Would allow us to track performance improvements / regressions and test new performance improvement ideas with ease.
Thanks @slimsag for sharing this idea [here](https://www.reddit.com/r/Zig/comments/139x472/comment/jj5bw73/?utm_source=share&utm_medium=web2x&context=3)!! For example, If I hover on the `|bruh|` here: ```zig if (thing) |bruh| { ... } else { ... } ``` a hover...
### Zig Version 0.11.0-dev.4002+7dd1cf26f ### Zig Language Server Version 8da21e159e3dec9bc6fe01320313cf8108ce4d0b ### Steps to Reproduce Paste this code into an editor with zls running as lsp. Send a textDocument/hover request of...
Here I have a simple example that checks whether `T` contains the field `x` at comptime. This of course doesnt have to be limited to fields, but everything in `std.meta.trait`....
Feature similar to https://github.com/zigtools/zls/pull/1067 but for `type` arguments. Simple repro: ```zig const Bar = struct { x: usize, fn baz(self: @This()) void { _ = self; } }; fn Foo(comptime...
See [this file](https://zigtools-releases.nyc3.digitaloceanspaces.com/zls/index.json)
I'm sorry honey, it's [just not working out](https://www.youtube.com/watch?v=dQw4w9WgXcQ). Our relationship worked when we were younger, but we're both older now and [we've grown apart](https://www.youtube.com/watch?v=dQw4w9WgXcQ). Let's just make the CI a...
Since zls already auto format the unused variable and for semicolon it exactly gives the correct message in which column semicolon is missing so auto completing this would be a...
Currently hover/goto (ctrl+hover in vscode) shows the first token in the declaration. For example with `std.builtin.AtomicOrder`, goto hover over `std` displays `pub` and over `builtin` displays `const` as those keywords...
 As you can see, the `_` is orange in the returned highlight response, I'm not sure I've seen this in other lsps. Is there any formatting/transformation...