1 type derived from VisualStudioWorkspace
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
63internal abstract partial class VisualStudioWorkspaceImpl : VisualStudioWorkspace
142 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 (92)
CodeCleanup\AbstractCodeCleanUpFixer.cs (2)
152if (workspace is not VisualStudioWorkspace visualStudioWorkspace) 169VisualStudioWorkspace workspace,
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (2)
40private readonly VisualStudioWorkspace _workspace; 54VisualStudioWorkspace workspace,
EditorConfigSettings\SettingsEditorFactory.cs (2)
33private readonly VisualStudioWorkspace _workspace; 42public SettingsEditorFactory(VisualStudioWorkspace workspace,
ExternalAccess\LegacyCodeAnalysis\LegacyCodeAnalysisVisualStudioSuppressionFixServiceAccessor.cs (2)
22private readonly VisualStudioWorkspace _workspace; 28VisualStudioWorkspace workspace,
ExternalAccess\VSTypeScript\Api\VSTypeScriptContainedLanguageWrapper.cs (1)
49componentModel.GetService<VisualStudioWorkspace>(),
FindReferences\StreamingFindUsagesPresenter.cs (3)
68VisualStudioWorkspace workspace, 280var 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)
36private readonly VisualStudioWorkspace _workspace; 45VisualStudioWorkspace workspace) 65VisualStudioWorkspace 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)
41VisualStudioWorkspace workspace,
InheritanceMargin\InheritanceMarginViewMarginProvider.cs (1)
46VisualStudioWorkspace workspace,
Interactive\VsInteractiveWindowProvider.cs (3)
32private readonly VisualStudioWorkspace _vsWorkspace; 47VisualStudioWorkspace workspace) 63VisualStudioWorkspace workspace);
Interactive\VsResetInteractive.cs (2)
33private readonly VisualStudioWorkspace _workspace; 40VisualStudioWorkspace workspace,
LanguageServer\Handler\Diagnostics\VisualStudioDiagnosticProjectInformationService.cs (1)
21if (project.Solution.Workspace is VisualStudioWorkspace workspace)
LanguageService\AbstractCreateServicesOnTextViewConnection.cs (2)
35protected VisualStudioWorkspace Workspace { get; } 42VisualStudioWorkspace workspace,
LanguageService\AbstractLanguageService`2.cs (2)
148var workspace = Package.ComponentModel.GetService<VisualStudioWorkspace>();
LanguageService\AbstractPackage`2.cs (2)
96var workspace = ComponentModel.GetService<VisualStudioWorkspace>();
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (2)
32internal 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)
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,
Progression\GraphNodeIdCreation.cs (1)
408if (solution.Workspace is VisualStudioWorkspace)
Progression\GraphProvider.cs (1)
47VisualStudioWorkspace workspace,
ProjectSystem\Legacy\AbstractLegacyProject.cs (2)
37protected VisualStudioWorkspace Workspace { get; } 75Workspace = 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\MiscellaneousFilesWorkspace.cs (1)
64VisualStudioWorkspace visualStudioWorkspace)
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
226KeyValueLogMessage.Create(m => m["Version"] = FileVersionInfo.GetVersionInfo(typeof(VisualStudioWorkspace).Assembly.Location).FileVersion)); 1277/// The <see cref="VisualStudioWorkspace"/> currently supports only a subset of <see cref="DocumentInfo"/>
Remote\VisualStudioRemoteHostClientProvider.cs (3)
32private readonly VisualStudioWorkspace _vsWorkspace; 45VisualStudioWorkspace vsWorkspace, 63Debug.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)
33private readonly VisualStudioWorkspace _workspace; 42VisualStudioWorkspace workspace,
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (2)
37private readonly VisualStudioWorkspace _workspace; 53VisualStudioWorkspace workspace)
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
67VisualStudioWorkspace workspace,
Telemetry\VisualStudioWorkspaceTelemetryService.cs (2)
27VisualStudioWorkspace workspace, 31private readonly VisualStudioWorkspace _workspace = workspace;
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (2)
37private readonly VisualStudioWorkspace _workspace; 51VisualStudioWorkspace workspace,
ValueTracking\ValueTrackingCommandHandler.cs (1)
62VisualStudioWorkspace workspace)
Venus\ContainedDocument.cs (2)
175var hierarchy = ((VisualStudioWorkspace)_workspace).GetHierarchy(_project.Id); 198var 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)
61var visualStudioWorkspace = (VisualStudioWorkspace)_workspace;
Workspace\SourceGeneratedFileManager.cs (2)
62private readonly VisualStudioWorkspace _visualStudioWorkspace; 84VisualStudioWorkspace visualStudioWorkspace,
Workspace\VisualStudioIHostWorkspaceProvider.cs (1)
21public VisualStudioIHostWorkspaceProvider(VisualStudioWorkspace workspace)
Workspace\VisualStudioSourceGeneratorTelemetryCollectorWorkspaceServiceFactory.cs (2)
29/// cref="VisualStudioWorkspace"/>. We'll report this when the solution is closed, so the telemetry is linked to 59if (workspaceServices.Workspace is VisualStudioWorkspace)
Workspace\VisualStudioSymbolNavigationService.cs (3)
41VisualStudioWorkspace workspace) : ISymbolNavigationService 48private readonly VisualStudioWorkspace _workspace = workspace; 284if (document.Project.Solution.Workspace is VisualStudioWorkspace visualStudioWorkspace
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
38return workspaceServices.Workspace is VisualStudioWorkspace
Microsoft.VisualStudio.LanguageServices.CSharp (10)
CSharpPackage.cs (2)
72var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>(); 84var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>();
Interactive\CSharpVsInteractiveWindowProvider.cs (2)
44VisualStudioWorkspace workspace) 64VisualStudioWorkspace workspace)
Interactive\ResetInteractiveWindowFromProjectCommand.cs (1)
26MefInjection<VisualStudioWorkspace> mefWorkspace,
LanguageService\CSharpCreateServicesOnTextViewConnection.cs (1)
32VisualStudioWorkspace workspace,
ObjectBrowser\ObjectBrowserLibraryManager.cs (1)
18VisualStudioWorkspace workspace) : AbstractObjectBrowserLibraryManager(
Options\NamingStylesOptionPage.cs (2)
27var workspace = componentModel.GetService<VisualStudioWorkspace>();
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
62VisualStudioWorkspace workspace,
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)
22<Export(GetType(VisualStudioWorkspace))>
ProjectSystemShim\Framework\TestEnvironment.vb (1)
94<Export(GetType(VisualStudioWorkspace))>
Microsoft.VisualStudio.LanguageServices.UnitTests (6)
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)
19Private ReadOnly _visualStudioWorkspace As VisualStudioWorkspace 22Public Sub New(workspace As EditorTestWorkspace, 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
Microsoft.VisualStudio.LanguageServices.VisualBasic (16)
LanguageService\VisualBasicCreateServicesOnTextViewConnection.vb (1)
26workspace As VisualStudioWorkspace,
LanguageService\VisualBasicPackage.IVbEntryPointProvider.vb (1)
21Dim workspace = ComponentModel.GetService(Of VisualStudioWorkspace)()
LanguageService\VisualBasicPackage.vb (3)
77Dim workspace = Me.ComponentModel.GetService(Of VisualStudioWorkspace)() 87Dim 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)
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)() 147Dim visualStudioWorkspace = ComponentModel.GetService(Of VisualStudioWorkspace)()
Microsoft.VisualStudio.LanguageServices.Xaml (1)
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)
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>();