minor adjustment to readme
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / lib / errorHandler.d.ts
1 import { Disposable } from 'vscode-languageserver-protocol';
2 /**
3  * Append messages to the output channel and format it with a title
4  *
5  * @param message The message to append to the output channel
6  */
7 export declare function addToOutput(message: string, type?: string): void;
8 /**
9  * Execute a callback safely, if it doesn't work, return default and log messages.
10  *
11  * @param cb The function to be executed,
12  * @param defaultText The default value if execution of the cb failed
13  * @param fileName The filename of the current document
14  * @returns {string} formatted text or defaultText
15  */
16 export declare function safeExecution(cb: (() => string) | Promise<string>, defaultText: string, fileName: string): string | Promise<string>;
17 /**
18  * Setup the output channel and the statusBarItem.
19  * Create a command to show the output channel
20  *
21  * @returns {Disposable} The command to open the output channel
22  */
23 export declare function setupErrorHandler(): Disposable;