@@ -35,7 +35,7 @@ import type { QuickPickItemOfT } from '../../quickpicks/items/common';
3535import { createQuickPickItemOfT , createQuickPickSeparator } from '../../quickpicks/items/common' ;
3636import type { DirectiveQuickPickItem } from '../../quickpicks/items/directive' ;
3737import { createDirectiveQuickPickItem , Directive } from '../../quickpicks/items/directive' ;
38- import { command , executeCommand } from '../../system/command' ;
38+ import { executeCommand } from '../../system/command' ;
3939import { getScopedCounter } from '../../system/counter' ;
4040import { fromNow } from '../../system/date' ;
4141import { interpolate , pluralize } from '../../system/string' ;
@@ -124,13 +124,11 @@ const instanceCounter = getScopedCounter();
124124
125125const defaultCollapsedGroups : FocusGroup [ ] = [ 'draft' , 'other' , 'snoozed' ] ;
126126
127- @command ( )
128127export class FocusCommand extends QuickCommand < State > {
129128 private readonly source : Source ;
130129 private readonly telemetryContext : LaunchpadTelemetryContext | undefined ;
131130
132- // TODO: Hidden is a hack for now to avoid telemetry when this gets loaded in the hidden group of the git commands
133- constructor ( container : Container , args ?: FocusCommandArgs , hidden : boolean = false ) {
131+ constructor ( container : Container , args ?: FocusCommandArgs ) {
134132 super ( container , 'focus' , 'focus' , `GitLens Launchpad\u00a0\u00a0${ previewBadge } ` , {
135133 description : 'focus on a pull request or issue' ,
136134 } ) ;
@@ -143,7 +141,7 @@ export class FocusCommand extends QuickCommand<State> {
143141 }
144142
145143 this . source = { source : args ?. source ?? 'commandPalette' } ;
146- if ( this . container . telemetry . enabled && ! hidden ) {
144+ if ( this . container . telemetry . enabled ) {
147145 this . telemetryContext = {
148146 instance : instanceCounter . next ( ) ,
149147 'initialState.group' : args ?. state ?. initialGroup ,
0 commit comments