Skip to content

Commit 7c7b4a7

Browse files
committed
Instrument watermark opening
1 parent 3683dbd commit 7c7b4a7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/vs/workbench/contrib/watermark/browser/watermark.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import 'vs/css!./media/watermark';
77
import { Disposable, DisposableStore } from 'vs/base/common/lifecycle';
88
import { isMacintosh, isWeb, OS } from 'vs/base/common/platform';
99
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
10+
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
1011
import * as nls from 'vs/nls';
1112
import { Registry } from 'vs/platform/registry/common/platform';
1213
import { IConfigurationRegistry, Extensions as ConfigurationExtensions } from 'vs/platform/configuration/common/configurationRegistry';
@@ -90,7 +91,8 @@ export class WatermarkContribution extends Disposable implements IWorkbenchContr
9091
@IContextKeyService private readonly contextKeyService: IContextKeyService,
9192
@IConfigurationService private readonly configurationService: IConfigurationService,
9293
@IEditorGroupsService private readonly editorGroupsService: IEditorGroupsService,
93-
@IThemeService private readonly themeService: IThemeService
94+
@IThemeService private readonly themeService: IThemeService,
95+
@ITelemetryService private readonly telemetryService: ITelemetryService
9496
) {
9597
super();
9698

@@ -176,6 +178,11 @@ export class WatermarkContribution extends Disposable implements IWorkbenchContr
176178
this.watermarkDisposable.add(this.editorGroupsService.onDidLayout(dimension => this.handleEditorPartSize(container, dimension)));
177179

178180
this.handleEditorPartSize(container, this.editorGroupsService.contentDimension);
181+
182+
/* __GDPR__
183+
"watermark:open" : { }
184+
*/
185+
this.telemetryService.publicLog('watermark:open');
179186
}
180187

181188
private handleEditorPartSize(container: HTMLElement, dimension: dom.IDimension): void {

0 commit comments

Comments
 (0)