提交 c5d2d86a 编写于 作者: J Johannes Rieken

adopt git to final progress API, #18066

上级 5f319d48
......@@ -5,7 +5,7 @@
'use strict';
import { Uri, Command, EventEmitter, Event, SourceControlResourceState, SourceControlResourceDecorations, Disposable, window, workspace } from 'vscode';
import { Uri, Command, EventEmitter, Event, SourceControlResourceState, SourceControlResourceDecorations, Disposable, ProgressLocation, window, workspace } from 'vscode';
import { Git, Repository, Ref, Branch, Remote, PushOptions, Commit, GitErrorCodes } from './git';
import { anyEvent, eventToPromise, filterEvent, mapEvent, EmptyDisposable, combinedDisposable, dispose } from './util';
import { memoize, throttle, debounce } from './decorators';
......@@ -531,7 +531,7 @@ export class Model implements Disposable {
};
return shouldShowProgress(operation)
? window.withScmProgress(run)
? window.withProgress({ location: ProgressLocation.Scm }, run)
: run();
}
......@@ -713,4 +713,4 @@ export class Model implements Disposable {
this.repositoryDisposable.dispose();
this.disposables = dispose(this.disposables);
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册