Skip to content

Commit 65736a6

Browse files
committed
Adds watching of creates/deletes inside .git
1 parent ed42eba commit 65736a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gitService.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ export class GitService extends Disposable {
156156
disposables.push(workspace.onDidChangeTextDocument(this._onTextDocumentChanged, this));
157157
disposables.push(workspace.onDidSaveTextDocument(d => this._removeCachedEntry(d, RemoveCacheReason.DocumentSaved)));
158158
disposables.push(this._repoWatcher.onDidChange(this._onRepoChanged, this));
159+
disposables.push(this._repoWatcher.onDidCreate(this._onRepoChanged, this));
160+
disposables.push(this._repoWatcher.onDidDelete(this._onRepoChanged, this));
159161

160162
this._cacheDisposable = Disposable.from(...disposables);
161163
}

0 commit comments

Comments
 (0)