mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-16 10:58:34 -05:00
Renames onDidBlameabilityChange for consistency
This commit is contained in:
@@ -280,7 +280,7 @@ export class AnnotationController extends Disposable {
|
|||||||
subscriptions.push(window.onDidChangeTextEditorViewColumn(this._onTextEditorViewColumnChanged, this));
|
subscriptions.push(window.onDidChangeTextEditorViewColumn(this._onTextEditorViewColumnChanged, this));
|
||||||
subscriptions.push(workspace.onDidChangeTextDocument(this._onTextDocumentChanged, this));
|
subscriptions.push(workspace.onDidChangeTextDocument(this._onTextDocumentChanged, this));
|
||||||
subscriptions.push(workspace.onDidCloseTextDocument(this._onTextDocumentClosed, 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);
|
this._annotationsDisposable = Disposable.from(...subscriptions);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export class CurrentLineController extends Disposable {
|
|||||||
|
|
||||||
subscriptions.push(window.onDidChangeActiveTextEditor(this._onActiveTextEditorChanged, this));
|
subscriptions.push(window.onDidChangeActiveTextEditor(this._onActiveTextEditorChanged, this));
|
||||||
subscriptions.push(window.onDidChangeTextEditorSelection(this._onTextEditorSelectionChanged, 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);
|
this._trackCurrentLineDisposable = Disposable.from(...subscriptions);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ export interface BlameabilityChangeEvent {
|
|||||||
|
|
||||||
export class GitContextTracker extends Disposable {
|
export class GitContextTracker extends Disposable {
|
||||||
|
|
||||||
private _onDidBlameabilityChange = new EventEmitter<BlameabilityChangeEvent>();
|
private _onDidChangeBlameability = new EventEmitter<BlameabilityChangeEvent>();
|
||||||
get onDidBlameabilityChange(): Event<BlameabilityChangeEvent> {
|
get onDidChangeBlameability(): Event<BlameabilityChangeEvent> {
|
||||||
return this._onDidBlameabilityChange.event;
|
return this._onDidChangeBlameability.event;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _disposable: Disposable;
|
private _disposable: Disposable;
|
||||||
@@ -154,7 +154,7 @@ export class GitContextTracker extends Disposable {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
setCommandContext(CommandContext.IsBlameable, blameable);
|
setCommandContext(CommandContext.IsBlameable, blameable);
|
||||||
this._onDidBlameabilityChange.fire({
|
this._onDidChangeBlameability.fire({
|
||||||
blameable: blameable,
|
blameable: blameable,
|
||||||
editor: this._editor
|
editor: this._editor
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user