Skip to content

Commit

Permalink
Fix: clear gutter indicators on commit #54
Browse files Browse the repository at this point in the history
  • Loading branch information
incidentist committed Jun 1, 2020
1 parent 7a375f4 commit 239b399
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/contentProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class HgContentProvider {

constructor(private model: Model) {
this.disposables.push(
model.onDidChangeRepository(this.eventuallyFireChangeEvents, this),
model.onDidChangeRepository(this.onDidChangeRepository, this),
model.onDidChangeOriginalResource(this.onDidChangeOriginalResource, this),
workspace.registerTextDocumentContentProvider('hg', this),
workspace.registerTextDocumentContentProvider('hg-original', this)
Expand All @@ -51,14 +51,14 @@ export class HgContentProvider {
this.eventuallyFireChangeEvents();
}

private onDidChangeOriginalResource({ uri }: OriginalResourceChangeEvent): void {
if (uri.scheme !== 'file') {
return;
}

this._onDidChange.fire(toHgUri(uri, '', true));
private onDidChangeOriginalResource({ uri }: OriginalResourceChangeEvent): void {
if (uri.scheme !== 'file') {
return;
}

this._onDidChange.fire(toHgUri(uri, '', true));
}

@debounce(1100)
private eventuallyFireChangeEvents(): void {
this.fireChangeEvents();
Expand Down

0 comments on commit 239b399

Please sign in to comment.