-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@roblourens @rebornix What can I do to merge this pull request? |
} | ||
} | ||
|
||
if (edits) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
@malt03 just two tiny recommendations, let's fix them and then merge. |
@rebornix Thank you a lot!! |
@rebornix When will this be merged? |
@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. |
Overview
This PR will add a command named 'Reindent Selected Lines'.
#19847
#28658 (comment)
Screenshot
Note