add deprecation warning, #18066

This commit is contained in:
Johannes Rieken
2017-04-25 12:36:48 +02:00
parent 0658244f23
commit 77dd29d999
2 changed files with 3 additions and 2 deletions

View File

@@ -345,6 +345,7 @@ export function createApiFactory(
return extHostStatusBar.setStatusBarMessage(text, timeoutOrThenable);
},
withScmProgress<R>(task: (progress: vscode.Progress<number>) => Thenable<R>) {
console.warn(`[Deprecation Warning] function 'withScmProgress' is deprecated and should no longer be used. Use 'withProgress' instead.`);
return extHostProgress.withProgress(extension, { location: extHostTypes.ProgressLocation.SourceControl }, task);
},
withProgress<R>(options: vscode.ProgressOptions, task: (progress: vscode.Progress<{ message?: string; percentage?: number }>) => Thenable<R>) {