This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Add multiRange support to textDocument/rangeFormatting
DraftPublic

Authored by tom-anders on May 18 2023, 3:16 AM.
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
None
Summary

Diff Detail

Event Timeline

tom-anders created this revision.May 18 2023, 3:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2023, 3:16 AM
nridge added a subscriber: nridge.May 18 2023, 10:38 PM
daiyousei-qz added inline comments.May 22 2023, 6:44 PM
clang-tools-extra/clangd/ClangdLSPServer.cpp
885

A potential bug here. If client send an empty ranges vector, the whole file will be formatted.