Skip to content

Allow applyCodeActionCommand to take an array#19870

Merged
2 commits merged into
masterfrom
applyCodeActionCommand_array
Nov 9, 2017
Merged

Allow applyCodeActionCommand to take an array#19870
2 commits merged into
masterfrom
applyCodeActionCommand_array

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Nov 9, 2017

Fixes #19844

@ghost ghost requested a review from amcasey November 9, 2017 14:44
@ghost ghost force-pushed the applyCodeActionCommand_array branch from b4cf1f7 to 8fc9b14 Compare November 9, 2017 15:55
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Nov 9, 2017

we need to port this to release-2.6

Comment thread src/server/session.ts Outdated
project.getLanguageService().applyCodeActionCommand(file, command).then(
({ successMessage }) => { output(/*success*/ true, successMessage); },
result => {
output(/*success*/ true, isArray(result) ? result.map(res => res.successMessage).join("\n\n") : result.successMessage);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I assume there's no need to use a platform-specific linebreak.

@ghost ghost merged commit b949405 into master Nov 9, 2017
@ghost ghost deleted the applyCodeActionCommand_array branch November 9, 2017 21:17
ghost pushed a commit that referenced this pull request Nov 9, 2017
* Allow applyCodeActionCommand to take an array

* Use this.host.newLine
ghost pushed a commit that referenced this pull request Nov 9, 2017
* Allow applyCodeActionCommand to take an array

* Use this.host.newLine
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
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.

2 participants