zls
zls copied to clipboard
A language server for Zig supporting developers with features like autocomplete and goto definition
Using the TS language server as a reference indicates that we should include variables in functions and blocks in our `documentSymbol` results etc.
### Zig Version 0.15.0-dev.369+1a2ceb36c ### ZLS Version 0.15.0-dev.64+e81b740 ### Client / Code Editor / Extensions Helix ### Steps to Reproduce and Observed Behavior ```elvish mkdir -p main && cd main...
This is the experience I get when I type something in TigerBeetle's replica.zig https://github.com/user-attachments/assets/b3b36e10-0b28-4cf1-ad48-d38d1b472979 Note how the red squiggly "chases" my cursor, because I can type faster than the time...
For example: ```zig const std = @import("std"); const S = struct { i: i32 }; pub fn main() void { var runtime_bool: bool = true; _ = &runtime_bool; const foo:...
Here is how this could look like:  FYI: I just noticed that goto definition on a function declaration will jump to the doctest. I don't think that's been intentional...
### Zig Version 0.15.0-dev.646+ef35c3d5f ### ZLS Version 0.15.0-dev.129+bb6d6473 ### Client / Code Editor / Extensions vscode 1.100.2 ### Steps to Reproduce and Observed Behavior Taking this code path https://github.com/zigtools/zls/blob/f6580bf87eaf67bd37d776f04d780016f121e647/src/Server.zig#L1056 I've...
Self-explanatory. This would help improve UX and debugging for `build.zig` package resolution failures. We could maybe even add a way to see what packages zls has picked up, such as...
### Zig Version 0.14.0 ### ZLS Version Entering that command is not returning anything, it tells me it can't find it. I otherwise have absolutely no idea how to get...
Related to #1476 (that has been reverted, so no semicolon insertion exists currently). Maybe overall a better solution to inserting a semicolon if getting "expected ';' " error(s) - is...
It would be really nice if there was a "move this struct to a new file" LSP action that becomes available when you select `const Foo = struct {...`. This...