You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 error
An enum option would make the most sense, by default it'll be "error" (current behaviour) but can also be "warn" (warning diagnostics) or "ignore" to not show these as diagnostics
I know there is the autofix but I find it intrusive and also it doesn't work well, sometimes it adds the statements but sometimes it just doesn't, or opens up a code action menu to individually select which variables to ignore.
The text was updated successfully, but these errors were encountered:
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 errorAn enum option would make the most sense, by default it'll be "error" (current behaviour) but can also be "warn" (warning diagnostics) or "ignore" to not show these as diagnostics
I know there is the autofix but I find it intrusive and also it doesn't work well, sometimes it adds the statements but sometimes it just doesn't, or opens up a code action menu to individually select which variables to ignore.
The text was updated successfully, but these errors were encountered: