Skip to content

Commit 23d6ced

Browse files
authored
Merge pull request #1724 from Samirat/samirat/add_generic_code_action_support
Add support for code actions besides ApplyChangesOperation's
2 parents d21cf0a + ace4b36 commit 23d6ced

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/RunCodeActionService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ public override async Task<RunCodeActionResponse> Handle(RunCodeActionRequest re
6868
changes.AddRange(fileChangesResult.FileChanges);
6969
solution = fileChangesResult.Solution;
7070
}
71+
else
72+
{
73+
o.Apply(this.Workspace, CancellationToken.None);
74+
solution = this.Workspace.CurrentSolution;
75+
}
7176

7277
if (request.WantsAllCodeActionOperations)
7378
{

0 commit comments

Comments
 (0)