UNPKG

1.14 kBTypeScriptView Raw
1/// <reference types="lodash" />
2import { CancellationToken } from '../../shared/vscode-languageserver-protocol';
3import { ProgressClient, ProgressMessage, ProgressUpdate } from '../common';
4import { StatusBar } from './status-bar';
5export declare class ProgressStatusBarItem implements ProgressClient {
6 protected readonly id = "theia-progress-status-bar-item";
7 protected readonly statusBar: StatusBar;
8 protected messagesByProgress: Map<string, string | undefined>;
9 protected incomingQueue: string[];
10 get currentProgress(): string | undefined;
11 showProgress(progressId: string, message: ProgressMessage, cancellationToken: CancellationToken): Promise<string | undefined>;
12 protected processEvent(progressId: string, event: 'start' | 'done', message?: string): void;
13 protected readonly triggerUpdate: import("lodash").DebouncedFunc<() => void>;
14 reportProgress(progressId: string, update: ProgressUpdate, originalMessage: ProgressMessage, _cancellationToken: CancellationToken): Promise<void>;
15 protected update(progressId: string | undefined): void;
16}
17//# sourceMappingURL=progress-status-bar-item.d.ts.map
\No newline at end of file