(message: string)
| 935 | } |
| 936 | |
| 937 | export async function promptReloadWindow(message: string): Promise<void> { |
| 938 | const reload: string = localize("reload.string", "Reload"); |
| 939 | const value: string | undefined = await vscode.window.showInformationMessage(message, reload); |
| 940 | if (value === reload) { |
| 941 | return vscode.commands.executeCommand("workbench.action.reloadWindow"); |
| 942 | } |
| 943 | } |
| 944 | |
| 945 | export function createTempFileWithPostfix(postfix: string): Promise<tmp.FileResult> { |
| 946 | return new Promise<tmp.FileResult>((resolve, reject) => { |
no test coverage detected