src/vs/workbench/electron-sandbox/parts/dialogs/dialogHandler.ts/NativeDialogHandler/show
class NativeDialogHandler:	async show(severity: Severity, message: string, buttons?: string[], dialogOptions?: IDialogOptions): Promise<IShowResult> {
		this.logService.trace('DialogService#show', message);

		const { options, buttonIndexMap } = this.massageMessageBoxOptions({
			message,
			buttons,
			type: (severity === Severity.Info) ? 'question' : (severity === Severity.Error) ? 'error' : (severity === Severity.Warning) ? 'warning' : 'none',
			cancelId: dialogOptions ? dialogOptions.cancelId : undefined,
			detail: dialogOptions ? dialogOptions.detail : undefined,
			checkboxLabel: dialogOptions?.checkbox?.label ?? undefined,
			checkboxChecked: dialogOptions?.checkbox?.checked ?? undefined
		});

		const result = await this.nativeHostService.showMessageBox(options);
		return { choice: buttonIndexMap[result.response], checkboxChecked: result.checkboxChecked };
	}