LanguageServer.jl
LanguageServer.jl copied to clipboard
JuliaFormatter `ignore` list is ignored
You can exclude some files from formatting with ignore = [...] in your .JuliaFormatter.toml. It seems like LanguageServer / VS Code's "Format on Save" will ignore this, and format the file anyway.
I suspect it's because LanguageServer calls JuliaFormatter.format_text, which doesn't know about the file identity of the code it's formatting?
https://github.com/julia-vscode/LanguageServer.jl/blob/ff8eb2ab108ce31bd1ded59d8713a444a6b8c9c4/src/requests/features.jl#L150-L179