extensions/typescript-language-features/src/ui/jsNodeWalkthrough.electron.ts/debugJsFile
async function debugJsFile(walkthroughState: JsWalkthroughState) {
	const hasNode = await nodeWasResolvable();
	if (!hasNode) {
		const reloadResponse = vscode.l10n.t("Reload VS Code");
		const debugAnywayResponse = vscode.l10n.t("Try Debugging Anyway");
		const dismissResponse = vscode.l10n.t("Dismiss");
		const response = await vscode.window.showErrorMessage(
			// The message
			vscode.l10n.t("We couldn\'t find Node.js on this computer. If you just installed it, you might need to reload VS Code."),
			// The options
			reloadResponse,
			debugAnywayResponse,
			dismissResponse,
		);

		if (response === undefined || response === dismissResponse) {
			return;
		}
		if (response === reloadResponse) {
			vscode.commands.executeCommand('workbench.action.reloadWindow');
			return;
		}
	}
	tryDebugRelevantDocument(walkthroughState.exampleJsDocument, 'javascript', ['.mjs', '.js'], () => createNewJSFile(walkthroughState));
}