This splits up the external formatter class as it is too large and also hard to test with how the IJ class extension works.
I have created a DprintFormattingTask which mirrors the methods from the AsyncFormattingTask. Unfortunately, I cannot extend it directly as it is package private to the AsyncDocumentFormattingService.
Also added tests and fixed up the range and cancel implementations to work should they ever be enabled.
Overview
This splits up the external formatter class as it is too large and also hard to test with how the IJ class extension works.
I have created a
DprintFormattingTask
which mirrors the methods from theAsyncFormattingTask
. Unfortunately, I cannot extend it directly as it is package private to theAsyncDocumentFormattingService
.Also added tests and fixed up the range and cancel implementations to work should they ever be enabled.