zls icon indicating copy to clipboard operation
zls copied to clipboard

A language server for Zig supporting developers with features like autocomplete and goto definition

Results 332 zls issues
Sort by recently updated
recently updated
newest added

Add an option in the config to turn some zig errors into LSP warnings instead of errors For example: Unused variable/parameter etc Used variable with a `_ = my_var;` stmt...

enhancement

### Zig Version 0.14.0-dev.2851+b074fb7dd ### ZLS Version 6a16b27 ### Client / Code Editor / Extensions Zed (linked to zls 6a16b27), Neovim (linked to `zvm -i master --zls`) I should also...

bug

LSP [semantic tokens](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_semanticTokens) offer a predefined set of semantic token types and semantic token modifiers. ZLS is currently emitting mostly standard token types with relatively [few exceptions](https://github.com/zigtools/zls/blob/6c6923d7b1c4984554dade667f664d21f42b2b6c/src/features/semantic_tokens.zig#L36-L43). The problem is...

enhancement
priority:low

### Zig Version 0.14.0-dev.2638+04c9f50ae ### ZLS Version 0.14.0-dev.345+f7888fc7 ### Client / Code Editor / Extensions _No response_ ### Steps to Reproduce and Observed Behavior ```zig pub fn main() void {...

bug

When working on a structure, ZLS offers completion for methods inside a *non-method*. What I mean by that is that if a function defined on a structure isn't a method...

enhancement

### Zig Version 0.14.0-dev.2609+41786fabf ### ZLS Version 0.14.0-dev.329+19421e0f ### Client / Code Editor / Extensions vscode ### Steps to Reproduce and Observed Behavior ```zig pub fn foo(a: u32, b: u32,...

bug

### Zig Version 0.14.0-dev.2578+ec60156f1 ### ZLS Version 0.14.0-dev.328+b36f7c4b ### Client / Code Editor / Extensions _No response_ ### Steps to Reproduce and Observed Behavior trigger some error that zls can...

bug

The current implementation of `source.organizeImports` (#2051) always places the imports at the top of the file. Sometimes you find code that has all imports at the bottom of the file...

enhancement

```zig const S = struct { pub fn foo( alpha: u32, beta: u32, ) void { _ = alpha; _ = beta; } }; ``` When hovering over `foo` displays...

bug
priority:low

Before: ```zig const foo = @as(T, something); const bar = T{}; ``` After: ```zig const foo: T = something; const bar: T = .{}; ``` This feature has been suggested...

good first issue
feature