git: autofetch

This commit is contained in:
Joao Moreno
2017-01-13 16:10:10 +01:00
parent c7fca1c18f
commit 65478f4b5e
3 changed files with 73 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ import { CommandCenter } from './commands';
import { CheckoutStatusBar, SyncStatusBar } from './statusbar';
import { filterEvent, anyEvent, throttle } from './util';
import { GitContentProvider } from './contentProvider';
import { AutoFetcher } from './autofetch';
import * as nls from 'vscode-nls';
import { decorate, debounce } from 'core-decorators';
@@ -73,6 +74,8 @@ async function init(disposables: Disposable[]): Promise<void> {
const checkoutStatusBar = new CheckoutStatusBar(model);
const syncStatusBar = new SyncStatusBar(model);
const autoFetcher = new AutoFetcher(model);
disposables.push(
commandCenter,
provider,
@@ -81,7 +84,8 @@ async function init(disposables: Disposable[]): Promise<void> {
fsWatcher,
watcher,
checkoutStatusBar,
syncStatusBar
syncStatusBar,
autoFetcher
);
}