From 6be7e9c960193b2fed8649b3da02eb471780af17 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 8 Jan 2018 13:27:24 -0500 Subject: [PATCH] Fixes not detecting gitignore changes --- src/git/models/repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/models/repository.ts b/src/git/models/repository.ts index 13a9f5a..3d2152a 100644 --- a/src/git/models/repository.ts +++ b/src/git/models/repository.ts @@ -98,7 +98,7 @@ export class Repository extends Disposable { this._suspended = suspended; - const watcher = workspace.createFileSystemWatcher(new RelativePattern(folder, '**/.git/{config,index,HEAD,refs/stash,refs/heads/**,refs/remotes/**,refs/tags/**}')); + const watcher = workspace.createFileSystemWatcher(new RelativePattern(folder, '{**/.git/config,**/.git/index,**/.git/HEAD,**/.git/refs/stash,**/.git/refs/heads/**,**/.git/refs/remotes/**,**/.git/refs/tags/**,**/.gitignore}')); this._disposable = Disposable.from( watcher, watcher.onDidChange(this.onRepositoryChanged, this),