[clang-tools-extra] [clangd] Add support for textDocument/rangesFormatting (LSP 3.18) (PR #80180)

Tom Praschan via cfe-commits cfe-commits at lists.llvm.org
Thu May 22 04:27:00 PDT 2025


================
@@ -851,10 +851,23 @@ struct DocumentRangeFormattingParams {
 
   /// The range to format
   Range range;
+
+  /// The list of ranges to format
+  std::optional<std::vector<Range>> ranges;
----------------
tom-anders wrote:

Ah yes, this is from an old version of the spec, where `textDocument/rangeFormatting`  was extended with this new `ranges` parameter. But in the latest version, there's now a separate `textDocument/range**s**Formatting` request. 

I removed the field now.

https://github.com/llvm/llvm-project/pull/80180


More information about the cfe-commits mailing list