LanguageServer.jl
LanguageServer.jl copied to clipboard
Move import sorting to JuliaFormatter.jl?
@fredrikekre @pfitzseb I was wondering if the code action implemented in https://github.com/julia-vscode/LanguageServer.jl/pull/1076 could instead be moved to JuliaFormatter.jl, and then called via LanguageServer.jl? Having it implemented in LanguageServer directly makes it a bit tricky to automate things – like using that feature it in a pre-commit hook or in CI testing.
I thought that was already part of the formatter (too).
I don't think so, sadly. It's in a few of the style guides but you still need to perform the sorting manually. As far as I can tell you have written the only implementation of an import sorter.