Browse Source

Renames onDidBlameabilityChange for consistency

main
Eric Amodio 7 years ago
parent
commit
3d32d86998
3 changed files with 6 additions and 6 deletions
  1. +1
    -1
      src/annotations/annotationController.ts
  2. +1
    -1
      src/currentLineController.ts
  3. +4
    -4
      src/git/gitContextTracker.ts

+ 1
- 1
src/annotations/annotationController.ts View File

@ -280,7 +280,7 @@ export class AnnotationController extends Disposable {
subscriptions.push(window.onDidChangeTextEditorViewColumn(this._onTextEditorViewColumnChanged, this));
subscriptions.push(workspace.onDidChangeTextDocument(this._onTextDocumentChanged, this));
subscriptions.push(workspace.onDidCloseTextDocument(this._onTextDocumentClosed, this));
subscriptions.push(this.gitContextTracker.onDidBlameabilityChange(this._onBlameabilityChanged, this));
subscriptions.push(this.gitContextTracker.onDidChangeBlameability(this._onBlameabilityChanged, this));
this._annotationsDisposable = Disposable.from(...subscriptions);
}

+ 1
- 1
src/currentLineController.ts View File

@ -108,7 +108,7 @@ export class CurrentLineController extends Disposable {
subscriptions.push(window.onDidChangeActiveTextEditor(this._onActiveTextEditorChanged, this));
subscriptions.push(window.onDidChangeTextEditorSelection(this._onTextEditorSelectionChanged, this));
subscriptions.push(this.gitContextTracker.onDidBlameabilityChange(this._onBlameabilityChanged, this));
subscriptions.push(this.gitContextTracker.onDidChangeBlameability(this._onBlameabilityChanged, this));
this._trackCurrentLineDisposable = Disposable.from(...subscriptions);
}

+ 4
- 4
src/git/gitContextTracker.ts View File

@ -12,9 +12,9 @@ export interface BlameabilityChangeEvent {
export class GitContextTracker extends Disposable {
private _onDidBlameabilityChange = new EventEmitter<BlameabilityChangeEvent>();
get onDidBlameabilityChange(): Event<BlameabilityChangeEvent> {
return this._onDidBlameabilityChange.event;
private _onDidChangeBlameability = new EventEmitter<BlameabilityChangeEvent>();
get onDidChangeBlameability(): Event<BlameabilityChangeEvent> {
return this._onDidChangeBlameability.event;
}
private _disposable: Disposable;
@ -154,7 +154,7 @@ export class GitContextTracker extends Disposable {
try {
setCommandContext(CommandContext.IsBlameable, blameable);
this._onDidBlameabilityChange.fire({
this._onDidChangeBlameability.fire({
blameable: blameable,
editor: this._editor
});

Loading…
Cancel
Save