Initial checklist
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 with modificationsIfAvailable 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.
Initial checklist
Problem
VSCode has a
format sectioncommand this is currently not supported by this extension.If supported this allows
editor.formatOnSaveModewithmodificationsIfAvailableto only format modified lienes (if I understood correctly)Solution
It is said in the vscode extensions docs that the extension need to respond to the
textDocument/rangeFormattingrequest.Alternatives
For
formatOnSavethe mode can be set tofile, to allow formatting on save, without the benefit of formating only changed text.