1 | import { Point, TextEditor, Range } from "atom";
|
2 | import { CancellationToken, CancellationTokenSource } from "vscode-jsonrpc";
|
3 | export declare type ReportBusyWhile = <T>(title: string, f: () => Promise<T>) => Promise<T>;
|
4 |
|
5 | export declare function getWordAtPosition(editor: TextEditor, position: Point): Range;
|
6 | export declare function escapeRegExp(string: string): string;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare function cancelAndRefreshCancellationToken<T extends object>(key: T, cancellationTokens: WeakMap<T, CancellationTokenSource>): CancellationToken;
|
12 | export declare function doWithCancellationToken<T1 extends object, T2>(key: T1, cancellationTokens: WeakMap<T1, CancellationTokenSource>, work: (token: CancellationToken) => Promise<T2>): Promise<T2>;
|
13 | export declare function assertUnreachable(_: never): never;
|
14 | export declare function promiseWithTimeout<T>(ms: number, promise: Promise<T>): Promise<T>;
|
15 | export declare const rootPathDefault: string;
|
16 | export declare const exeExtentionDefault: string;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export declare function getExePath(exeName: string, rootPath?: string, exeExtention?: string): string;
|