Open
Description
Hi, just started exploring dprint and tried this extension, formatting the document works fine but when I try to format a selection VScode complains about dprint not being a valid formatter for [current file type].
I could not understand if this was a limitation with the extension(/dprint) or a bug?
Minimal repro:
- Create a new folder
- Init dprint with default settings
- add newlines at top of dprint.json
> Format document
works as exepcted- highlighting the newlines and selecting
> Format selection
(cmd+k cmd+f) throws in VScode with error:
"Extension 'Dprint Code Formatter' is configured as formatter but it cannot format 'JSON'-files"
My setup:
dprint: 0.37.1 (homebrew install)
VScode: 1.79.0
dprint.dprint extension: v0.14.0
Metadata
Metadata
Assignees
Labels
No labels