Ver a proveniência

Renames onDidBlameabilityChange for consistency

main
Eric Amodio há 7 anos
ascendente
cometimento
3d32d86998
3 ficheiros alterados com 6 adições e 6 eliminações
  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 Ver ficheiro

@ -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 Ver ficheiro

@ -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 Ver ficheiro

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

Carregando…
Cancelar
Guardar