18 references to VisualStudioCommandHandlerHelpers
Microsoft.VisualStudio.LanguageServices (18)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (10)
81
VisualStudioCommandHandlerHelpers
.AddCommand(menuCommandService, RunCodeAnalysisForSelectedProjectCommandId, VSConstants.VSStd2K, OnRunCodeAnalysisForSelectedProject, OnRunCodeAnalysisForSelectedProjectStatus);
82
VisualStudioCommandHandlerHelpers
.AddCommand(menuCommandService, ID.RoslynCommands.RunCodeAnalysisForProject, Guids.RoslynGroupId, OnRunCodeAnalysisForSelectedProject, OnRunCodeAnalysisForSelectedProjectStatus);
83
VisualStudioCommandHandlerHelpers
.AddCommand(menuCommandService, ID.RoslynCommands.AnalysisScopeDefault, Guids.RoslynGroupId, OnSetAnalysisScopeDefault, OnSetAnalysisScopeDefaultStatus);
84
VisualStudioCommandHandlerHelpers
.AddCommand(menuCommandService, ID.RoslynCommands.AnalysisScopeCurrentDocument, Guids.RoslynGroupId, OnSetAnalysisScopeCurrentDocument, OnSetAnalysisScopeCurrentDocumentStatus);
85
VisualStudioCommandHandlerHelpers
.AddCommand(menuCommandService, ID.RoslynCommands.AnalysisScopeOpenDocuments, Guids.RoslynGroupId, OnSetAnalysisScopeOpenDocuments, OnSetAnalysisScopeOpenDocumentsStatus);
86
VisualStudioCommandHandlerHelpers
.AddCommand(menuCommandService, ID.RoslynCommands.AnalysisScopeEntireSolution, Guids.RoslynGroupId, OnSetAnalysisScopeEntireSolution, OnSetAnalysisScopeEntireSolutionStatus);
87
VisualStudioCommandHandlerHelpers
.AddCommand(menuCommandService, ID.RoslynCommands.AnalysisScopeNone, Guids.RoslynGroupId, OnSetAnalysisScopeNone, OnSetAnalysisScopeNoneStatus);
270
var visible =
VisualStudioCommandHandlerHelpers
.TryGetSelectedProjectHierarchy(_serviceProvider, out var hierarchy) &&
284
enabled = !
VisualStudioCommandHandlerHelpers
.IsBuildActive();
300
if (
VisualStudioCommandHandlerHelpers
.TryGetSelectedProjectHierarchy(_serviceProvider, out var hierarchy))
SyncNamespaces\SyncNamespacesCommandHandler.cs (4)
61
VisualStudioCommandHandlerHelpers
.AddCommand(menuCommandService, ID.RoslynCommands.SyncNamespaces, Guids.RoslynGroupId, OnSyncNamespacesForSelectedProject, OnSyncNamespacesForSelectedProjectStatus);
71
if (
VisualStudioCommandHandlerHelpers
.TryGetSelectedProjectHierarchy(_serviceProvider, out var projectHierarchy))
83
var enabled = visible && !
VisualStudioCommandHandlerHelpers
.IsBuildActive();
98
if (
VisualStudioCommandHandlerHelpers
.TryGetSelectedProjectHierarchy(_serviceProvider, out var projectHierarchy))
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (4)
72
VisualStudioCommandHandlerHelpers
.AddCommand(menuCommandService, ID.RoslynCommands.RemoveUnusedReferences, Guids.RoslynGroupId, OnRemoveUnusedReferencesForSelectedProject, OnRemoveUnusedReferencesForSelectedProjectStatus);
84
var isDotNetCpsProject =
VisualStudioCommandHandlerHelpers
.TryGetSelectedProjectHierarchy(_serviceProvider, out var hierarchy) &&
94
enabled = !
VisualStudioCommandHandlerHelpers
.IsBuildActive();
110
if (
VisualStudioCommandHandlerHelpers
.TryGetSelectedProjectHierarchy(_serviceProvider, out var hierarchy))