Techatrix

Results 202 comments of Techatrix

Both formatting providers behave identical. `extension` means that the vscode-zig extension runs `zig fmt` behind the scenes. `zls` means that the vscode-zig extension will ask ZLS to format the file...

> Sorry, I didn't really understand the answer. Isn't, say, `zig.zls.enableAutofix` part of the formatting? If not, then what is it part of? Autofix may appear as a feature build...

This should have hopefully been fixed by https://github.com/ziglang/vscode-zig/pull/222 which is in the vscode-zig 0.5.9 release. If this still happens, feel free to report this to [vscode-zig](https://github.com/ziglang/vscode-zig/issues).

Receiving configuration values through `workspace/didChangeConfiguration` is part of the older "push model" that has been mostly replaced by the "pull model" with [`workspace/configuration`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_configuration). The latter has the ability to request...

The underlying [Zig issue](https://github.com/ziglang/zig/issues/21905) has been fixed. Updating to Zig 0.15.1 and ZLS 0.15.0 should resolve this issue.

ZLS 0.14.0 has been released: - [Release Notes](https://zigtools.org/zls/releases/0.14.0/) - [GitHub Release](https://github.com/zigtools/zls/releases/tag/0.14.0)

This issue is tracked by https://github.com/zigtools/zls/issues/2018.

Zig does not provide the error message with a source location. See https://github.com/ziglang/zig/issues/22930

@mfield Do you plan to apply the suggested changes anytime soon? If not, I'd be happy to apply them myself. This PR is a very nice improvement that would be...

The completion tests for struct initialization have some examples of this [here](https://github.com/zigtools/zls/blob/4e01c08f558ea07462aaa7b71d2a24f86f47a855/tests/lsp_features/completion.zig#L1634).