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

Adding [Reindent Selected Lines] command. #47116

Merged
merged 4 commits into from
May 2, 2018
Merged

Conversation

malt03
Copy link

@malt03 malt03 commented Apr 3, 2018

Overview

This PR will add a command named 'Reindent Selected Lines'.
#19847
#28658 (comment)

Screenshot

reindentselectedlines

Note

@msftclas
Copy link

msftclas commented Apr 3, 2018

CLA assistant check
All CLA requirements met.

Copy link

@nzec nzec left a comment

Choose a reason for hiding this comment

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

LGTM!

@malt03
Copy link
Author

malt03 commented Apr 11, 2018

@roblourens @rebornix What can I do to merge this pull request?

@rebornix rebornix self-requested a review April 17, 2018 18:15
}
}

if (edits) {
Copy link
Member

Choose a reason for hiding this comment

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

edits is an array so this condition is always true, let's check its length.

startLineNumber--;
}
let editOperations = getReindentEditOperations(model, startLineNumber, endLineNumber) || [];
for (let editOp of editOperations) {
Copy link
Member

Choose a reason for hiding this comment

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

maybe edits.push(...editOperations) is good enough.

@rebornix
Copy link
Member

@malt03 just two tiny recommendations, let's fix them and then merge.

@malt03
Copy link
Author

malt03 commented Apr 18, 2018

@rebornix Thank you a lot!!

@malt03
Copy link
Author

malt03 commented Apr 23, 2018

@rebornix When will this be merged?

@rebornix
Copy link
Member

rebornix commented May 2, 2018

@malt03 didn't find time to review my issues/prs last week. Merged it now, you can see it from Friday's Insdiers build and Stable release for May. Sorry that I didn't make it in April release.

@rebornix rebornix merged commit faeb4f4 into microsoft:master May 2, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants