From 65736a6ce77308f5e97083cf30841212ccafcbfd Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 21 Sep 2017 18:43:46 -0400 Subject: [PATCH] Adds watching of creates/deletes inside .git --- src/gitService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gitService.ts b/src/gitService.ts index ad0081f..b64cdbf 100644 --- a/src/gitService.ts +++ b/src/gitService.ts @@ -156,6 +156,8 @@ export class GitService extends Disposable { disposables.push(workspace.onDidChangeTextDocument(this._onTextDocumentChanged, this)); disposables.push(workspace.onDidSaveTextDocument(d => this._removeCachedEntry(d, RemoveCacheReason.DocumentSaved))); disposables.push(this._repoWatcher.onDidChange(this._onRepoChanged, this)); + disposables.push(this._repoWatcher.onDidCreate(this._onRepoChanged, this)); + disposables.push(this._repoWatcher.onDidDelete(this._onRepoChanged, this)); this._cacheDisposable = Disposable.from(...disposables); }