1 override of TryApplyChanges
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
298public override bool TryApplyChanges(Solution newSolution)
212 references to TryApplyChanges
AnalyzerRunner (1)
CodeRefactoringRunner.cs (1)
72_workspace.TryApplyChanges(updatedSolution);
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (3)
AbstractCodeActionOrUserDiagnosticTest.cs (2)
226var applied = workspace.TryApplyChanges(newSolution); 249var applied = workspace.TryApplyChanges(newSolution);
AbstractUserDiagnosticTest.cs (1)
107workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(analyzeReferences));
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
143Contract.ThrowIfFalse(workspace.TryApplyChanges(solutionWithEventHandler), "Event Hookup could not update the solution.");
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (31)
CodeActions\ApplyChangesOperationTests.cs (1)
257Assert.True(workspace.TryApplyChanges(changedSolution));
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (1)
3284document.Project.Solution.Workspace.TryApplyChanges(newDoc.Project.Solution);
Completion\CompletionServiceTests.cs (1)
136Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution.WithOptions(
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (7)
60workspace.TryApplyChanges(newSolution); 89ideEngineWorkspace.TryApplyChanges(ideEngineWorkspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 125workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 169workspace.TryApplyChanges(workspace.CurrentSolution 203workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 259ideEngineWorkspace.TryApplyChanges(ideEngineWorkspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 775Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[]
Diagnostics\Suppression\SuppressionTests.cs (1)
449workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference }));
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (2)
39Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution 368Assert.True(workspace.TryApplyChanges(newSolution));
Formatting\CodeCleanupTests.cs (2)
745workspace.TryApplyChanges(project.Solution); 829workspace.TryApplyChanges(solution);
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (1)
217workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference }));
Workspaces\WorkspaceTests_EditorFeatures.cs (15)
220workspace.TryApplyChanges(workspace.CurrentSolution); 682workspace.TryApplyChanges(newSolution); 704workspace.TryApplyChanges(newSolution); 725workspace.TryApplyChanges(newSolution); 1052workspace.TryApplyChanges(newSolution); 1085workspace.TryApplyChanges(newSolution); 1174workspace.TryApplyChanges(newSolution); 1184workspace.TryApplyChanges(newSolution); 1210workspace.TryApplyChanges(newSolution); 1220workspace.TryApplyChanges(newSolution); 1241workspace.TryApplyChanges(doc.Project.Solution); 1248workspace.TryApplyChanges(project.RemoveAdditionalDocument(doc.Id).Solution); 1269workspace.TryApplyChanges(doc.Project.Solution); 1276workspace.TryApplyChanges(project.RemoveAnalyzerConfigDocument(doc.Id).Solution); 1404Assert.True(workspace1.TryApplyChanges(newSolution));
Microsoft.CodeAnalysis.EditorFeatures (11)
AddImports\AbstractAddImportsPasteCommandHandler.cs (1)
177document.Project.Solution.Workspace.TryApplyChanges(updatedDocument.Project.Solution);
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (1)
151if (workspace.TryApplyChanges(finalSolution))
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (1)
142if (workspace.TryApplyChanges(finalSolution))
ExtractInterface\AbstractExtractInterfaceCommandHandler.cs (1)
85if (!document.Project.Solution.Workspace.TryApplyChanges(result.UpdatedSolution))
InlineRename\InlineRenameSession.cs (2)
884if (!_workspace.TryApplyChanges(finalSolution)) 891if (!_workspace.TryApplyChanges(finalSolution))
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (2)
236if (!workspace.TryApplyChanges(newSolution)) 276if (!workspace.TryApplyChanges(newSolution))
Shared\Extensions\WorkspaceExtensions.cs (2)
26workspace.TryApplyChanges(newSolution); 36workspace.TryApplyChanges(newSolution);
SpellCheck\RoslynSpellCheckFixerProvider.cs (1)
115if (!workspace.TryApplyChanges(replacements.NewSolution))
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (5)
CodeActions\AbstractCodeActionOrUserDiagnosticTest.cs (2)
226var applied = workspace.TryApplyChanges(newSolution); 249var applied = workspace.TryApplyChanges(newSolution);
Diagnostics\AbstractSuppressionAllCodeTests.cs (1)
75workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference }));
Diagnostics\AbstractUnncessarySuppressionDiagnosticTest.cs (1)
35workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference }));
Diagnostics\AbstractUserDiagnosticTest.cs (1)
107workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(analyzeReferences));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Completion\AbstractCompletionProviderTests.cs (1)
510document.Project.Solution.Workspace.TryApplyChanges(newDoc.Project.Solution);
Diagnostics\DiagnosticTaggerWrapper.cs (1)
46workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference }));
LanguageServer\AbstractLanguageServerProtocolTests.cs (2)
360workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { CreateTestAnalyzersReference() })); 413workspace.TryApplyChanges(newSolution);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (34)
CodeFixes\CodeFixServiceTests.cs (2)
51workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 331workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference }));
Diagnostics\DiagnosticAnalyzerServiceTests.cs (19)
72workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 107workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 121workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 136workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 156workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 175workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 198var applied = workspace.TryApplyChanges(document.Project.Solution); 289workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 348workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 431workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 474workspace.TryApplyChanges(solution.WithAnalyzerReferences(new[] { analyzerReference })); 589Assert.True(workspace.TryApplyChanges(solution)); 652var applied = workspace.TryApplyChanges(project.Solution); 756workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 886workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 987workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 1063workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 1109workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference })); 1152Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution.Projects.Single().AddAnalyzerReference(new TestGeneratorReference(generator)).Solution));
Diagnostics\DiagnosticsSquiggleTaggerProviderTests.cs (1)
68workspace.TryApplyChanges(document.WithText(text.WithChanges(new TextChange(new TextSpan(text.Length - 1, 1), string.Empty))).Project.Solution);
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
62workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[]
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (1)
68workspace.TryApplyChanges(newSolution);
Preview\PreviewWorkspaceTests.cs (10)
65Assert.True(previewWorkspace.TryApplyChanges(project.Solution)); 68Assert.True(previewWorkspace.TryApplyChanges(newSolution)); 79Assert.True(previewWorkspace.TryApplyChanges(project.Solution)); 84Assert.True(previewWorkspace.TryApplyChanges(addedSolution)); 90Assert.True(previewWorkspace.TryApplyChanges(changedSolution)); 97Assert.True(previewWorkspace.TryApplyChanges(removedSolution)); 112Assert.True(previewWorkspace.TryApplyChanges(document.Project.Solution)); 146previewWorkspace.TryApplyChanges(previewWorkspace.CurrentSolution.WithAnalyzerReferences(new[] { DiagnosticExtensions.GetCompilerDiagnosticAnalyzerReference(LanguageNames.CSharp) })); 165workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { DiagnosticExtensions.GetCompilerDiagnosticAnalyzerReference(LanguageNames.CSharp) })); 234Assert.True(previewWorkspace.TryApplyChanges(project.Solution));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (11)
CodeFixes\CodeFixServiceTests.vb (2)
53workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 132workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
149workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(analyzeReferences))
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
48workspace.TryApplyChanges(newSln)
Diagnostics\DiagnosticProviderTests.vb (1)
293workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
Diagnostics\DiagnosticServiceTests.vb (6)
76workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 182workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 224workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({hostAnalyzerReference})) 264workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 382workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 427workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference1}))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (6)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.vb (4)
29workspace.TryApplyChanges(newSolution) 55ideEngineWorkspace.TryApplyChanges(ideEngineWorkspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 85workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 116workspace.TryApplyChanges(workspace.CurrentSolution.
Formatting\CodeCleanUpTests.vb (2)
529workspace.TryApplyChanges(project.Solution) 581workspace.TryApplyChanges(solution)
Microsoft.CodeAnalysis.Workspaces (28)
Workspace\Workspace.cs (28)
33/// workspace's <see cref="TryApplyChanges(Solution)"/> method. 138/// after <see cref="TryApplyChanges(Solution)"/> is called. 1252/// Determines if the specific kind of change is supported by the <see cref="TryApplyChanges(Solution)"/> method. 1538/// Called during a call to <see cref="TryApplyChanges(Solution)"/> to determine if a specific change to <see cref="Project.CompilationOptions"/> is allowed. 1545/// <param name="newOptions">The new <see cref="CompilationOptions"/> of the project that was passed to <see cref="TryApplyChanges(Solution)"/>.</param> 1546/// <param name="project">The project contained in the <see cref="Solution"/> passed to <see cref="TryApplyChanges(Solution)"/>.</param> 1551/// Called during a call to <see cref="TryApplyChanges(Solution)"/> to determine if a specific change to <see cref="Project.ParseOptions"/> is allowed. 1558/// <param name="newOptions">The new <see cref="ParseOptions"/> of the project that was passed to <see cref="TryApplyChanges(Solution)"/>.</param> 1559/// <param name="project">The project contained in the <see cref="Solution"/> passed to <see cref="TryApplyChanges(Solution)"/>.</param> 1564/// This method is called during <see cref="TryApplyChanges(Solution)"/> for each project 1786/// This method is called during <see cref="TryApplyChanges(Solution)"/> to add a project to the current solution. 1797/// This method is called during <see cref="TryApplyChanges(Solution)"/> to remove a project from the current solution. 1808/// This method is called during <see cref="TryApplyChanges(Solution)"/> to change the compilation options. 1826/// This method is called during <see cref="TryApplyChanges(Solution)"/> to change the parse options. 1843/// This method is called during <see cref="TryApplyChanges(Solution)"/> to add a project reference to a project. 1854/// This method is called during <see cref="TryApplyChanges(Solution)"/> to remove a project reference from a project. 1865/// This method is called during <see cref="TryApplyChanges(Solution)"/> to add a metadata reference to a project. 1876/// This method is called during <see cref="TryApplyChanges(Solution)"/> to remove a metadata reference from a project. 1887/// This method is called during <see cref="TryApplyChanges(Solution)"/> to add an analyzer reference to a project. 1898/// This method is called during <see cref="TryApplyChanges(Solution)"/> to remove an analyzer reference from a project. 1909/// This method is called during <see cref="TryApplyChanges(Solution)"/> to add an analyzer reference to the solution. 1920/// This method is called during <see cref="TryApplyChanges(Solution)"/> to remove an analyzer reference from the solution. 1931/// This method is called during <see cref="TryApplyChanges(Solution)"/> to add a new document to a project. 1942/// This method is called during <see cref="TryApplyChanges(Solution)"/> to remove a document from a project. 1975/// This method is called during <see cref="TryApplyChanges(Solution)"/> to add a new additional document to a project. 1986/// This method is called during <see cref="TryApplyChanges(Solution)"/> to remove an additional document from a project. 2008/// This method is called during <see cref="TryApplyChanges(Solution)"/> to add a new analyzer config document to a project. 2019/// This method is called during <see cref="TryApplyChanges(Solution)"/> to remove an analyzer config document from a project.
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
2878Assert.True(noEncodingSolution.Workspace.TryApplyChanges(noEncodingSolution));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
WorkspaceExtensions.cs (3)
20workspace.TryApplyChanges(newSolution); 28workspace.TryApplyChanges(newSolution); 35workspace.TryApplyChanges(newSolution);
Microsoft.CodeAnalysis.Workspaces.UnitTests (31)
SolutionTests\SolutionTests.cs (7)
54Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution 76Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution 451workspace.TryApplyChanges(solution); 539workspace.TryApplyChanges(solution); 625workspace.TryApplyChanges(solution); 705workspace.TryApplyChanges(solution); 781workspace.TryApplyChanges(solution);
SolutionTests\TryApplyChangesTests.cs (7)
79Assert.True(workspace.TryApplyChanges(project.WithCompilationOptions(project.CompilationOptions!.WithMainTypeName("Test")).Solution)); 92Assert.True(workspace.TryApplyChanges(project.WithCompilationOptions(project.CompilationOptions!.WithMainTypeName("Test")).Solution)); 106() => workspace.TryApplyChanges(project.WithCompilationOptions(project.CompilationOptions!.WithMainTypeName("WrongThing")).Solution)); 122Assert.True(workspace.TryApplyChanges( 138workspace.TryApplyChanges( 153() => workspace.TryApplyChanges( 166Assert.True(workspace.TryApplyChanges(project.AddAnalyzerConfigDocument(".editorconfig", SourceText.From("")).Project.Solution));
SymbolKeyTests.cs (2)
804workspace.TryApplyChanges(document.WithText(updated).Project.Solution); 851workspace.TryApplyChanges(document.WithText(updated).Project.Solution);
WorkspaceServiceTests\GlobalOptionServiceTests.cs (2)
84Assert.True(workspace1.TryApplyChanges(newSolution1)); 113Assert.True(workspace1.TryApplyChanges(newSolution1));
WorkspaceTests\AdhocWorkspaceTests.cs (7)
172var result = ws.TryApplyChanges(newSolution); 206var result = ws.TryApplyChanges(newSolution); 456Assert.True(ws.TryApplyChanges(changedDoc.Project.Solution)); 489Assert.True(ws.TryApplyChanges(changedDoc.Project.Solution)); 523Assert.True(ws.TryApplyChanges(changedDoc.Project.Solution)); 554Assert.True(ws.TryApplyChanges(changedDoc.Project.Solution)); 584Assert.True(ws.TryApplyChanges(changedDoc.Project.Solution));
WorkspaceTests\WorkspaceTests.cs (6)
33Assert.Throws<NotSupportedException>(() => ws.TryApplyChanges(changedDoc.Project.Solution)).Message); 49Assert.Throws<NotSupportedException>(() => ws.TryApplyChanges(changedDoc.Project.Solution)).Message); 67Assert.Throws<NotSupportedException>(() => ws.TryApplyChanges(changedDoc.Project.Solution)).Message); 84Assert.Throws<NotSupportedException>(() => ws.TryApplyChanges(changedDoc.Project.Solution)).Message); 100Assert.Throws<NotSupportedException>(() => ws.TryApplyChanges(changedDoc.Project.Solution)).Message); 112Assert.Throws<NotSupportedException>(() => ws.TryApplyChanges(newSolution)).Message);
Microsoft.VisualStudio.LanguageServices (9)
ProjectSystem\VisualStudioWorkspaceImpl.AbstractAddDocumentUndoUnit.cs (1)
36Workspace.TryApplyChanges(updatedProject.Solution);
ProjectSystem\VisualStudioWorkspaceImpl.AbstractRemoveDocumentUndoUnit.cs (1)
39Workspace.TryApplyChanges(updatedProject.Solution);
ProjectSystem\VisualStudioWorkspaceImpl.AddMetadataReferenceUndoUnit.cs (1)
49Workspace.TryApplyChanges(updatedProject.Solution);
ProjectSystem\VisualStudioWorkspaceImpl.AddProjectReferenceUndoUnit.cs (1)
39Workspace.TryApplyChanges(updatedProject.Solution);
ProjectSystem\VisualStudioWorkspaceImpl.RemoveMetadataReferenceUndoUnit.cs (1)
41Workspace.TryApplyChanges(updatedProject.Solution);
ProjectSystem\VisualStudioWorkspaceImpl.RemoveProjectReferenceUndoUnit.cs (1)
37Workspace.TryApplyChanges(updatedProject.Solution);
ProjectSystem\VisualStudioWorkspaceImpl.RenameDocumentUndoUnit.cs (1)
36_workspace.TryApplyChanges(updatedSolution);
SyncNamespaces\SyncNamespacesCommandHandler.cs (1)
162_workspace.TryApplyChanges(newSolution);
Venus\ContainedLanguageCodeSupport.cs (1)
345if (!workspace.TryApplyChanges(newSolution))
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
EditorConfigSettings\Aggregator\SettingsAggregatorTests.cs (1)
29Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution
EditorConfigSettings\DataProvider\DataProviderTests.cs (1)
29Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution
PersistentStorage\AbstractPersistentStorageTests.cs (1)
1002workspace.TryApplyChanges(solution);
Microsoft.VisualStudio.LanguageServices.Implementation (4)
CodeModel\AbstractCodeModelService.cs (1)
509if (!workspace.TryApplyChanges(newSolution))
CodeModel\FileCodeModel.cs (2)
387var applied = workspace.TryApplyChanges(document.Project.Solution); 712_batchDocument.Project.Solution.Workspace.TryApplyChanges(newDocument.Project.Solution);
Options\AbstractOptionPreviewViewModel.cs (1)
158workspace.TryApplyChanges(document.Project.Solution);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
CodeModel\Mocks\MockVisualStudioWorkspace.vb (2)
49Assert.True(_workspace.TryApplyChanges(_workspace.CurrentSolution.WithDocumentText(documentId, newText))) 59Assert.True(_workspace.TryApplyChanges(_workspace.CurrentSolution.RemoveDocument(documentId)))
Microsoft.VisualStudio.LanguageServices.UnitTests (22)
CodeModel\CSharp\CodeClassTests.vb (1)
3911Dim result = state.VisualStudioWorkspace.TryApplyChanges(document.Project.Solution)
CodeModel\CSharp\FileCodeModelTests.vb (2)
980state.VisualStudioWorkspace.TryApplyChanges(newSolution) 1231Assert.True(workspace.TryApplyChanges(newSolution))
CodeModel\VisualBasic\CodeClassTests.vb (1)
3170Dim result = state.VisualStudioWorkspace.TryApplyChanges(document.Project.Solution)
Diagnostics\DefaultDiagnosticUpdateSourceTests.vb (8)
43workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 90workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 129workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 168workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 208workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 239workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 268workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 310workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
Diagnostics\DiagnosticTableDataSourceTests.vb (1)
616workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (6)
86workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 279workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 331workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 371workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 445workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference})) 499workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
Venus\DocumentService_IntegrationTests.vb (3)
197Assert.True(workspace.TryApplyChanges(newDocument.Project.Solution)) 204Assert.Throws(Of NotSupportedException)(Sub() workspace.TryApplyChanges(newDocument.Project.Solution)) 222workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
Roslyn.VisualStudio.Next.UnitTests (2)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
59workspace.TryApplyChanges(newSolution);
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
181workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { analyzerReference }));