Open
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Problem
VSCode has a format section
command this is currently not supported by this extension.
If supported this allows
- Selecting a part of text and only format that
- allows
editor.formatOnSaveMode
withmodificationsIfAvailable
to only format modified lienes (if I understood correctly) - allows formatting while typing (I think this also need to define what characters trigger formating)
Solution
It is said in the vscode extensions docs that the extension need to respond to the textDocument/rangeFormatting
request.
Alternatives
For formatOnSave
the mode can be set to file
, to allow formatting on save, without the benefit of formating only changed text.