Skip to content

Commit 1b0d516

Browse files
committed
Fixes recent changes annotations
1 parent bf8025f commit 1b0d516

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/annotations/recentChangesAnnotationProvider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export class RecentChangesAnnotationProvider extends AnnotationProviderBase {
2020
highlightDecoration: TextEditorDecorationType | undefined
2121
) {
2222
super(editor, trackedDocument, decoration, highlightDecoration);
23+
24+
this._uri = trackedDocument.uri;
2325
}
2426

2527
async onProvideAnnotation(shaOrLine?: string | number): Promise<boolean> {

src/commands.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
import { commands } from 'vscode';
2+
import { CommandContext, setCommandContext } from './constants';
33
import { Container } from './container';
44

55
export * from './commands/common';
@@ -49,13 +49,10 @@ export * from './commands/toggleFileRecentChanges';
4949
export * from './commands/toggleLineBlame';
5050

5151
import * as Commands from './commands';
52-
import { CommandContext, setCommandContext } from './constants';
5352

5453
export function configureCommands(): void {
5554
setCommandContext(CommandContext.KeyMap, Container.config.keymap);
5655

57-
Container.context.subscriptions.push(commands.registerTextEditorCommand('gitlens.computingFileAnnotations', () => { }));
58-
5956
Container.context.subscriptions.push(new Commands.CloseUnchangedFilesCommand());
6057
Container.context.subscriptions.push(new Commands.OpenChangedFilesCommand());
6158
Container.context.subscriptions.push(new Commands.ExternalDiffCommand());

src/commands/clearFileAnnotations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Logger } from '../logger';
77
export class ClearFileAnnotationsCommand extends EditorCommand {
88

99
constructor() {
10-
super(Commands.ClearFileAnnotations);
10+
super([Commands.ClearFileAnnotations, Commands.ComputingFileAnnotations]);
1111
}
1212

1313
async execute(editor: TextEditor, edit: TextEditorEdit, uri?: Uri): Promise<any> {

src/commands/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Logger } from '../logger';
88
export enum Commands {
99
ClearFileAnnotations = 'gitlens.clearFileAnnotations',
1010
CloseUnchangedFiles = 'gitlens.closeUnchangedFiles',
11+
ComputingFileAnnotations = 'gitlens.computingFileAnnotations',
1112
CopyMessageToClipboard = 'gitlens.copyMessageToClipboard',
1213
CopyShaToClipboard = 'gitlens.copyShaToClipboard',
1314
DiffDirectory = 'gitlens.diffDirectory',

0 commit comments

Comments
 (0)