src/vs/workbench/browser/parts/editor/editorActions.ts/ClearEditorHistoryAction/run
class ClearEditorHistoryAction:	override async run(): Promise<void> {

		// Ask for confirmation
		const { confirmed } = await this.dialogService.confirm({
			message: localize('confirmClearEditorHistoryMessage', "Do you want to clear the history of recently opened editors?"),
			detail: localize('confirmClearDetail', "This action is irreversible!"),
			primaryButton: localize({ key: 'clearButtonLabel', comment: ['&& denotes a mnemonic'] }, "&&Clear"),
			type: 'warning'
		});

		if (!confirmed) {
			return;
		}

		// Clear editor history
		this.historyService.clear();
	}