1 type derived from VisualStudioWorkspace
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
62
internal 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)
21
var workspace = (VisualStudioWorkspaceImpl)serviceProvider.GetMefService<
VisualStudioWorkspace
>();
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.IntegrationTest.Utilities (2)
InProcess\VisualStudioWorkspace_InProc.cs (2)
27
private readonly
VisualStudioWorkspace
_visualStudioWorkspace;
35
_visualStudioWorkspace = GetComponentModelService<
VisualStudioWorkspace
>();
Microsoft.VisualStudio.LanguageServices (100)
AnalyzerDependency\AnalyzerDependencyCheckingService.cs (2)
36
private readonly
VisualStudioWorkspace
_workspace;
71
VisualStudioWorkspace
workspace,
Diagnostics\DiagnosticProgressReporter.cs (2)
38
private readonly
VisualStudioWorkspace
_workspace;
91
VisualStudioWorkspace
workspace)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (2)
39
private readonly
VisualStudioWorkspace
_workspace;
52
VisualStudioWorkspace
workspace,
EditorConfigSettings\SettingsEditorFactory.cs (2)
33
private readonly
VisualStudioWorkspace
_workspace;
42
public SettingsEditorFactory(
VisualStudioWorkspace
workspace,
ExternalAccess\LegacyCodeAnalysis\LegacyCodeAnalysisVisualStudioSuppressionFixServiceAccessor.cs (2)
23
private readonly
VisualStudioWorkspace
_workspace;
29
VisualStudioWorkspace
workspace,
ExternalAccess\VSTypeScript\Api\VSTypeScriptContainedLanguageWrapper.cs (1)
50
componentModel.GetService<
VisualStudioWorkspace
>(),
FindReferences\StreamingFindUsagesPresenter.cs (3)
68
VisualStudioWorkspace
workspace,
286
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)
37
private readonly
VisualStudioWorkspace
_workspace;
46
VisualStudioWorkspace
workspace)
66
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)
42
VisualStudioWorkspace
workspace,
InheritanceMargin\InheritanceMarginViewMarginProvider.cs (1)
47
VisualStudioWorkspace
workspace,
Interactive\AbstractResetInteractiveCommand.cs (2)
18
private readonly
VisualStudioWorkspace
_workspace;
28
VisualStudioWorkspace
workspace,
Interactive\VsInteractiveWindowProvider.cs (3)
33
private readonly
VisualStudioWorkspace
_vsWorkspace;
50
VisualStudioWorkspace
workspace)
66
VisualStudioWorkspace
workspace);
Interactive\VsResetInteractive.cs (2)
35
private readonly
VisualStudioWorkspace
_workspace;
42
VisualStudioWorkspace
workspace,
LanguageService\AbstractCreateServicesOnTextViewConnection.cs (2)
35
protected
VisualStudioWorkspace
Workspace { get; }
42
VisualStudioWorkspace
workspace,
LanguageService\AbstractLanguageService`2.cs (2)
186
var
workspace = Package.ComponentModel.GetService<
VisualStudioWorkspace
>();
LanguageService\AbstractPackage`2.cs (2)
94
var
workspace = ComponentModel.GetService<
VisualStudioWorkspace
>();
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (2)
30
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)
179
if (project.Solution.Workspace is not
VisualStudioWorkspace
workspace)
NavigateTo\RoslynSearchItemsSourceProvider.cs (2)
38
private readonly
VisualStudioWorkspace
_workspace;
47
VisualStudioWorkspace
workspace,
NavigateTo\VisualStudioNavigateToItemProviderFactory.cs (2)
21
private readonly
VisualStudioWorkspace
_workspace;
29
VisualStudioWorkspace
workspace,
Progression\GraphNodeIdCreation.cs (1)
406
if (solution.Workspace is
VisualStudioWorkspace
)
ProjectSystem\Legacy\AbstractLegacyProject.cs (2)
36
protected
VisualStudioWorkspace
Workspace { get; }
73
Workspace = componentModel.GetService<
VisualStudioWorkspace
>();
ProjectSystem\MetadataReferences\VisualStudioFrameworkAssemblyPathResolverFactory.cs (3)
35
=> new Service(_threadingContext, workspaceServices.Workspace as
VisualStudioWorkspace
, _serviceProvider);
39
private readonly
VisualStudioWorkspace
? _workspace;
42
public Service(IThreadingContext threadingContext,
VisualStudioWorkspace
? workspace, IServiceProvider serviceProvider)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
69
VisualStudioWorkspace
visualStudioWorkspace)
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
230
KeyValueLogMessage.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)
59
workspaceServices.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.
44
if (workspace is not
VisualStudioWorkspace
)
61
if (workspace is not
VisualStudioWorkspace
)
StackTraceExplorer\StackTraceExplorerRootViewModel.cs (2)
21
private readonly
VisualStudioWorkspace
_workspace;
26
public StackTraceExplorerRootViewModel(IThreadingContext threadingContext,
VisualStudioWorkspace
workspace, IClassificationFormatMap formatMap, ClassificationTypeMap typeMap)
StackTraceExplorer\StackTraceExplorerTab.cs (1)
26
public StackTraceExplorerTab(IThreadingContext threadingContext,
VisualStudioWorkspace
workspace, IClassificationFormatMap formatMap, ClassificationTypeMap typeMap, int nameIndex)
StackTraceExplorer\StackTraceExplorerToolWindow.cs (2)
124
var
workspace = roslynPackage.ComponentModel.GetService<
VisualStudioWorkspace
>();
SyncNamespaces\SyncNamespacesCommandHandler.cs (2)
32
private readonly
VisualStudioWorkspace
_workspace;
42
VisualStudioWorkspace
workspace,
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (2)
37
private readonly
VisualStudioWorkspace
_workspace;
53
VisualStudioWorkspace
workspace)
TableDataSource\Suppression\VisualStudioDiagnosticListTableCommandHandler.cs (2)
37
private readonly
VisualStudioWorkspace
_workspace;
52
VisualStudioWorkspace
workspace,
TableDataSource\TableItem.cs (1)
42
projectGuid = (projectId != null && workspace is
VisualStudioWorkspace
vsWorkspace) ? vsWorkspace.GetProjectGuid(projectId) : Guid.Empty;
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
76
VisualStudioWorkspace
workspace,
TaskList\HostDiagnosticUpdateSource.cs (2)
24
private readonly Lazy<
VisualStudioWorkspace
> _workspace;
31
public HostDiagnosticUpdateSource(Lazy<
VisualStudioWorkspace
> workspace, IDiagnosticUpdateSourceRegistrationService registrationService)
TaskList\ProjectExternalErrorReporter.cs (1)
43
: this(projectId, errorCodePrefix, LanguageNames.FSharp, (VisualStudioWorkspaceImpl)serviceProvider.GetMefService<
VisualStudioWorkspace
>())
TaskList\VisualStudioTaskListService.cs (2)
77
public void Start(
VisualStudioWorkspace
workspace)
83
private async Task StartAsync(
VisualStudioWorkspace
workspace)
Telemetry\VisualStudioWorkspaceTelemetryService.cs (2)
25
private readonly
VisualStudioWorkspace
_workspace;
31
VisualStudioWorkspace
workspace,
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (2)
37
private readonly
VisualStudioWorkspace
_workspace;
51
VisualStudioWorkspace
workspace,
ValueTracking\ValueTrackingCommandHandler.cs (1)
63
VisualStudioWorkspace
workspace)
Venus\ContainedDocument.cs (2)
178
var hierarchy = ((
VisualStudioWorkspace
)_workspace).GetHierarchy(_project.Id);
201
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)
59
var
visualStudioWorkspace = (
VisualStudioWorkspace
)_workspace;
Workspace\SourceGeneratedFileManager.cs (2)
55
private readonly
VisualStudioWorkspace
_visualStudioWorkspace;
75
VisualStudioWorkspace
visualStudioWorkspace,
Workspace\VisualStudioIHostWorkspaceProvider.cs (1)
21
public 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
56
if (workspaceServices.Workspace is
VisualStudioWorkspace
)
Workspace\VisualStudioSymbolNavigationService.cs (3)
39
private readonly
VisualStudioWorkspace
_workspace;
49
VisualStudioWorkspace
workspace)
296
if (document.Project.Solution.Workspace is
VisualStudioWorkspace
visualStudioWorkspace
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
55
if (workspaceServices.Workspace is
VisualStudioWorkspace
)
Microsoft.VisualStudio.LanguageServices.CSharp (12)
CSharpPackage.cs (4)
74
var
workspace = this.ComponentModel.GetService<
VisualStudioWorkspace
>();
86
var
workspace = this.ComponentModel.GetService<
VisualStudioWorkspace
>();
Interactive\CSharpVsInteractiveWindowProvider.cs (2)
48
VisualStudioWorkspace
workspace)
70
VisualStudioWorkspace
workspace)
Interactive\CSharpVsResetInteractiveCommand.cs (1)
23
VisualStudioWorkspace
workspace,
LanguageService\CSharpCreateServicesOnTextViewConnection.cs (1)
32
VisualStudioWorkspace
workspace,
ObjectBrowser\ObjectBrowserLibraryManager.cs (1)
20
VisualStudioWorkspace
workspace)
Options\NamingStylesOptionPage.cs (2)
27
var
workspace = componentModel.GetService<
VisualStudioWorkspace
>();
Progression\CSharpGraphProvider.cs (1)
27
VisualStudioWorkspace
workspace,
Microsoft.VisualStudio.LanguageServices.Implementation (22)
CodeModel\AbstractCodeModelObject.cs (1)
76
internal
VisualStudioWorkspace
Workspace
CodeModel\CodeModelProjectCache.cs (1)
43
VisualStudioWorkspace
workspace)
CodeModel\CodeModelState.cs (2)
27
public
VisualStudioWorkspace
Workspace { get; }
34
VisualStudioWorkspace
workspace,
CodeModel\ProjectCodeModel.cs (2)
27
private readonly
VisualStudioWorkspace
_visualStudioWorkspace;
37
VisualStudioWorkspace
visualStudioWorkspace,
CodeModel\ProjectCodeModelFactory.cs (2)
36
private readonly
VisualStudioWorkspace
_visualStudioWorkspace;
47
VisualStudioWorkspace
visualStudioWorkspace,
ProjectSystem\CPS\TempPECompiler.cs (2)
23
private readonly
VisualStudioWorkspace
_workspace;
27
public TempPECompiler(
VisualStudioWorkspace
workspace)
RoslynVisualStudioWorkspace.cs (2)
32
[Export(typeof(
VisualStudioWorkspace
))]
40
/// backreference to <see cref="
VisualStudioWorkspace
"/>.
SolutionExplorer\AnalyzersCommandHandler.cs (5)
268
var
workspace = TryGetWorkspace() as
VisualStudioWorkspace
;
371
var
workspace = _tracker.SelectedFolder.Workspace as
VisualStudioWorkspace
;
697
_workspace = componentModel.DefaultExportProvider.GetExportedValueOrDefault<
VisualStudioWorkspace
>();
SolutionExplorer\AnalyzersFolderItem\AnalyzersFolderItem.cs (2)
57
var
vsWorkspace = Workspace as
VisualStudioWorkspace
;
SolutionExplorer\AnalyzersFolderItem\AnalyzersFolderItemSourceProvider.cs (1)
32
VisualStudioWorkspace
workspace,
SolutionExplorer\DiagnosticItem\CpsDiagnosticItemSourceProvider.cs (1)
38
VisualStudioWorkspace
workspace)
SolutionExplorer\SourceGeneratedFileItems\SourceGeneratedFileItemSourceProvider.cs (1)
29
public SourceGeneratedFileItemSourceProvider(
VisualStudioWorkspace
workspace, IAsynchronousOperationListenerProvider asyncListenerProvider, IThreadingContext threadingContext)
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (5)
CSharp\CSharpFindReferences.cs (1)
158
var visualStudioWorkspace = await TestServices.Shell.GetComponentModelServiceAsync<
VisualStudioWorkspace
>(HangMitigatingCancellationToken);
CSharp\CSharpSourceGenerators.cs (1)
82
var workspace = await TestServices.Shell.GetComponentModelServiceAsync<
VisualStudioWorkspace
>(HangMitigatingCancellationToken);
InProcess\EditorVerifierInProcess.cs (1)
165
var workspace = await TestServices.Shell.GetComponentModelServiceAsync<
VisualStudioWorkspace
>(cancellationToken);
InProcess\StateResetInProcess.cs (1)
48
var workspace = await TestServices.Shell.GetComponentModelServiceAsync<
VisualStudioWorkspace
>(cancellationToken);
InProcess\WorkspaceInProcess.cs (1)
133
var workspace = await GetComponentModelServiceAsync<
VisualStudioWorkspace
>(cancellationToken);
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)
21
<Export(GetType(
VisualStudioWorkspace
))>
ProjectSystemShim\Framework\TestEnvironment.vb (1)
97
<Export(GetType(
VisualStudioWorkspace
))>
Microsoft.VisualStudio.LanguageServices.UnitTests (8)
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)
18
Private ReadOnly _visualStudioWorkspace As
VisualStudioWorkspace
21
Public Sub New(workspace As TestWorkspace, 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
ProjectSystemShim\VisualStudioAnalyzerTests.vb (2)
30
Dim lazyWorkspace = New Lazy(Of
VisualStudioWorkspace
)(
50
Dim lazyWorkspace = New Lazy(Of
VisualStudioWorkspace
)(
Microsoft.VisualStudio.LanguageServices.VisualBasic (17)
LanguageService\VisualBasicCreateServicesOnTextViewConnection.vb (1)
26
workspace As
VisualStudioWorkspace
,
LanguageService\VisualBasicPackage.IVbEntryPointProvider.vb (1)
20
Dim workspace = ComponentModel.GetService(Of
VisualStudioWorkspace
)()
LanguageService\VisualBasicPackage.vb (3)
76
Dim workspace = Me.ComponentModel.GetService(Of
VisualStudioWorkspace
)()
86
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
)
Progression\VisualBasicGraphProvider.vb (1)
26
workspace As
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
)()
148
Dim visualStudioWorkspace = ComponentModel.GetService(Of
VisualStudioWorkspace
)()
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Extensions.cs (1)
15
public static Guid GetProjectGuid(this
VisualStudioWorkspace
workspace, ProjectId projectId)
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)
42
var
workspace = componentModel.GetService<
VisualStudioWorkspace
>();
Panels\WorkspacePanel.xaml.cs (1)
64
var
workspace = _window.Workspace;
VisualStudioDiagnosticsWindowPackage.cs (2)
40
private
VisualStudioWorkspace
_workspace;
83
_workspace = componentModel.GetService<
VisualStudioWorkspace
>();