From 75b3e1f021ddc00a8803ce1b19d9ffdacebf9033 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 10 Nov 2022 18:56:31 -0500 Subject: [PATCH] Adds usage tracking for the rebase editor --- src/usageTracker.ts | 1 + src/webviews/rebase/rebaseEditor.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/usageTracker.ts b/src/usageTracker.ts index d68d804..a8f1e21 100644 --- a/src/usageTracker.ts +++ b/src/usageTracker.ts @@ -19,6 +19,7 @@ export type TrackedUsageFeatures = | 'graphWebview' | 'homeView' | 'lineHistoryView' + | 'rebaseEditor' | 'remotesView' | 'repositoriesView' | 'stashesView' diff --git a/src/webviews/rebase/rebaseEditor.ts b/src/webviews/rebase/rebaseEditor.ts index 43a4787..b612404 100644 --- a/src/webviews/rebase/rebaseEditor.ts +++ b/src/webviews/rebase/rebaseEditor.ts @@ -178,6 +178,8 @@ export class RebaseEditorProvider implements CustomTextEditorProvider, Disposabl @debug({ args: { 0: d => d.uri.toString(true) } }) async resolveCustomTextEditor(document: TextDocument, panel: WebviewPanel, _token: CancellationToken) { + void this.container.usage.track(`rebaseEditor:shown`); + const repoPath = normalizePath(Uri.joinPath(document.uri, '..', '..', '..').fsPath); const repo = this.container.git.getRepository(repoPath);