Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Feb 17, 2022
1 parent 6c2b58f commit d17769e
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Imports System.Collections.Immutable
Imports System.Threading
Imports Microsoft.CodeAnalysis.CodeActions
Imports Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces
Imports Microsoft.CodeAnalysis.Host
Imports Microsoft.CodeAnalysis.SyncNamespaces
Expand Down Expand Up @@ -39,7 +40,7 @@ namespace Test.Namespace.App
Dim document = project.Documents.Single()

Dim syncService = project.GetLanguageService(Of ISyncNamespacesService)()
Dim newSolution = Await syncService.SyncNamespacesAsync(ImmutableArray.Create(project), CancellationToken.None)
Dim newSolution = Await syncService.SyncNamespacesAsync(ImmutableArray.Create(project), CodeActionOptions.Default, CancellationToken.None)

Dim solutionChanges = workspace.CurrentSolution.GetChanges(newSolution)

Expand Down Expand Up @@ -75,7 +76,7 @@ namespace Test
Dim document = project.Documents.Single()

Dim syncService = project.GetLanguageService(Of ISyncNamespacesService)()
Dim newSolution = Await syncService.SyncNamespacesAsync(projects, CancellationToken.None)
Dim newSolution = Await syncService.SyncNamespacesAsync(projects, CodeActionOptions.Default, CancellationToken.None)

Dim solutionChanges = workspace.CurrentSolution.GetChanges(newSolution)
Dim projectChanges = solutionChanges.GetProjectChanges().Single()
Expand Down Expand Up @@ -132,7 +133,7 @@ namespace Test2.Namespace.App
Dim project = projects(0)

Dim syncService = project.GetLanguageService(Of ISyncNamespacesService)()
Dim newSolution = Await syncService.SyncNamespacesAsync(projects, CancellationToken.None)
Dim newSolution = Await syncService.SyncNamespacesAsync(projects, CodeActionOptions.Default, CancellationToken.None)

Dim solutionChanges = workspace.CurrentSolution.GetChanges(newSolution)

Expand Down Expand Up @@ -186,7 +187,7 @@ namespace Test2.Namespace.App
Dim document = project.Documents.Single()

Dim syncService = project.GetLanguageService(Of ISyncNamespacesService)()
Dim newSolution = Await syncService.SyncNamespacesAsync(projects, CancellationToken.None)
Dim newSolution = Await syncService.SyncNamespacesAsync(projects, CodeActionOptions.Default, CancellationToken.None)

Dim solutionChanges = workspace.CurrentSolution.GetChanges(newSolution)
Dim projectChanges = solutionChanges.GetProjectChanges().Single()
Expand Down Expand Up @@ -251,7 +252,7 @@ namespace Test2.Namespace
Dim document2 = project2.Documents.Single()

Dim syncService = project.GetLanguageService(Of ISyncNamespacesService)()
Dim newSolution = Await syncService.SyncNamespacesAsync(projects, CancellationToken.None)
Dim newSolution = Await syncService.SyncNamespacesAsync(projects, CodeActionOptions.Default, CancellationToken.None)

Dim solutionChanges = workspace.CurrentSolution.GetChanges(newSolution)
Dim projectChanges = solutionChanges.GetProjectChanges().ToImmutableArray()
Expand Down

0 comments on commit d17769e

Please sign in to comment.