From c8f1c4eca9321223ffec32ea984e93d3601e4e23 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Sat, 6 Sep 2025 13:28:15 +0200 Subject: [PATCH] Revert "smoke - use `workbench.action.clearEditorHistoryWithoutConfirm` consistently" (#265471) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revert "smoke - use `workbench.action.clearEditorHistoryWithoutConfirm` consi…" This reverts commit e910fd5e1d0217cb61776296be22d8d2e28f4a6b. --- test/automation/src/quickaccess.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/automation/src/quickaccess.ts b/test/automation/src/quickaccess.ts index 2c7c4054252..d417a4a2c29 100644 --- a/test/automation/src/quickaccess.ts +++ b/test/automation/src/quickaccess.ts @@ -7,6 +7,7 @@ import { Editors } from './editors'; import { Code } from './code'; import { QuickInput } from './quickinput'; import { basename, isAbsolute } from 'path'; +import { Quality } from './application'; enum QuickAccessKind { Files = 1, @@ -22,7 +23,11 @@ export class QuickAccess { // make sure the file quick access is not "polluted" // with entries from the editor history when opening - await this.runCommand('workbench.action.clearEditorHistoryWithoutConfirm'); + if (this.code.quality !== Quality.Stable) { + await this.runCommand('workbench.action.clearEditorHistoryWithoutConfirm'); + } else { + await this.runCommand('workbench.action.clearEditorHistory'); + } const PollingStrategy = { Stop: true,