瀏覽代碼

Adds watching of creates/deletes inside .git

main
Eric Amodio 7 年之前
父節點
當前提交
65736a6ce7
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/gitService.ts

+ 2
- 0
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);
}

Loading…
取消
儲存