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

progress - make withXYZProgress method return the thenable of their tasks

上级 48701207
......@@ -27,9 +27,9 @@ declare module 'vscode' {
*
* @param task A function callback that represents a long running operation.
*/
export function withWindowProgress(task: (progress: Progress<string>, token: CancellationToken) => Thenable<any>): void;
export function withWindowProgress<R>(task: (progress: Progress<string>, token: CancellationToken) => Thenable<R>): Thenable<R>;
export function withScmProgress(task: (progress: Progress<number>) => Thenable<any>): void;
export function withScmProgress<R>(task: (progress: Progress<number>) => Thenable<R>): Thenable<R>;
export function sampleFunction(): Thenable<any>;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册