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);