From e400f27c848cae1f858ba09bdcfe76daad1deee0 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 11 Sep 2017 00:50:40 -0400 Subject: [PATCH] Adds refs changes into repo watcher Catches branch & remote changes --- src/gitService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitService.ts b/src/gitService.ts index f81fa11..75f73af 100644 --- a/src/gitService.ts +++ b/src/gitService.ts @@ -145,7 +145,7 @@ export class GitService extends Disposable { if (cfg.advanced.caching.enabled) { this._cacheDisposable && this._cacheDisposable.dispose(); - this._repoWatcher = this._repoWatcher || workspace.createFileSystemWatcher('**/.git/{index,HEAD,refs/stash}', true, false, true); + this._repoWatcher = this._repoWatcher || workspace.createFileSystemWatcher('**/.git/{index,HEAD,refs/stash,refs/heads/**,refs/remotes/**}'); const disposables: Disposable[] = [];