diff --git a/src/watchers/repositoryFilesWatcher.ts b/src/watchers/repositoryFilesWatcher.ts index fc956dfbe..eebd6a42f 100644 --- a/src/watchers/repositoryFilesWatcher.ts +++ b/src/watchers/repositoryFilesWatcher.ts @@ -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;