Skip to content

Commit

Permalink
Merge pull request #85 from incidentist/bug/clear-gutter-on-commit
Browse files Browse the repository at this point in the history
Fix: clear gutter indicators on commit #54
  • Loading branch information
mrcrowl authored Jun 3, 2020
2 parents c1c0b8f + 239b399 commit 67c5c78
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),
);
Expand All @@ -50,14 +50,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 67c5c78

Please sign in to comment.