Skip to content

Commit

Permalink
Handle CompletedWithoutData state for light bulb
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Mar 29, 2022
1 parent 71449b6 commit 462d5ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public CSharpRenameFileToMatchTypeRefactoring(VisualStudioInstanceFactory instan
{
}

[WpfFact(Skip = "https://github.com/dotnet/roslyn/issues/60463"), Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)]
[WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)]
public void RenameFileToMatchType_ExistingCode()
{
var project = new ProjectUtils.Project(ProjectName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async Task CPSProject_GeneralPropertyGroupUpdated()
VerifyPropertyOutsideConfiguration(await GetProjectFileElementAsync(project, HangMitigatingCancellationToken), "LangVersion", "latest");
}

[IdeFact(Skip = "https://github.com/dotnet/roslyn/issues/60463")]
[IdeFact]
public async Task LegacyProject_AllConfigurationsUpdated()
{
var project = ProjectName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public static async Task<IEnumerable<SuggestedActionSet>> WaitForItemsAsync(Test
if (e.Status == QuerySuggestedActionCompletionStatus.Completed)
tcs.SetResult(e.ActionSets.ToList());
else if (e.Status == QuerySuggestedActionCompletionStatus.CompletedWithoutData)
tcs.SetResult(new List<SuggestedActionSet>());
else if (e.Status == QuerySuggestedActionCompletionStatus.Canceled)
tcs.TrySetCanceled();
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public static async Task<IEnumerable<SuggestedActionSet>> WaitForItemsAsync(ILig
if (e.Status == QuerySuggestedActionCompletionStatus.Completed)
tcs.SetResult(e.ActionSets.ToList());
else if (e.Status == QuerySuggestedActionCompletionStatus.CompletedWithoutData)
tcs.SetResult(new List<SuggestedActionSet>());
else
tcs.SetException(new InvalidOperationException($"Light bulb transitioned to non-complete state: {e.Status}"));
Expand Down

0 comments on commit 462d5ee

Please sign in to comment.