1 type derived from VisualStudioWorkspace
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
62internal abstract partial class VisualStudioWorkspaceImpl : VisualStudioWorkspace
186 references to VisualStudioWorkspace
Microsoft.CodeAnalysis.ExternalAccess.Apex (1)
ApexAsynchronousOperationListenerProviderAccessor.cs (1)
25[Import(AllowDefault = true)] VisualStudioWorkspace? workspace)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (5)
Internal\VisualStudio\FSharpProjectExternalErrorReporterFactory.cs (1)
21var workspace = (VisualStudioWorkspaceImpl)serviceProvider.GetMefService<VisualStudioWorkspace>();
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.IntegrationTest.Utilities (2)
InProcess\VisualStudioWorkspace_InProc.cs (2)
27private readonly VisualStudioWorkspace _visualStudioWorkspace; 35_visualStudioWorkspace = GetComponentModelService<VisualStudioWorkspace>();
Microsoft.VisualStudio.LanguageServices (100)
AnalyzerDependency\AnalyzerDependencyCheckingService.cs (2)
36private readonly VisualStudioWorkspace _workspace; 71VisualStudioWorkspace workspace,
Diagnostics\DiagnosticProgressReporter.cs (2)
38private readonly VisualStudioWorkspace _workspace; 91VisualStudioWorkspace workspace)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (2)
39private readonly VisualStudioWorkspace _workspace; 52VisualStudioWorkspace workspace,
EditorConfigSettings\SettingsEditorFactory.cs (2)
33private readonly VisualStudioWorkspace _workspace; 42public SettingsEditorFactory(VisualStudioWorkspace workspace,
ExternalAccess\LegacyCodeAnalysis\LegacyCodeAnalysisVisualStudioSuppressionFixServiceAccessor.cs (2)
23private readonly VisualStudioWorkspace _workspace; 29VisualStudioWorkspace workspace,
ExternalAccess\VSTypeScript\Api\VSTypeScriptContainedLanguageWrapper.cs (1)
50componentModel.GetService<VisualStudioWorkspace>(),
FindReferences\StreamingFindUsagesPresenter.cs (3)
68VisualStudioWorkspace workspace, 286var 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)
294var workspace = _componentModel.GetService<VisualStudioWorkspace>();
Implementation\VirtualMemoryNotificationListener.cs (3)
37private readonly VisualStudioWorkspace _workspace; 46VisualStudioWorkspace workspace) 66VisualStudioWorkspace workspace,
Implementation\VsRefactorNotifyService.cs (2)
145if (workspace is not VisualStudioWorkspace visualStudioWorkspace) 176private Dictionary<IVsHierarchy, List<uint>> GetHierarchiesAndItemIDsFromDocumentIDs(VisualStudioWorkspace visualStudioWorkspace, IEnumerable<DocumentId> changedDocumentIDs)
InheritanceMargin\InheritanceGlyphFactoryProvider.cs (1)
42VisualStudioWorkspace workspace,
InheritanceMargin\InheritanceMarginViewMarginProvider.cs (1)
47VisualStudioWorkspace workspace,
Interactive\AbstractResetInteractiveCommand.cs (2)
18private readonly VisualStudioWorkspace _workspace; 28VisualStudioWorkspace workspace,
Interactive\VsInteractiveWindowProvider.cs (3)
33private readonly VisualStudioWorkspace _vsWorkspace; 50VisualStudioWorkspace workspace) 66VisualStudioWorkspace workspace);
Interactive\VsResetInteractive.cs (2)
35private readonly VisualStudioWorkspace _workspace; 42VisualStudioWorkspace workspace,
LanguageService\AbstractCreateServicesOnTextViewConnection.cs (2)
35protected VisualStudioWorkspace Workspace { get; } 42VisualStudioWorkspace workspace,
LanguageService\AbstractLanguageService`2.cs (2)
186var workspace = Package.ComponentModel.GetService<VisualStudioWorkspace>();
LanguageService\AbstractPackage`2.cs (2)
94var workspace = ComponentModel.GetService<VisualStudioWorkspace>();
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (2)
30internal readonly VisualStudioWorkspace Workspace; 50VisualStudioWorkspace 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)
179if (project.Solution.Workspace is not VisualStudioWorkspace workspace)
NavigateTo\RoslynSearchItemsSourceProvider.cs (2)
38private readonly VisualStudioWorkspace _workspace; 47VisualStudioWorkspace workspace,
NavigateTo\VisualStudioNavigateToItemProviderFactory.cs (2)
21private readonly VisualStudioWorkspace _workspace; 29VisualStudioWorkspace workspace,
Progression\GraphNodeIdCreation.cs (1)
406if (solution.Workspace is VisualStudioWorkspace)
ProjectSystem\Legacy\AbstractLegacyProject.cs (2)
36protected VisualStudioWorkspace Workspace { get; } 73Workspace = componentModel.GetService<VisualStudioWorkspace>();
ProjectSystem\MetadataReferences\VisualStudioFrameworkAssemblyPathResolverFactory.cs (3)
35=> new Service(_threadingContext, workspaceServices.Workspace as VisualStudioWorkspace, _serviceProvider); 39private readonly VisualStudioWorkspace? _workspace; 42public Service(IThreadingContext threadingContext, VisualStudioWorkspace? workspace, IServiceProvider serviceProvider)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
69VisualStudioWorkspace visualStudioWorkspace)
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
230KeyValueLogMessage.Create(m => m["Version"] = FileVersionInfo.GetVersionInfo(typeof(VisualStudioWorkspace).Assembly.Location).FileVersion)); 1222/// The <see cref="VisualStudioWorkspace"/> currently supports only a subset of <see cref="DocumentInfo"/>
Remote\VisualStudioRemoteHostClientProvider.cs (1)
59workspaceServices.Workspace is not VisualStudioWorkspace ||
Remote\VisualStudioWorkspaceServiceHubConnector.cs (4)
21/// Connects <see cref="VisualStudioWorkspace"/> to the ServiceHub services. 22/// Launches ServiceHub if it is not running yet and starts services that push information from <see cref="VisualStudioWorkspace"/> to the ServiceHub process. 44if (workspace is not VisualStudioWorkspace) 61if (workspace is not VisualStudioWorkspace)
StackTraceExplorer\StackTraceExplorerRootViewModel.cs (2)
21private readonly VisualStudioWorkspace _workspace; 26public StackTraceExplorerRootViewModel(IThreadingContext threadingContext, VisualStudioWorkspace workspace, IClassificationFormatMap formatMap, ClassificationTypeMap typeMap)
StackTraceExplorer\StackTraceExplorerTab.cs (1)
26public StackTraceExplorerTab(IThreadingContext threadingContext, VisualStudioWorkspace workspace, IClassificationFormatMap formatMap, ClassificationTypeMap typeMap, int nameIndex)
StackTraceExplorer\StackTraceExplorerToolWindow.cs (2)
124var workspace = roslynPackage.ComponentModel.GetService<VisualStudioWorkspace>();
SyncNamespaces\SyncNamespacesCommandHandler.cs (2)
32private readonly VisualStudioWorkspace _workspace; 42VisualStudioWorkspace workspace,
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (2)
37private readonly VisualStudioWorkspace _workspace; 53VisualStudioWorkspace workspace)
TableDataSource\Suppression\VisualStudioDiagnosticListTableCommandHandler.cs (2)
37private readonly VisualStudioWorkspace _workspace; 52VisualStudioWorkspace workspace,
TableDataSource\TableItem.cs (1)
42projectGuid = (projectId != null && workspace is VisualStudioWorkspace vsWorkspace) ? vsWorkspace.GetProjectGuid(projectId) : Guid.Empty;
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
76VisualStudioWorkspace workspace,
TaskList\HostDiagnosticUpdateSource.cs (2)
24private readonly Lazy<VisualStudioWorkspace> _workspace; 31public HostDiagnosticUpdateSource(Lazy<VisualStudioWorkspace> workspace, IDiagnosticUpdateSourceRegistrationService registrationService)
TaskList\ProjectExternalErrorReporter.cs (1)
43: this(projectId, errorCodePrefix, LanguageNames.FSharp, (VisualStudioWorkspaceImpl)serviceProvider.GetMefService<VisualStudioWorkspace>())
TaskList\VisualStudioTaskListService.cs (2)
77public void Start(VisualStudioWorkspace workspace) 83private async Task StartAsync(VisualStudioWorkspace workspace)
Telemetry\VisualStudioWorkspaceTelemetryService.cs (2)
25private readonly VisualStudioWorkspace _workspace; 31VisualStudioWorkspace workspace,
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (2)
37private readonly VisualStudioWorkspace _workspace; 51VisualStudioWorkspace workspace,
ValueTracking\ValueTrackingCommandHandler.cs (1)
63VisualStudioWorkspace workspace)
Venus\ContainedDocument.cs (2)
178var hierarchy = ((VisualStudioWorkspace)_workspace).GetHierarchy(_project.Id); 201var hierarchy = ((VisualStudioWorkspace)_workspace).GetHierarchy(_project.Id);
Workspace\GlobalUndoServiceFactory.cs (3)
35Lazy<VisualStudioWorkspace> workspace) 48private readonly Lazy<VisualStudioWorkspace> _lazyVSWorkspace; 51public GlobalUndoService(IThreadingContext threadingContext, ITextUndoHistoryRegistry undoHistoryRegistry, SVsServiceProvider serviceProvider, Lazy<VisualStudioWorkspace> lazyVSWorkspace)
Workspace\GlobalUndoServiceFactory.WorkspaceGlobalUndoTransaction.cs (2)
59var visualStudioWorkspace = (VisualStudioWorkspace)_workspace;
Workspace\SourceGeneratedFileManager.cs (2)
55private readonly VisualStudioWorkspace _visualStudioWorkspace; 75VisualStudioWorkspace visualStudioWorkspace,
Workspace\VisualStudioIHostWorkspaceProvider.cs (1)
21public VisualStudioIHostWorkspaceProvider(VisualStudioWorkspace workspace)
Workspace\VisualStudioSourceGeneratorTelemetryCollectorWorkspaceServiceFactory.cs (2)
28/// The collector that's used to collect all the telemetry for operations within <see cref="VisualStudioWorkspace"/>. We'll report this 56if (workspaceServices.Workspace is VisualStudioWorkspace)
Workspace\VisualStudioSymbolNavigationService.cs (3)
39private readonly VisualStudioWorkspace _workspace; 49VisualStudioWorkspace workspace) 296if (document.Project.Solution.Workspace is VisualStudioWorkspace visualStudioWorkspace
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
55if (workspaceServices.Workspace is VisualStudioWorkspace)
Microsoft.VisualStudio.LanguageServices.CSharp (12)
CSharpPackage.cs (4)
74var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>(); 86var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>();
Interactive\CSharpVsInteractiveWindowProvider.cs (2)
48VisualStudioWorkspace workspace) 70VisualStudioWorkspace workspace)
Interactive\CSharpVsResetInteractiveCommand.cs (1)
23VisualStudioWorkspace workspace,
LanguageService\CSharpCreateServicesOnTextViewConnection.cs (1)
32VisualStudioWorkspace workspace,
ObjectBrowser\ObjectBrowserLibraryManager.cs (1)
20VisualStudioWorkspace workspace)
Options\NamingStylesOptionPage.cs (2)
27var workspace = componentModel.GetService<VisualStudioWorkspace>();
Progression\CSharpGraphProvider.cs (1)
27VisualStudioWorkspace workspace,
Microsoft.VisualStudio.LanguageServices.Implementation (22)
CodeModel\AbstractCodeModelObject.cs (1)
76internal VisualStudioWorkspace Workspace
CodeModel\CodeModelProjectCache.cs (1)
43VisualStudioWorkspace workspace)
CodeModel\CodeModelState.cs (2)
27public VisualStudioWorkspace Workspace { get; } 34VisualStudioWorkspace workspace,
CodeModel\ProjectCodeModel.cs (2)
27private readonly VisualStudioWorkspace _visualStudioWorkspace; 37VisualStudioWorkspace visualStudioWorkspace,
CodeModel\ProjectCodeModelFactory.cs (2)
36private readonly VisualStudioWorkspace _visualStudioWorkspace; 47VisualStudioWorkspace visualStudioWorkspace,
ProjectSystem\CPS\TempPECompiler.cs (2)
23private readonly VisualStudioWorkspace _workspace; 27public TempPECompiler(VisualStudioWorkspace workspace)
RoslynVisualStudioWorkspace.cs (2)
32[Export(typeof(VisualStudioWorkspace))] 40/// backreference to <see cref="VisualStudioWorkspace"/>.
SolutionExplorer\AnalyzersCommandHandler.cs (5)
268var workspace = TryGetWorkspace() as VisualStudioWorkspace; 371var workspace = _tracker.SelectedFolder.Workspace as VisualStudioWorkspace; 697_workspace = componentModel.DefaultExportProvider.GetExportedValueOrDefault<VisualStudioWorkspace>();
SolutionExplorer\AnalyzersFolderItem\AnalyzersFolderItem.cs (2)
57var vsWorkspace = Workspace as VisualStudioWorkspace;
SolutionExplorer\AnalyzersFolderItem\AnalyzersFolderItemSourceProvider.cs (1)
32VisualStudioWorkspace workspace,
SolutionExplorer\DiagnosticItem\CpsDiagnosticItemSourceProvider.cs (1)
38VisualStudioWorkspace workspace)
SolutionExplorer\SourceGeneratedFileItems\SourceGeneratedFileItemSourceProvider.cs (1)
29public SourceGeneratedFileItemSourceProvider(VisualStudioWorkspace workspace, IAsynchronousOperationListenerProvider asyncListenerProvider, IThreadingContext threadingContext)
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (5)
CSharp\CSharpFindReferences.cs (1)
158var visualStudioWorkspace = await TestServices.Shell.GetComponentModelServiceAsync<VisualStudioWorkspace>(HangMitigatingCancellationToken);
CSharp\CSharpSourceGenerators.cs (1)
82var workspace = await TestServices.Shell.GetComponentModelServiceAsync<VisualStudioWorkspace>(HangMitigatingCancellationToken);
InProcess\EditorVerifierInProcess.cs (1)
165var workspace = await TestServices.Shell.GetComponentModelServiceAsync<VisualStudioWorkspace>(cancellationToken);
InProcess\StateResetInProcess.cs (1)
48var workspace = await TestServices.Shell.GetComponentModelServiceAsync<VisualStudioWorkspace>(cancellationToken);
InProcess\WorkspaceInProcess.cs (1)
133var workspace = await GetComponentModelServiceAsync<VisualStudioWorkspace>(cancellationToken);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (5)
CodeModel\CodeModelTestState.vb (3)
15Private ReadOnly _visualStudioWorkspace As VisualStudioWorkspace 22visualStudioWorkspace As VisualStudioWorkspace, 43Public ReadOnly Property VisualStudioWorkspace As VisualStudioWorkspace
CodeModel\Mocks\MockVisualStudioWorkspace.vb (1)
21<Export(GetType(VisualStudioWorkspace))>
ProjectSystemShim\Framework\TestEnvironment.vb (1)
97<Export(GetType(VisualStudioWorkspace))>
Microsoft.VisualStudio.LanguageServices.UnitTests (8)
ObjectBrowser\AbstractObjectBrowserTests.vb (2)
48mockComponentModel.ProvideService(Of VisualStudioWorkspace)(vsWorkspace) 62Friend MustOverride Function CreateLibraryManager(serviceProvider As IServiceProvider, componentModel As IComponentModel, workspace As VisualStudioWorkspace) As AbstractObjectBrowserLibraryManager
ObjectBrowser\CSharp\ObjectBrowerTests.vb (1)
24Friend Overrides Function CreateLibraryManager(serviceProvider As IServiceProvider, componentModel As IComponentModel, workspace As VisualStudioWorkspace) As AbstractObjectBrowserLibraryManager
ObjectBrowser\Helpers.vb (2)
18Private ReadOnly _visualStudioWorkspace As VisualStudioWorkspace 21Public Sub New(workspace As TestWorkspace, visualStudioWorkspace As VisualStudioWorkspace, libraryManager As AbstractObjectBrowserLibraryManager)
ObjectBrowser\VisualBasic\ObjectBrowerTests.vb (1)
24Friend Overrides Function CreateLibraryManager(serviceProvider As IServiceProvider, componentModel As IComponentModel, workspace As VisualStudioWorkspace) As AbstractObjectBrowserLibraryManager
ProjectSystemShim\VisualStudioAnalyzerTests.vb (2)
30Dim lazyWorkspace = New Lazy(Of VisualStudioWorkspace)( 50Dim lazyWorkspace = New Lazy(Of VisualStudioWorkspace)(
Microsoft.VisualStudio.LanguageServices.VisualBasic (17)
LanguageService\VisualBasicCreateServicesOnTextViewConnection.vb (1)
26workspace As VisualStudioWorkspace,
LanguageService\VisualBasicPackage.IVbEntryPointProvider.vb (1)
20Dim workspace = ComponentModel.GetService(Of VisualStudioWorkspace)()
LanguageService\VisualBasicPackage.vb (3)
76Dim workspace = Me.ComponentModel.GetService(Of VisualStudioWorkspace)() 86Dim workspace As VisualStudioWorkspace = ComponentModel.GetService(Of VisualStudioWorkspace)()
ObjectBrowser\ObjectBrowserLibraryManager.vb (1)
14Public Sub New(serviceProvider As IServiceProvider, componentModel As IComponentModel, workspace As VisualStudioWorkspace)
Options\NamingStylesOptionPage.vb (1)
23Dim workspace = componentModel.GetService(Of VisualStudioWorkspace)
Progression\VisualBasicGraphProvider.vb (1)
26workspace As VisualStudioWorkspace,
ProjectSystemShim\TempPECompiler.vb (2)
17Private ReadOnly _workspace As VisualStudioWorkspace 20Public Sub New(workspace As VisualStudioWorkspace)
ProjectSystemShim\TempPECompilerFactory.vb (2)
11Private ReadOnly _workspace As VisualStudioWorkspace 13Public Sub New(workspace As VisualStudioWorkspace)
Venus\ContainedLanguageStaticEventBinding.vb (2)
57visualStudioWorkspace As VisualStudioWorkspace, 86visualStudioWorkspace As VisualStudioWorkspace,
Venus\VisualBasicContainedLanguage.vb (3)
50componentModel.GetService(Of VisualStudioWorkspace)(), 67Dim visualStudioWorkspace = ComponentModel.GetService(Of VisualStudioWorkspace)() 148Dim visualStudioWorkspace = ComponentModel.GetService(Of VisualStudioWorkspace)()
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Extensions.cs (1)
15public static Guid GetProjectGuid(this VisualStudioWorkspace workspace, ProjectId projectId)
Implementation\XamlProjectService.cs (1)
49VisualStudioWorkspace workspace,
Roslyn.VisualStudio.DiagnosticsWindow (7)
DiagnosticsWindow.cs (2)
18public VisualStudioWorkspace? Workspace { get; private set; } 69public void Initialize(VisualStudioWorkspace workspace)
OptionPages\PerformanceLoggersPage.cs (2)
42var workspace = componentModel.GetService<VisualStudioWorkspace>();
Panels\WorkspacePanel.xaml.cs (1)
64var workspace = _window.Workspace;
VisualStudioDiagnosticsWindowPackage.cs (2)
40private VisualStudioWorkspace _workspace; 83_workspace = componentModel.GetService<VisualStudioWorkspace>();