mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
Revert "smoke - use workbench.action.clearEditorHistoryWithoutConfirm consistently" (#265471)
Revert "smoke - use `workbench.action.clearEditorHistoryWithoutConfirm` consi…"
This reverts commit e910fd5e1d.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user