Skip to content

Adding [Reindent Selected Lines] command. - #47116

Merged
Peng Lyu (rebornix) merged 4 commits into
microsoft:masterfrom
malt03:master
May 2, 2018
Merged

Peng Lyu (rebornix) merged 4 commits into
microsoft:masterfrom
malt03:master

Conversation

@malt03

@malt03 Koji Murata (malt03) commented Apr 3, 2018 •

Copy link
Copy Markdown

Overview

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

Screenshot

reindentselectedlines

Note

@msftclas

Microsoft Contribution License Agreements (msftclas) commented Apr 3, 2018 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@nzec Aditya Dutt (nzec) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@malt03

Copy link
Copy Markdown
Author

roblourens Peng Lyu (@rebornix) What can I do to merge this pull request?

@rebornix
Peng Lyu (rebornix) self-requested a review April 17, 2018 18:15
}
}

if (edits) {

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@malt03

Koji Murata (malt03) commented Apr 18, 2018 •

Copy link
Copy Markdown
Author

Peng Lyu (@rebornix) Thank you a lot!!

@malt03

Copy link
Copy Markdown
Author

Peng Lyu (@rebornix) When will this be merged?

@rebornix

Copy link
Copy Markdown
Contributor

Koji Murata (@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
Peng Lyu (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