You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since swift-syntax no longer depends on the C++ parser library and thus swift-format also doesn’t, we can use swift-format to format an entire document.
Fixesswiftlang#576
rdar://96159694
throwResponseError(code:.requestFailed, message:"swift-format does not support keeping trailing whitespace; set format option to trim trailing trivia to run the formatter")
1501
+
}
1502
+
if req.options.insertFinalNewline ==false{
1503
+
throwResponseError(code:.requestFailed, message:"swift-format always inserts a final newline to the file; set option to insert a final newline to run the formatter")
1504
+
}
1505
+
if req.options.trimFinalNewlines ==false{
1506
+
throwResponseError(code:.requestFailed, message:"swift-format always trims final newlines; set option to trim final newlines to run the formatter")
0 commit comments