mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
rename ProgressLocation.Scm to ProgressLocation.SourceControl, #18066
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1268,6 +1268,6 @@ export class ShellTask extends BaseTask {
|
||||
}
|
||||
|
||||
export enum ProgressLocation {
|
||||
Scm = 1,
|
||||
SourceControl = 1,
|
||||
Window = 10,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user