Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for provideDocumentRangesFormattingEdits. #13020

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

tsmaeder
Copy link
Contributor

What it does

Adds the optional function Support DocumentRangeFormattingEditProvider.provideDocumentRangesFormattingEdits(...) to the VS Code API. Since our current version of the Monaco editor does not support this function yet, the change is entirely non-functional. We'll have to provide an implementation once we've uplifted the Monaco implementation.

Fixes #12939

How to test

There is nothing to test, really. In order to make sure nothing is broken, I selected a range in a json file and invoked "Format Selection", which worked fine.

Contributed on behalf of STMicroelectronics

Follow-ups

Review checklist

Reminder for reviewers

…heia#12939

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

And thanks for fixing the typo in the CHANGELOG ;-)

@tsmaeder tsmaeder merged commit 69dbf42 into eclipse-theia:master Oct 23, 2023
13 checks passed
@vince-fugnitto vince-fugnitto added this to the 1.43.0 milestone Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[vscode] Support DocumentRangeFormattingEditProvider provideDocumentRangesFormattingEdits
3 participants