1 type derived from VisualStudioWorkspace
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
61internal abstract partial class VisualStudioWorkspaceImpl : VisualStudioWorkspace
137 references to VisualStudioWorkspace
Microsoft.CodeAnalysis.ExternalAccess.Apex (1)
ApexAsynchronousOperationListenerProviderAccessor.cs (1)
25[Import(AllowDefault = true)] VisualStudioWorkspace? workspace)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (4)
LanguageServices\FSharpVisualStudioWorkspaceExtensions.cs (4)
15public static Metadata GetMetadata(this VisualStudioWorkspace workspace, string fullPath, DateTime snapshotTimestamp) 22public static bool TryGetProjectIdByBinPath(this VisualStudioWorkspace workspace, string filePath, [NotNullWhen(true)] out ProjectId? projectId) 39public static ProjectId GetOrCreateProjectIdForPath(this VisualStudioWorkspace workspace, string filePath, string projectDisplayName) 48public static string? GetProjectFilePath(this VisualStudioWorkspace workspace, ProjectId projectId)
Microsoft.VisualStudio.LanguageServices (87)
CodeCleanup\AbstractCodeCleanUpFixer.cs (2)
152if (workspace is not VisualStudioWorkspace visualStudioWorkspace) 169VisualStudioWorkspace workspace,
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (2)
35VisualStudioWorkspace workspace, 45private readonly VisualStudioWorkspace _workspace = workspace;
EditorConfigSettings\SettingsEditorFactory.cs (2)
63var workspace = componentModel.GetService<VisualStudioWorkspace>();
ExternalAccess\LegacyCodeAnalysis\LegacyCodeAnalysisVisualStudioSuppressionFixServiceAccessor.cs (2)
22private readonly VisualStudioWorkspace _workspace; 28VisualStudioWorkspace workspace,
ExternalAccess\VSTypeScript\Api\VSTypeScriptContainedLanguageWrapper.cs (1)
49componentModel.GetService<VisualStudioWorkspace>(),
FindReferences\StreamingFindUsagesPresenter.cs (3)
67VisualStudioWorkspace workspace, 279var vsWorkspace = document.Project.Solution.Workspace as VisualStudioWorkspace;
Guids.cs (2)
26/// A <see cref="UIContext"/> that is set if there is a C# project in the <see cref="VisualStudioWorkspace"/>. 77/// A <see cref="UIContext"/> that is set if there is a Visual Basic project in the <see cref="VisualStudioWorkspace"/>.
Implementation\AbstractEditorFactory.cs (2)
290var workspace = _componentModel.GetService<VisualStudioWorkspace>();
Implementation\VsRefactorNotifyService.cs (2)
144if (workspace is not VisualStudioWorkspace visualStudioWorkspace) 167private Dictionary<IVsHierarchy, List<uint>> GetHierarchiesAndItemIDsFromDocumentIDs(VisualStudioWorkspace visualStudioWorkspace, IEnumerable<DocumentId> changedDocumentIDs)
InheritanceMargin\InheritanceGlyphFactoryProvider.cs (1)
41VisualStudioWorkspace workspace,
InheritanceMargin\InheritanceMarginViewMarginProvider.cs (1)
46VisualStudioWorkspace workspace,
Interactive\VsInteractiveWindowProvider.cs (3)
33private readonly VisualStudioWorkspace _vsWorkspace; 48VisualStudioWorkspace workspace) 64VisualStudioWorkspace workspace);
Interactive\VsResetInteractive.cs (2)
32private readonly VisualStudioWorkspace _workspace; 39VisualStudioWorkspace workspace,
LanguageServer\Handler\Diagnostics\VisualStudioDiagnosticProjectInformationService.cs (1)
21if (project.Solution.Workspace is VisualStudioWorkspace workspace)
LanguageService\AbstractCreateServicesOnTextViewConnection.cs (2)
36protected VisualStudioWorkspace Workspace { get; } 43VisualStudioWorkspace workspace,
LanguageService\AbstractPackage`2.cs (2)
138var workspace = ComponentModel.GetService<VisualStudioWorkspace>();
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (2)
32internal readonly VisualStudioWorkspace Workspace; 51VisualStudioWorkspace workspace)
Library\ObjectBrowser\Extensions.cs (2)
68else if (project.Solution.Workspace is VisualStudioWorkspace workspace 126if (project.Solution.Workspace is not VisualStudioWorkspace workspace)
Library\VsNavInfo\NavInfoFactory.cs (1)
178if (project.Solution.Workspace is not VisualStudioWorkspace workspace)
NavigateTo\RoslynSearchItemsSourceProvider.cs (2)
37private readonly VisualStudioWorkspace _workspace; 46VisualStudioWorkspace workspace,
NavigateTo\VisualStudioNavigateToItemProviderFactory.cs (2)
21private readonly VisualStudioWorkspace _workspace; 29VisualStudioWorkspace workspace,
ProjectSystem\Legacy\AbstractLegacyProject.cs (2)
38protected VisualStudioWorkspace Workspace { get; } 72Workspace = componentModel.GetService<VisualStudioWorkspace>();
ProjectSystem\MetadataReferences\VisualStudioFrameworkAssemblyPathResolverFactory.cs (3)
36=> new Service(_threadingContext, workspaceServices.Workspace as VisualStudioWorkspace, _serviceProvider); 38private sealed class Service(IThreadingContext threadingContext, VisualStudioWorkspace? workspace, IServiceProvider serviceProvider) : IFrameworkAssemblyPathResolver 41private readonly VisualStudioWorkspace? _workspace = workspace;
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
77VisualStudioWorkspace workspace)
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
163static m => m["Version"] = FileVersionInfo.GetVersionInfo(typeof(VisualStudioWorkspace).Assembly.Location).FileVersion)); 1293/// The <see cref="VisualStudioWorkspace"/> currently supports only a subset of <see cref="DocumentInfo"/>
Remote\VisualStudioRemoteHostClientProvider.cs (3)
35private readonly VisualStudioWorkspace _vsWorkspace; 49VisualStudioWorkspace vsWorkspace, 69Debug.Assert(workspaceServices.Workspace is VisualStudioWorkspace or PreviewWorkspace);
Remote\VisualStudioWorkspaceServiceHubConnector.cs (4)
18/// Connects <see cref="VisualStudioWorkspace"/> to the ServiceHub services. 19/// Launches ServiceHub if it is not running yet and starts services that push information from <see cref="VisualStudioWorkspace"/> to the ServiceHub process. 35if (workspace is not VisualStudioWorkspace) 50if (workspace is not VisualStudioWorkspace)
StackTraceExplorer\StackTraceExplorerRootViewModel.cs (2)
19private readonly VisualStudioWorkspace _workspace; 24public StackTraceExplorerRootViewModel(IThreadingContext threadingContext, VisualStudioWorkspace workspace, IClassificationFormatMap formatMap, ClassificationTypeMap typeMap)
StackTraceExplorer\StackTraceExplorerTab.cs (1)
24public StackTraceExplorerTab(IThreadingContext threadingContext, VisualStudioWorkspace workspace, IClassificationFormatMap formatMap, ClassificationTypeMap typeMap, int nameIndex)
StackTraceExplorer\StackTraceExplorerToolWindow.cs (2)
123var workspace = roslynPackage.ComponentModel.GetService<VisualStudioWorkspace>();
SyncNamespaces\SyncNamespacesCommandHandler.cs (2)
31private readonly VisualStudioWorkspace _workspace; 40VisualStudioWorkspace workspace,
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (2)
37private readonly VisualStudioWorkspace _workspace; 53VisualStudioWorkspace workspace)
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
66VisualStudioWorkspace workspace,
Telemetry\VisualStudioWorkspaceTelemetryService.cs (2)
27Lazy<VisualStudioWorkspace> workspace, 31private readonly Lazy<VisualStudioWorkspace> _workspace = workspace;
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (2)
37private readonly VisualStudioWorkspace _workspace; 51VisualStudioWorkspace workspace,
ValueTracking\ValueTrackingCommandHandler.cs (1)
61VisualStudioWorkspace workspace)
Venus\ContainedDocument.cs (2)
175var hierarchy = ((VisualStudioWorkspace)_workspace).GetHierarchy(_project.Id); 198var hierarchy = ((VisualStudioWorkspace)_workspace).GetHierarchy(_project.Id);
Workspace\GlobalUndoServiceFactory.cs (3)
33Lazy<VisualStudioWorkspace> workspace) 46private readonly Lazy<VisualStudioWorkspace> _lazyVSWorkspace; 49public GlobalUndoService(IThreadingContext threadingContext, ITextUndoHistoryRegistry undoHistoryRegistry, SVsServiceProvider serviceProvider, Lazy<VisualStudioWorkspace> lazyVSWorkspace)
Workspace\GlobalUndoServiceFactory.WorkspaceGlobalUndoTransaction.cs (2)
58var visualStudioWorkspace = (VisualStudioWorkspace)_workspace;
Workspace\SourceGeneratedFileManager.cs (2)
63private readonly VisualStudioWorkspace _visualStudioWorkspace; 85VisualStudioWorkspace visualStudioWorkspace,
Workspace\VisualStudioIHostWorkspaceProvider.cs (1)
21public VisualStudioIHostWorkspaceProvider(VisualStudioWorkspace workspace)
Workspace\VisualStudioSourceGeneratorTelemetryCollectorWorkspaceServiceFactory.cs (4)
32/// cref="VisualStudioWorkspace"/>. We'll report this when the solution is closed, so the telemetry is linked to 48private readonly Lazy<VisualStudioWorkspace> _visualStudioWorkspace; 52public VisualStudioSourceGeneratorTelemetryCollectorWorkspaceServiceFactory(IThreadingContext threadingContext, IAsynchronousOperationListenerProvider listenerProvider, Lazy<VisualStudioWorkspace> visualStudioWorkspace) 69if (workspaceServices.Workspace is VisualStudioWorkspace)
Workspace\VisualStudioSymbolNavigationService.cs (2)
38VisualStudioWorkspace workspace) : ISymbolNavigationService 45private readonly VisualStudioWorkspace _workspace = workspace;
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
38return workspaceServices.Workspace is VisualStudioWorkspace
Workspace\VisualStudioWorkspaceUtilities.cs (1)
29if (workspace is VisualStudioWorkspace visualStudioWorkspace &&
Microsoft.VisualStudio.LanguageServices.CSharp (14)
CSharpPackage.cs (4)
76var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>(); 91var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>();
Interactive\CSharpVsInteractiveWindowProvider.cs (2)
44VisualStudioWorkspace workspace) 64VisualStudioWorkspace workspace)
Interactive\ResetInteractiveWindowFromProjectCommand.cs (2)
26MefInjection<VisualStudioWorkspace> mefWorkspace, 46var workspace = await mefWorkspace.GetServiceAsync().ConfigureAwait(false);
LanguageService\CSharpCreateServicesOnTextViewConnection.cs (1)
32VisualStudioWorkspace workspace,
ObjectBrowser\ObjectBrowserLibraryManager.cs (1)
18VisualStudioWorkspace workspace) : AbstractObjectBrowserLibraryManager(
Options\NamingStylesOptionPage.cs (2)
27var workspace = componentModel.GetService<VisualStudioWorkspace>();
SemanticSearch\SemanticSearchPresenterController.cs (1)
26VisualStudioWorkspace workspace,
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
63VisualStudioWorkspace workspace,
Microsoft.VisualStudio.LanguageServices.Implementation (23)
CodeModel\AbstractCodeModelObject.cs (1)
71internal VisualStudioWorkspace Workspace
CodeModel\CodeModelProjectCache.cs (1)
41VisualStudioWorkspace workspace)
CodeModel\CodeModelState.cs (2)
25public VisualStudioWorkspace Workspace { get; } 32VisualStudioWorkspace workspace,
CodeModel\ProjectCodeModel.cs (2)
25private readonly VisualStudioWorkspace _visualStudioWorkspace; 35VisualStudioWorkspace visualStudioWorkspace,
CodeModel\ProjectCodeModelFactory.cs (2)
34private readonly VisualStudioWorkspace _visualStudioWorkspace; 43VisualStudioWorkspace visualStudioWorkspace,
ProjectSystem\CPS\TempPECompiler.cs (2)
22private readonly VisualStudioWorkspace _workspace; 26public TempPECompiler(VisualStudioWorkspace workspace)
RoslynVisualStudioWorkspace.cs (2)
30[Export(typeof(VisualStudioWorkspace))] 38/// backreference to <see cref="VisualStudioWorkspace"/>.
SolutionExplorer\AnalyzersCommandHandler.cs (3)
266if (TryGetWorkspace() is not VisualStudioWorkspace workspace) 370if (_tracker.SelectedFolder.Workspace is VisualStudioWorkspace workspace) 691_workspace = componentModel.DefaultExportProvider.GetExportedValueOrDefault<VisualStudioWorkspace>();
SolutionExplorer\AnalyzersFolderItem\AnalyzersFolderItem.cs (1)
39if (Workspace is not VisualStudioWorkspace vsWorkspace)
SolutionExplorer\AnalyzersFolderItem\AnalyzersFolderItemSourceProvider.cs (1)
26VisualStudioWorkspace workspace,
SolutionExplorer\DiagnosticItem\CpsDiagnosticItemSourceProvider.cs (1)
32VisualStudioWorkspace workspace,
SolutionExplorer\Search\RoslynSolutionExplorerSearchProvider.cs (2)
35VisualStudioWorkspace workspace, 39private readonly VisualStudioWorkspace _workspace = workspace;
SolutionExplorer\Search\SolutionExplorerSearchDisplayItemSourceProvider.cs (1)
29VisualStudioWorkspace workspace,
SolutionExplorer\SourceGeneratedFileItems\SourceGeneratedFileItemSourceProvider.cs (1)
22VisualStudioWorkspace workspace,
SolutionExplorer\SymbolTree\RootSymbolTreeItemSourceProvider.cs (1)
73VisualStudioWorkspace workspace,
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\XamlProjectService.cs (1)
50VisualStudioWorkspace workspace,
Roslyn.VisualStudio.DiagnosticsWindow (7)
DiagnosticsWindow.cs (2)
18public VisualStudioWorkspace? Workspace { get; private set; } 69public void Initialize(VisualStudioWorkspace workspace)
OptionPages\PerformanceLoggersPage.cs (2)
41var workspace = componentModel.GetService<VisualStudioWorkspace>();
Panels\WorkspacePanel.xaml.cs (1)
64var workspace = _window.Workspace;
VisualStudioDiagnosticsWindowPackage.cs (2)
38private VisualStudioWorkspace _workspace; 81_workspace = componentModel.GetService<VisualStudioWorkspace>();