diff --git a/src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/RunCodeActionService.cs b/src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/RunCodeActionService.cs index 7b6229b620..9a362910ee 100644 --- a/src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/RunCodeActionService.cs +++ b/src/OmniSharp.Roslyn.CSharp/Services/Refactoring/V2/RunCodeActionService.cs @@ -68,6 +68,11 @@ public override async Task Handle(RunCodeActionRequest re changes.AddRange(fileChangesResult.FileChanges); solution = fileChangesResult.Solution; } + else + { + o.Apply(this.Workspace, CancellationToken.None); + solution = this.Workspace.CurrentSolution; + } if (request.WantsAllCodeActionOperations) {