@@ -7,7 +7,7 @@ import { reset } from 'vs/base/browser/dom';
7
7
import { IHoverDelegate } from 'vs/base/browser/ui/iconLabel/iconHoverDelegate' ;
8
8
import { renderIcon } from 'vs/base/browser/ui/iconLabel/iconLabels' ;
9
9
import { ToolBar } from 'vs/base/browser/ui/toolbar/toolbar' ;
10
- import { IAction } from 'vs/base/common/actions' ;
10
+ import { IAction , WorkbenchActionExecutedClassification , WorkbenchActionExecutedEvent } from 'vs/base/common/actions' ;
11
11
import { Codicon } from 'vs/base/common/codicons' ;
12
12
import { Emitter , Event } from 'vs/base/common/event' ;
13
13
import { DisposableStore } from 'vs/base/common/lifecycle' ;
@@ -20,6 +20,7 @@ import { IContextMenuService } from 'vs/platform/contextview/browser/contextView
20
20
import { IInstantiationService , ServicesAccessor } from 'vs/platform/instantiation/common/instantiation' ;
21
21
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding' ;
22
22
import { IQuickInputService } from 'vs/platform/quickinput/common/quickInput' ;
23
+ import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
23
24
import * as colors from 'vs/platform/theme/common/colorRegistry' ;
24
25
import { WindowTitle } from 'vs/workbench/browser/parts/titlebar/windowTitle' ;
25
26
import { MENUBAR_SELECTION_BACKGROUND , MENUBAR_SELECTION_FOREGROUND , PANEL_BORDER , TITLE_BAR_ACTIVE_FOREGROUND } from 'vs/workbench/common/theme' ;
@@ -42,6 +43,7 @@ export class CommandCenterControl {
42
43
@IMenuService menuService : IMenuService ,
43
44
@IQuickInputService quickInputService : IQuickInputService ,
44
45
@IKeybindingService keybindingService : IKeybindingService ,
46
+ @ITelemetryService telemetryService : ITelemetryService ,
45
47
) {
46
48
this . element . classList . add ( 'command-center' ) ;
47
49
@@ -129,6 +131,10 @@ export class CommandCenterControl {
129
131
} ) ) ;
130
132
this . _disposables . add ( quickInputService . onShow ( this . _setVisibility . bind ( this , false ) ) ) ;
131
133
this . _disposables . add ( quickInputService . onHide ( this . _setVisibility . bind ( this , true ) ) ) ;
134
+
135
+ titleToolbar . actionRunner . onDidRun ( e => {
136
+ telemetryService . publicLog2 < WorkbenchActionExecutedEvent , WorkbenchActionExecutedClassification > ( 'workbenchActionExecuted' , { id : e . action . id , from : 'commandCenter' } ) ;
137
+ } ) ;
132
138
}
133
139
134
140
private _setVisibility ( show : boolean ) : void {
0 commit comments