1 type derived from VisualStudioWorkspace
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
63
internal 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)
15
public static Metadata GetMetadata(this
VisualStudioWorkspace
workspace, string fullPath, DateTime snapshotTimestamp)
22
public static bool TryGetProjectIdByBinPath(this
VisualStudioWorkspace
workspace, string filePath, [NotNullWhen(true)] out ProjectId? projectId)
39
public static ProjectId GetOrCreateProjectIdForPath(this
VisualStudioWorkspace
workspace, string filePath, string projectDisplayName)
48
public static string? GetProjectFilePath(this
VisualStudioWorkspace
workspace, ProjectId projectId)
Microsoft.VisualStudio.LanguageServices (92)
CodeCleanup\AbstractCodeCleanUpFixer.cs (2)
152
if (workspace is not
VisualStudioWorkspace
visualStudioWorkspace)
169
VisualStudioWorkspace
workspace,
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (2)
40
private readonly
VisualStudioWorkspace
_workspace;
54
VisualStudioWorkspace
workspace,
EditorConfigSettings\SettingsEditorFactory.cs (2)
33
private readonly
VisualStudioWorkspace
_workspace;
42
public SettingsEditorFactory(
VisualStudioWorkspace
workspace,
ExternalAccess\LegacyCodeAnalysis\LegacyCodeAnalysisVisualStudioSuppressionFixServiceAccessor.cs (2)
22
private readonly
VisualStudioWorkspace
_workspace;
28
VisualStudioWorkspace
workspace,
ExternalAccess\VSTypeScript\Api\VSTypeScriptContainedLanguageWrapper.cs (1)
49
componentModel.GetService<
VisualStudioWorkspace
>(),
FindReferences\StreamingFindUsagesPresenter.cs (3)
68
VisualStudioWorkspace
workspace,
280
var
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)
294
var
workspace = _componentModel.GetService<
VisualStudioWorkspace
>();
Implementation\VirtualMemoryNotificationListener.cs (3)
36
private readonly
VisualStudioWorkspace
_workspace;
45
VisualStudioWorkspace
workspace)
65
VisualStudioWorkspace
workspace,
Implementation\VsRefactorNotifyService.cs (2)
145
if (workspace is not
VisualStudioWorkspace
visualStudioWorkspace)
176
private Dictionary<IVsHierarchy, List<uint>> GetHierarchiesAndItemIDsFromDocumentIDs(
VisualStudioWorkspace
visualStudioWorkspace, IEnumerable<DocumentId> changedDocumentIDs)
InheritanceMargin\InheritanceGlyphFactoryProvider.cs (1)
41
VisualStudioWorkspace
workspace,
InheritanceMargin\InheritanceMarginViewMarginProvider.cs (1)
46
VisualStudioWorkspace
workspace,
Interactive\VsInteractiveWindowProvider.cs (3)
32
private readonly
VisualStudioWorkspace
_vsWorkspace;
47
VisualStudioWorkspace
workspace)
63
VisualStudioWorkspace
workspace);
Interactive\VsResetInteractive.cs (2)
33
private readonly
VisualStudioWorkspace
_workspace;
40
VisualStudioWorkspace
workspace,
LanguageServer\Handler\Diagnostics\VisualStudioDiagnosticProjectInformationService.cs (1)
21
if (project.Solution.Workspace is
VisualStudioWorkspace
workspace)
LanguageService\AbstractCreateServicesOnTextViewConnection.cs (2)
35
protected
VisualStudioWorkspace
Workspace { get; }
42
VisualStudioWorkspace
workspace,
LanguageService\AbstractLanguageService`2.cs (2)
148
var
workspace = Package.ComponentModel.GetService<
VisualStudioWorkspace
>();
LanguageService\AbstractPackage`2.cs (2)
96
var
workspace = ComponentModel.GetService<
VisualStudioWorkspace
>();
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (2)
32
internal readonly
VisualStudioWorkspace
Workspace;
50
VisualStudioWorkspace
workspace)
Library\ObjectBrowser\Extensions.cs (2)
68
else if (project.Solution.Workspace is
VisualStudioWorkspace
workspace
126
if (project.Solution.Workspace is not
VisualStudioWorkspace
workspace)
Library\VsNavInfo\NavInfoFactory.cs (1)
178
if (project.Solution.Workspace is not
VisualStudioWorkspace
workspace)
NavigateTo\RoslynSearchItemsSourceProvider.cs (2)
37
private readonly
VisualStudioWorkspace
_workspace;
46
VisualStudioWorkspace
workspace,
NavigateTo\VisualStudioNavigateToItemProviderFactory.cs (2)
21
private readonly
VisualStudioWorkspace
_workspace;
29
VisualStudioWorkspace
workspace,
Progression\GraphNodeIdCreation.cs (1)
408
if (solution.Workspace is
VisualStudioWorkspace
)
Progression\GraphProvider.cs (1)
47
VisualStudioWorkspace
workspace,
ProjectSystem\Legacy\AbstractLegacyProject.cs (2)
37
protected
VisualStudioWorkspace
Workspace { get; }
75
Workspace = componentModel.GetService<
VisualStudioWorkspace
>();
ProjectSystem\MetadataReferences\VisualStudioFrameworkAssemblyPathResolverFactory.cs (3)
36
=> new Service(_threadingContext, workspaceServices.Workspace as
VisualStudioWorkspace
, _serviceProvider);
38
private sealed class Service(IThreadingContext threadingContext,
VisualStudioWorkspace
? workspace, IServiceProvider serviceProvider) : IFrameworkAssemblyPathResolver
41
private readonly
VisualStudioWorkspace
? _workspace = workspace;
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
64
VisualStudioWorkspace
visualStudioWorkspace)
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
226
KeyValueLogMessage.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)
32
private readonly
VisualStudioWorkspace
_vsWorkspace;
45
VisualStudioWorkspace
vsWorkspace,
63
Debug.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.
35
if (workspace is not
VisualStudioWorkspace
)
50
if (workspace is not
VisualStudioWorkspace
)
StackTraceExplorer\StackTraceExplorerRootViewModel.cs (2)
19
private readonly
VisualStudioWorkspace
_workspace;
24
public StackTraceExplorerRootViewModel(IThreadingContext threadingContext,
VisualStudioWorkspace
workspace, IClassificationFormatMap formatMap, ClassificationTypeMap typeMap)
StackTraceExplorer\StackTraceExplorerTab.cs (1)
24
public StackTraceExplorerTab(IThreadingContext threadingContext,
VisualStudioWorkspace
workspace, IClassificationFormatMap formatMap, ClassificationTypeMap typeMap, int nameIndex)
StackTraceExplorer\StackTraceExplorerToolWindow.cs (2)
123
var
workspace = roslynPackage.ComponentModel.GetService<
VisualStudioWorkspace
>();
SyncNamespaces\SyncNamespacesCommandHandler.cs (2)
33
private readonly
VisualStudioWorkspace
_workspace;
42
VisualStudioWorkspace
workspace,
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (2)
37
private readonly
VisualStudioWorkspace
_workspace;
53
VisualStudioWorkspace
workspace)
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
67
VisualStudioWorkspace
workspace,
Telemetry\VisualStudioWorkspaceTelemetryService.cs (2)
27
VisualStudioWorkspace
workspace,
31
private readonly
VisualStudioWorkspace
_workspace = workspace;
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (2)
37
private readonly
VisualStudioWorkspace
_workspace;
51
VisualStudioWorkspace
workspace,
ValueTracking\ValueTrackingCommandHandler.cs (1)
62
VisualStudioWorkspace
workspace)
Venus\ContainedDocument.cs (2)
175
var hierarchy = ((
VisualStudioWorkspace
)_workspace).GetHierarchy(_project.Id);
198
var hierarchy = ((
VisualStudioWorkspace
)_workspace).GetHierarchy(_project.Id);
Workspace\GlobalUndoServiceFactory.cs (3)
35
Lazy<
VisualStudioWorkspace
> workspace)
48
private readonly Lazy<
VisualStudioWorkspace
> _lazyVSWorkspace;
51
public GlobalUndoService(IThreadingContext threadingContext, ITextUndoHistoryRegistry undoHistoryRegistry, SVsServiceProvider serviceProvider, Lazy<
VisualStudioWorkspace
> lazyVSWorkspace)
Workspace\GlobalUndoServiceFactory.WorkspaceGlobalUndoTransaction.cs (2)
61
var
visualStudioWorkspace = (
VisualStudioWorkspace
)_workspace;
Workspace\SourceGeneratedFileManager.cs (2)
62
private readonly
VisualStudioWorkspace
_visualStudioWorkspace;
84
VisualStudioWorkspace
visualStudioWorkspace,
Workspace\VisualStudioIHostWorkspaceProvider.cs (1)
21
public 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
59
if (workspaceServices.Workspace is
VisualStudioWorkspace
)
Workspace\VisualStudioSymbolNavigationService.cs (3)
41
VisualStudioWorkspace
workspace) : ISymbolNavigationService
48
private readonly
VisualStudioWorkspace
_workspace = workspace;
284
if (document.Project.Solution.Workspace is
VisualStudioWorkspace
visualStudioWorkspace
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
38
return workspaceServices.Workspace is
VisualStudioWorkspace
Microsoft.VisualStudio.LanguageServices.CSharp (10)
CSharpPackage.cs (2)
72
var workspace = this.ComponentModel.GetService<
VisualStudioWorkspace
>();
84
var workspace = this.ComponentModel.GetService<
VisualStudioWorkspace
>();
Interactive\CSharpVsInteractiveWindowProvider.cs (2)
44
VisualStudioWorkspace
workspace)
64
VisualStudioWorkspace
workspace)
Interactive\ResetInteractiveWindowFromProjectCommand.cs (1)
26
MefInjection<
VisualStudioWorkspace
> mefWorkspace,
LanguageService\CSharpCreateServicesOnTextViewConnection.cs (1)
32
VisualStudioWorkspace
workspace,
ObjectBrowser\ObjectBrowserLibraryManager.cs (1)
18
VisualStudioWorkspace
workspace) : AbstractObjectBrowserLibraryManager(
Options\NamingStylesOptionPage.cs (2)
27
var
workspace = componentModel.GetService<
VisualStudioWorkspace
>();
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
62
VisualStudioWorkspace
workspace,
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (5)
CodeModel\CodeModelTestState.vb (3)
15
Private ReadOnly _visualStudioWorkspace As
VisualStudioWorkspace
22
visualStudioWorkspace As
VisualStudioWorkspace
,
43
Public 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)
48
mockComponentModel.ProvideService(Of
VisualStudioWorkspace
)(vsWorkspace)
62
Friend MustOverride Function CreateLibraryManager(serviceProvider As IServiceProvider, componentModel As IComponentModel, workspace As
VisualStudioWorkspace
) As AbstractObjectBrowserLibraryManager
ObjectBrowser\CSharp\ObjectBrowerTests.vb (1)
24
Friend Overrides Function CreateLibraryManager(serviceProvider As IServiceProvider, componentModel As IComponentModel, workspace As
VisualStudioWorkspace
) As AbstractObjectBrowserLibraryManager
ObjectBrowser\Helpers.vb (2)
19
Private ReadOnly _visualStudioWorkspace As
VisualStudioWorkspace
22
Public Sub New(workspace As EditorTestWorkspace, visualStudioWorkspace As
VisualStudioWorkspace
, libraryManager As AbstractObjectBrowserLibraryManager)
ObjectBrowser\VisualBasic\ObjectBrowerTests.vb (1)
24
Friend Overrides Function CreateLibraryManager(serviceProvider As IServiceProvider, componentModel As IComponentModel, workspace As
VisualStudioWorkspace
) As AbstractObjectBrowserLibraryManager
Microsoft.VisualStudio.LanguageServices.VisualBasic (16)
LanguageService\VisualBasicCreateServicesOnTextViewConnection.vb (1)
26
workspace As
VisualStudioWorkspace
,
LanguageService\VisualBasicPackage.IVbEntryPointProvider.vb (1)
21
Dim workspace = ComponentModel.GetService(Of
VisualStudioWorkspace
)()
LanguageService\VisualBasicPackage.vb (3)
77
Dim workspace = Me.ComponentModel.GetService(Of
VisualStudioWorkspace
)()
87
Dim workspace As
VisualStudioWorkspace
= ComponentModel.GetService(Of
VisualStudioWorkspace
)()
ObjectBrowser\ObjectBrowserLibraryManager.vb (1)
14
Public Sub New(serviceProvider As IServiceProvider, componentModel As IComponentModel, workspace As
VisualStudioWorkspace
)
Options\NamingStylesOptionPage.vb (1)
23
Dim workspace = componentModel.GetService(Of
VisualStudioWorkspace
)
ProjectSystemShim\TempPECompiler.vb (2)
17
Private ReadOnly _workspace As
VisualStudioWorkspace
20
Public Sub New(workspace As
VisualStudioWorkspace
)
ProjectSystemShim\TempPECompilerFactory.vb (2)
11
Private ReadOnly _workspace As
VisualStudioWorkspace
13
Public Sub New(workspace As
VisualStudioWorkspace
)
Venus\ContainedLanguageStaticEventBinding.vb (2)
57
visualStudioWorkspace As
VisualStudioWorkspace
,
86
visualStudioWorkspace As
VisualStudioWorkspace
,
Venus\VisualBasicContainedLanguage.vb (3)
50
componentModel.GetService(Of
VisualStudioWorkspace
)(),
67
Dim visualStudioWorkspace = ComponentModel.GetService(Of
VisualStudioWorkspace
)()
147
Dim visualStudioWorkspace = ComponentModel.GetService(Of
VisualStudioWorkspace
)()
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\XamlProjectService.cs (1)
49
VisualStudioWorkspace
workspace,
Roslyn.VisualStudio.DiagnosticsWindow (7)
DiagnosticsWindow.cs (2)
18
public
VisualStudioWorkspace
? Workspace { get; private set; }
69
public void Initialize(
VisualStudioWorkspace
workspace)
OptionPages\PerformanceLoggersPage.cs (2)
41
var
workspace = componentModel.GetService<
VisualStudioWorkspace
>();
Panels\WorkspacePanel.xaml.cs (1)
64
var
workspace = _window.Workspace;
VisualStudioDiagnosticsWindowPackage.cs (2)
38
private
VisualStudioWorkspace
_workspace;
81
_workspace = componentModel.GetService<
VisualStudioWorkspace
>();