implements PLN-0137 (4/7) document-formatting
Advertise full-document formatting only. The formatter reprints the token stream and changes indentation by four spaces where brace or parenthesis nesting changes. Doc text-block interiors stay as written, comments stay on their current line, and declarations are not reordered. Range formatting and on-type formatting stay off.
This commit is contained in:
+8
@@ -184,6 +184,14 @@ public interface FrontendLanguageService {
|
||||
return selectionRanges(request, offsets);
|
||||
}
|
||||
|
||||
default boolean formattingSupported() {
|
||||
return false;
|
||||
}
|
||||
|
||||
default java.util.Optional<String> formatDocument(final FrontendDocumentRequest request) {
|
||||
return java.util.Optional.empty();
|
||||
}
|
||||
|
||||
default boolean codeActionsSupported() {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user