Base:
method
TryApplyChanges
Microsoft.CodeAnalysis.Workspace.TryApplyChanges(Microsoft.CodeAnalysis.Solution)
51 references to TryApplyChanges
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (27)
CodeActions\ApplyChangesOperationTests.cs (1)
257Assert.True(workspace.TryApplyChanges(changedSolution));
Completion\CompletionServiceTests.cs (1)
135Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution.WithOptions(
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (7)
63workspace.TryApplyChanges(newSolution); 92ideEngineWorkspace.TryApplyChanges(ideEngineWorkspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 128workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 172workspace.TryApplyChanges(workspace.CurrentSolution 204workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 260ideEngineWorkspace.TryApplyChanges(ideEngineWorkspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 759Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(
Formatting\CodeCleanupTests.cs (2)
804workspace.TryApplyChanges(project.Solution); 903workspace.TryApplyChanges(solution);
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (1)
211workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference]));
Workspaces\WorkspaceTests_EditorFeatures.cs (15)
222workspace.TryApplyChanges(workspace.CurrentSolution); 752workspace.TryApplyChanges(newSolution); 774workspace.TryApplyChanges(newSolution); 795workspace.TryApplyChanges(newSolution); 1126workspace.TryApplyChanges(newSolution); 1159workspace.TryApplyChanges(newSolution); 1252workspace.TryApplyChanges(newSolution); 1262workspace.TryApplyChanges(newSolution); 1288workspace.TryApplyChanges(newSolution); 1298workspace.TryApplyChanges(newSolution); 1321workspace.TryApplyChanges(doc.Project.Solution); 1328workspace.TryApplyChanges(project.RemoveAdditionalDocument(doc.Id).Solution); 1349workspace.TryApplyChanges(doc.Project.Solution); 1356workspace.TryApplyChanges(project.RemoveAnalyzerConfigDocument(doc.Id).Solution); 1486Assert.True(workspace1.TryApplyChanges(newSolution));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\SuppressionTests.cs (1)
447workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference]));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Diagnostics\DiagnosticTaggerWrapper.cs (1)
37workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference]));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
CodeFixes\CodeFixServiceTests.cs (3)
50workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 357workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 1066var appliedChanges = workspace.TryApplyChanges(sourceDocument.Project.Solution);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (6)
447workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 559workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 635workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 683workspace.TryApplyChanges(project.Solution); 751workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 794Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution.Projects.Single().AddAnalyzerReference(new TestGeneratorReference(generator)).Solution));
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
57workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (1)
89workspace.TryApplyChanges(newSolution);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
CodeModel\Mocks\MockVisualStudioWorkspace.vb (2)
50Assert.True(_workspace.TryApplyChanges(_workspace.CurrentSolution.WithDocumentText(documentId, newText))) 60Assert.True(_workspace.TryApplyChanges(_workspace.CurrentSolution.RemoveDocument(documentId)))
Microsoft.VisualStudio.LanguageServices.UnitTests (6)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (3)
52workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 98workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 230workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
Venus\DocumentService_IntegrationTests.vb (3)
202Assert.True(workspace.TryApplyChanges(newDocument.Project.Solution)) 209Assert.Throws(Of NotSupportedException)(Sub() workspace.TryApplyChanges(newDocument.Project.Solution)) 227workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
Roslyn.VisualStudio.Next.UnitTests (3)
Services\ServiceHubServicesTests.cs (2)
1448Contract.ThrowIfFalse(workspace.TryApplyChanges(workspace.CurrentSolution.WithDocumentText(normalDocId, SourceText.From("// new text")))); 1606workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference]));
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
159workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference]));