Techatrix
Techatrix
My reasoning why I wanted to enable autofix by default in #877 was to show ZLS users that such a feature exists instead of hoping that they stumble on it...
I always wanted to have comment that showed that an edit was performed by autofix but never got around to implementing it. > could even add an editor warning for...
> @Techatrix mentioned improving UX by removing the autofix option entirely and instead relying on the `codeActionKind` capability and `source.fixAll` (LSP's name for autofix) being present or not. I've worked...
ZLS could resolve the wrong function which may produce a a false-positive.
Its just a hypothetical so maybe this works fine. I can give this idea a chance and see if there are issues.
ZLS does not use Zig to perform code analysis (semantic analysis to be specific). Integrating semantic analysis into ZLS is a large and complex task. Related issues: #551 #552 https://github.com/ziglang/zig/issues/615...
> It'd require some rework but should this be extended to anon struct inits? Could give an explanation on how completions would look like with anon struct inits? > Should...
@nullptrdevs I could take care of rebasing this PR if you'd like.
I've removed the second copy of every test that tested with and without snippets and instead used the new `testCompletionTextEdit` function to test completion is performing the expected text edit....
I have found an issue. In the following example I am doing a comparison which should only complete to `alpha` but completes to `{ .alpha = }`. ```zig const Birdie...