diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index 1dc663b0a148137c3504c87f34b87c68adf291af..046f27a3f102fc95807ff668a055df5f26cf7d92 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -3876,14 +3876,14 @@ declare module 'vscode' { export function setStatusBarMessage(text: string): Disposable; /** + * @deprecated This function **deprecated**. Use `withProgress` instead. + * * ~~Show progress in the Source Control viewlet while running the given callback and while * its returned promise isn't resolve or rejected.~~ * * @param task A callback returning a promise. Progress increments can be reported with * the provided [progress](#Progress)-object. * @return The thenable the task did rseturn. - * - * @deprecated Use `withProgress` instead. */ export function withScmProgress(task: (progress: Progress) => Thenable): Thenable; diff --git a/src/vs/workbench/api/node/extHost.api.impl.ts b/src/vs/workbench/api/node/extHost.api.impl.ts index 2a8214a42c8a60424acd428c4dcdf5389cc1be21..fe5ce8fe5e089050abbd11b92527899ae338ecd9 100644 --- a/src/vs/workbench/api/node/extHost.api.impl.ts +++ b/src/vs/workbench/api/node/extHost.api.impl.ts @@ -345,6 +345,7 @@ export function createApiFactory( return extHostStatusBar.setStatusBarMessage(text, timeoutOrThenable); }, withScmProgress(task: (progress: vscode.Progress) => Thenable) { + 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(options: vscode.ProgressOptions, task: (progress: vscode.Progress<{ message?: string; percentage?: number }>) => Thenable) {