Skip to content

Support batch range formatting #158776

@c-claeys

Description

@c-claeys

With Editor: Format On Save Mode set to modifications, VSCode will sequentially send requests to its rangeFormatting provider(s). It'd be nice if the whole list of ranges could be sent at once instead of sequentially, allowing the formatter to handle this batch as it sees fit. This could be achieved by modifying registerDocumentRangeFormattingEditProvider to take an additional optional metadata parameter that the provider can use to express support for this multiRange mode.

Metadata

Metadata

Assignees

Labels

api-finalizationfeature-requestRequest for new features or functionalityformattingSource formatter issuesinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions