Revert "smoke - use workbench.action.clearEditorHistoryWithoutConfirm consistently" (#265471)

Revert "smoke - use `workbench.action.clearEditorHistoryWithoutConfirm` consi…"

This reverts commit e910fd5e1d.
This commit is contained in:
Benjamin Pasero
2025-09-06 13:28:15 +02:00
committed by GitHub
parent dfc6a2ab33
commit c8f1c4eca9

View File

@@ -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,