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

Fix for #16771. #17698

Merged
merged 1 commit into from Jan 23, 2017
Merged

Fix for #16771. #17698

merged 1 commit into from Jan 23, 2017

Conversation

jmdowns2
Copy link
Contributor

Now insertCursorAtEndOfEachLineSelected works with multiple selections.

@msftclas
Copy link

Hi @jmdowns2, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

let newSelections = new Array<ISelection>();
let selections = editor.getSelections();

for (var i = 0; i < selections.length; ++i) {
Copy link
Member

@yajiex yajiex Dec 23, 2016

Choose a reason for hiding this comment

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

This can be simplified to let newSelections = selections.map(selection => this.getCursorsForSelection(selection, editor));

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.

None yet

5 participants