feat: support VSCode API: provideDocumentRangesFormattingEdits#4116
feat: support VSCode API: provideDocumentRangesFormattingEdits#4116
Conversation
Walkthrough此拉取请求引入了在 Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🔇 Additional comments (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4116 +/- ##
=======================================
Coverage 54.25% 54.25%
=======================================
Files 1598 1598
Lines 97561 97561
Branches 19948 19948
=======================================
Hits 52935 52935
Misses 37076 37076
Partials 7550 7550
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Types
Background or solution
目前使用的 monaco 版本还不支持这个函数,因此这里暂时空实现,等后续升级 monaco 版本时再提供实现
Changelog
Summary by CodeRabbit
DocumentRangeFormattingEditProvider接口中新增了可选方法provideDocumentRangesFormattingEdits,允许一次性格式化文档中的多个范围,提高了格式化请求的效率。