6 references to TryGetSelectedProjectHierarchy
Microsoft.VisualStudio.LanguageServices (6)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (2)
270
var visible = VisualStudioCommandHandlerHelpers.
TryGetSelectedProjectHierarchy
(_serviceProvider, out var hierarchy) &&
300
if (VisualStudioCommandHandlerHelpers.
TryGetSelectedProjectHierarchy
(_serviceProvider, out var hierarchy))
SyncNamespaces\SyncNamespacesCommandHandler.cs (2)
71
if (VisualStudioCommandHandlerHelpers.
TryGetSelectedProjectHierarchy
(_serviceProvider, out var projectHierarchy))
98
if (VisualStudioCommandHandlerHelpers.
TryGetSelectedProjectHierarchy
(_serviceProvider, out var projectHierarchy))
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (2)
84
var isDotNetCpsProject = VisualStudioCommandHandlerHelpers.
TryGetSelectedProjectHierarchy
(_serviceProvider, out var hierarchy) &&
110
if (VisualStudioCommandHandlerHelpers.
TryGetSelectedProjectHierarchy
(_serviceProvider, out var hierarchy))