MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / promptReloadWindow

Function promptReloadWindow

Extension/src/common.ts:937–943  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

935}
936
937export 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
945export function createTempFileWithPostfix(postfix: string): Promise<tmp.FileResult> {
946 return new Promise<tmp.FileResult>((resolve, reject) => {

Calls 1

Tested by

no test coverage detected