Base:
method
TryApplyChanges
Microsoft.CodeAnalysis.Workspace.TryApplyChanges(Microsoft.CodeAnalysis.Solution)
52 references to TryApplyChanges
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (27)
CodeActions\ApplyChangesOperationTests.cs (1)
244Assert.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)
755workspace.TryApplyChanges(project.Solution); 854workspace.TryApplyChanges(solution);
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (1)
197workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference]));
Workspaces\WorkspaceTests_EditorFeatures.cs (15)
222workspace.TryApplyChanges(workspace.CurrentSolution); 752workspace.TryApplyChanges(newSolution); 774workspace.TryApplyChanges(newSolution); 795workspace.TryApplyChanges(newSolution); 1128workspace.TryApplyChanges(newSolution); 1161workspace.TryApplyChanges(newSolution); 1254workspace.TryApplyChanges(newSolution); 1264workspace.TryApplyChanges(newSolution); 1290workspace.TryApplyChanges(newSolution); 1300workspace.TryApplyChanges(newSolution); 1323workspace.TryApplyChanges(doc.Project.Solution); 1330workspace.TryApplyChanges(project.RemoveAdditionalDocument(doc.Id).Solution); 1351workspace.TryApplyChanges(doc.Project.Solution); 1358workspace.TryApplyChanges(project.RemoveAnalyzerConfigDocument(doc.Id).Solution); 1489Assert.True(workspace1.TryApplyChanges(newSolution));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\SuppressionTests.cs (1)
476workspace.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])); 341workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 1051var appliedChanges = workspace.TryApplyChanges(sourceDocument.Project.Solution);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (6)
444workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 556workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 632workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 678workspace.TryApplyChanges(project.Solution); 746workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference])); 789Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution.Projects.Single().AddAnalyzerReference(new TestGeneratorReference(generator)).Solution));
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
58workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (1)
89workspace.TryApplyChanges(newSolution);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Diagnostics\PullDiagnosticTests.cs (1)
1096Assert.True(testLspServer.TestWorkspace.TryApplyChanges(solution));
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
CodeModel\Mocks\MockVisualStudioWorkspace.vb (2)
46Assert.True(_workspace.TryApplyChanges(_workspace.CurrentSolution.WithDocumentText(documentId, newText))) 56Assert.True(_workspace.TryApplyChanges(_workspace.CurrentSolution.RemoveDocument(documentId)))
Microsoft.VisualStudio.LanguageServices.UnitTests (6)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (3)
51workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 97workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 229workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
Venus\DocumentService_IntegrationTests.vb (3)
200Assert.True(workspace.TryApplyChanges(newDocument.Project.Solution)) 207Assert.Throws(Of NotSupportedException)(Sub() workspace.TryApplyChanges(newDocument.Project.Solution)) 225workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
Roslyn.VisualStudio.Next.UnitTests (3)
Services\ServiceHubServicesTests.cs (2)
1430Contract.ThrowIfFalse(workspace.TryApplyChanges(workspace.CurrentSolution.WithDocumentText(normalDocId, SourceText.From("// new text")))); 1588workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference]));
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
159workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences([analyzerReference]));