Browse Source

Adds usage tracking for the rebase editor

main
Eric Amodio 2 years ago
parent
commit
75b3e1f021
2 changed files with 3 additions and 0 deletions
  1. +1
    -0
      src/usageTracker.ts
  2. +2
    -0
      src/webviews/rebase/rebaseEditor.ts

+ 1
- 0
src/usageTracker.ts View File

@ -19,6 +19,7 @@ export type TrackedUsageFeatures =
| 'graphWebview'
| 'homeView'
| 'lineHistoryView'
| 'rebaseEditor'
| 'remotesView'
| 'repositoriesView'
| 'stashesView'

+ 2
- 0
src/webviews/rebase/rebaseEditor.ts View File

@ -178,6 +178,8 @@ export class RebaseEditorProvider implements CustomTextEditorProvider, Disposabl
@debug<RebaseEditorProvider['resolveCustomTextEditor']>({ 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);

Loading…
Cancel
Save