Skip to content

Commit

Permalink
fix: bind repoWatch to RepositoryFilesWatcher object (#1591)
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Reisner <mreisner@epic.com>
  • Loading branch information
FractalBoy and Marc Reisner authored Dec 21, 2022
1 parent afa025a commit 32be3f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/watchers/repositoryFilesWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ export class RepositoryFilesWatcher implements IDisposable {
!workspace.workspaceFolders.filter(w => isDescendant(w.uri.fsPath, root))
.length
) {
const repoWatcher = watch(join(root, getSvnDir()), this.repoWatch);
const repoWatcher = watch(
join(root, getSvnDir()),
this.repoWatch.bind(this)
);

repoWatcher.on("error", error => {
throw error;
Expand Down

0 comments on commit 32be3f9

Please sign in to comment.