Skip to content

Commit

Permalink
Merge pull request #1724 from Samirat/samirat/add_generic_code_action…
Browse files Browse the repository at this point in the history
…_support

Add support for code actions besides ApplyChangesOperation's
  • Loading branch information
filipw authored Sep 15, 2020
2 parents d21cf0a + ace4b36 commit 23d6ced
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ public override async Task<RunCodeActionResponse> Handle(RunCodeActionRequest re
changes.AddRange(fileChangesResult.FileChanges);
solution = fileChangesResult.Solution;
}
else
{
o.Apply(this.Workspace, CancellationToken.None);
solution = this.Workspace.CurrentSolution;
}

if (request.WantsAllCodeActionOperations)
{
Expand Down

0 comments on commit 23d6ced

Please sign in to comment.