What is sorting my imports? and how do i turn it off?

I am using vscode zig extension, what is sorting my imports and how do I turn it off? I don’t think zig fmt is doing it?

Sorting imports is an optional ZLS feature.
If enabled it’ll do that in addition to autorunning zig fmt.

Can you change the settings for ZLS in the extension?

yeah it was the zls extension. Disabled using:

{
    "editor.codeActionsOnSave": {
        "source.organizeImports": "never"
    }
}
3 Likes