rename ProgressLocation.Scm to ProgressLocation.SourceControl, #18066

This commit is contained in:
Johannes Rieken
2017-04-25 11:45:27 +02:00
parent c5d2d86a70
commit 2d64239944
5 changed files with 6 additions and 6 deletions

View File

@@ -345,7 +345,7 @@ export function createApiFactory(
return extHostStatusBar.setStatusBarMessage(text, timeoutOrThenable);
},
withScmProgress<R>(task: (progress: vscode.Progress<number>) => Thenable<R>) {
return extHostProgress.withProgress(extension, { location: extHostTypes.ProgressLocation.Scm }, task);
return extHostProgress.withProgress(extension, { location: extHostTypes.ProgressLocation.SourceControl }, task);
},
withProgress<R>(options: vscode.ProgressOptions, task: (progress: vscode.Progress<{ message?: string; percentage?: number }>) => Thenable<R>) {
return extHostProgress.withProgress(extension, options, task);

View File

@@ -409,7 +409,7 @@ export namespace EndOfLine {
export namespace ProgressLocation {
export function from(loc: vscode.ProgressLocation): MainProgressLocation {
switch (loc) {
case types.ProgressLocation.Scm: return MainProgressLocation.Scm;
case types.ProgressLocation.SourceControl: return MainProgressLocation.Scm;
case types.ProgressLocation.Window: return MainProgressLocation.Window;
}
return undefined;

View File

@@ -1268,6 +1268,6 @@ export class ShellTask extends BaseTask {
}
export enum ProgressLocation {
Scm = 1,
SourceControl = 1,
Window = 10,
}