-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Closed
Description
Refs: #92135
Now that we can support view-level progress indicators, we should expose this ability to extensions.
Current proposal:
vscode/src/vs/vscode.proposed.d.ts
Lines 1828 to 1845 in eb4ebee
//#region https://github.com/microsoft/vscode/issues/92421 | |
export enum ProgressLocation { | |
/** | |
* Show progress for a view, as progress bar inside the view (when visible), | |
* and as an overlay on the activity bar icon. Doesn't support cancellation or discrete progress. | |
*/ | |
View = 25, | |
} | |
export interface ProgressOptions { | |
/** | |
* The target view identifier for showing progress when using [ProgressLocation.View](#ProgressLocation.View). | |
*/ | |
viewId?: string | |
} | |
//#endregion |
Alternative # 1:
export interface ProgressOptions {
location: ProgressLocation | string;
}
Alternative # 2:
export interface ProgressOptions {
location: ProgressLocation | { viewId: string };
}
//cc @jrieken