From b41db6119374a19f030f194ac859733a95eb7009 Mon Sep 17 00:00:00 2001 From: George Garside Date: Mon, 15 Apr 2024 08:19:44 +0100 Subject: [PATCH] Fix color picker command title (#210349) #209612 incorrectly changed the title to a description rather than adding a description. Move the description to the description and revert the editor title to what it was previously. --- .../colorPicker/browser/standaloneColorPickerActions.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.ts b/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.ts index 26bf28c0c02cd..9d531552008f3 100644 --- a/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.ts +++ b/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.ts @@ -18,13 +18,16 @@ export class ShowOrFocusStandaloneColorPicker extends EditorAction2 { super({ id: 'editor.action.showOrFocusStandaloneColorPicker', title: { - ...localize2('showOrFocusStandaloneColorPicker', "Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors."), + ...localize2('showOrFocusStandaloneColorPicker', "Show or Focus Standalone Color Picker"), mnemonicTitle: localize({ key: 'mishowOrFocusStandaloneColorPicker', comment: ['&& denotes a mnemonic'] }, "&&Show or Focus Standalone Color Picker"), }, precondition: undefined, menu: [ { id: MenuId.CommandPalette }, - ] + ], + metadata: { + description: localize2('showOrFocusStandaloneColorPickerDescription', "Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors."), + } }); } runEditorCommand(_accessor: ServicesAccessor, editor: ICodeEditor) {