core: add confirmation prompt when executing clear command history
#12495
Labels
core
issues related to the core of the application
good first issue
good first issues for new contributors
ui/ux
issues related to user interface / user experience
Feature Description
The goal is to prompt end-users to confirm whether or not they want to actually clear their command history when executing the command
Clear Command History
. The confirmation will prevent clearing history accidentally for instance, and aligns with the behavior present in VS Code.Related Code
Command Registration:
theia/packages/core/src/browser/quick-input/quick-command-frontend-contribution.ts
Lines 38 to 41 in 18b2503
ConfirmDialog:
Definition:
theia/packages/core/src/browser/dialogs.ts
Line 360 in 18b2503
Example Usage:
theia/packages/core/src/browser/dialogs.ts
Lines 394 to 402 in 18b2503
The text was updated successfully, but these errors were encountered: