1 type derived from PreviewWorkspace
Microsoft.VisualStudio.LanguageServices (1)
Preview\PreviewUpdater.PreviewDialogWorkspace.cs (1)
19internal class PreviewDialogWorkspace : PreviewWorkspace
18 instantiations of PreviewWorkspace
Microsoft.CodeAnalysis.EditorFeatures (6)
Preview\AbstractPreviewFactoryService.cs (6)
290var rightWorkspace = new PreviewWorkspace(document.Project.Solution); 372var leftWorkspace = new PreviewWorkspace(document.Project.Solution); 480var leftWorkspace = new PreviewWorkspace(oldDocument.Project.Solution); 483var rightWorkspace = new PreviewWorkspace(newDocument.Project.Solution); 537var leftWorkspace = new PreviewWorkspace(oldDocument.Project.Solution); 540var rightWorkspace = new PreviewWorkspace(newDocument.Project.Solution);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (10)
Preview\PreviewWorkspaceTests.cs (10)
39using var previewWorkspace = new PreviewWorkspace(); 47using var previewWorkspace = new PreviewWorkspace(hostServices); 55using var previewWorkspace = new PreviewWorkspace(custom.CurrentSolution); 62using var previewWorkspace = new PreviewWorkspace(); 76using var previewWorkspace = new PreviewWorkspace(); 106using var previewWorkspace = new PreviewWorkspace(); 126using var previewWorkspace = new PreviewWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 141using var previewWorkspace = new PreviewWorkspace(workspace.CurrentSolution); 228var previewWorkspace = new PreviewWorkspace(); 253static composition => new PreviewWorkspace(composition.GetHostServices()),
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
QuickInfo\ContentControlService.cs (1)
71var workspace = new PreviewWorkspace(document.Project.Solution);
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Options\AbstractOptionPreviewViewModel.cs (1)
117var workspace = new PreviewWorkspace(service);
26 references to PreviewWorkspace
Microsoft.CodeAnalysis.EditorFeatures (12)
Preview\AbstractPreviewFactoryService.cs (12)
253private async ValueTask<DifferenceViewerPreview> CreateAddedDocumentPreviewViewCoreAsync(ITextBuffer newBuffer, PreviewWorkspace workspace, TextDocument document, double zoomLevel, CancellationToken cancellationToken) 290var rightWorkspace = new PreviewWorkspace(document.Project.Solution); 325private async ValueTask<DifferenceViewerPreview> CreateRemovedDocumentPreviewViewCoreAsync(ITextBuffer oldBuffer, PreviewWorkspace workspace, TextDocument document, double zoomLevel, CancellationToken cancellationToken) 372var leftWorkspace = new PreviewWorkspace(document.Project.Solution); 480var leftWorkspace = new PreviewWorkspace(oldDocument.Project.Solution); 483var rightWorkspace = new PreviewWorkspace(newDocument.Project.Solution); 537var leftWorkspace = new PreviewWorkspace(oldDocument.Project.Solution); 540var rightWorkspace = new PreviewWorkspace(newDocument.Project.Solution); 563List<LineSpan> originalSpans, List<LineSpan> changedSpans, PreviewWorkspace leftWorkspace, PreviewWorkspace rightWorkspace, 641PreviewWorkspace? leftWorkspace, PreviewWorkspace? rightWorkspace,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (10)
Preview\PreviewWorkspaceTests.cs (10)
39using var previewWorkspace = new PreviewWorkspace(); 47using var previewWorkspace = new PreviewWorkspace(hostServices); 55using var previewWorkspace = new PreviewWorkspace(custom.CurrentSolution); 62using var previewWorkspace = new PreviewWorkspace(); 76using var previewWorkspace = new PreviewWorkspace(); 106using var previewWorkspace = new PreviewWorkspace(); 126using var previewWorkspace = new PreviewWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 141using var previewWorkspace = new PreviewWorkspace(workspace.CurrentSolution); 228var previewWorkspace = new PreviewWorkspace(); 264private static void ExecuteAnalyzers(PreviewWorkspace previewWorkspace, ImmutableArray<DiagnosticAnalyzer> analyzers)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (3)
QuickInfo\ContentControlService.cs (1)
71var workspace = new PreviewWorkspace(document.Project.Solution);
QuickInfo\DisposableToolTip.cs (2)
18private PreviewWorkspace _workspaceOpt; 20public DisposableToolTip(ToolTip toolTip, PreviewWorkspace workspaceOpt)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Options\AbstractOptionPreviewViewModel.cs (1)
117var workspace = new PreviewWorkspace(service);