UNPKG

621 BTypeScriptView Raw
1import { Connection } from "vscode-languageserver";
2export interface LoadingHandler {
3 handle<T>(message: string, value: Promise<T>): Promise<T>;
4 handleSync<T>(message: string, value: () => T): T;
5 showError(message: string): void;
6}
7export declare class LanguageServerLoadingHandler implements LoadingHandler {
8 private connection;
9 constructor(connection: Connection);
10 private latestLoadingToken;
11 handle<T>(message: string, value: Promise<T>): Promise<T>;
12 handleSync<T>(message: string, value: () => T): T;
13 showError(message: string): void;
14}
15//# sourceMappingURL=loadingHandler.d.ts.map
\No newline at end of file