Skip to content

Commit ed4edd6

Browse files
authored
Adding command descriptions for TF-IDF search (microsoft#209612)
adding descriptions
1 parent 8cae0f0 commit ed4edd6

File tree

5 files changed

+82
-25
lines changed

5 files changed

+82
-25
lines changed

src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class ShowOrFocusStandaloneColorPicker extends EditorAction2 {
1818
super({
1919
id: 'editor.action.showOrFocusStandaloneColorPicker',
2020
title: {
21-
...localize2('showOrFocusStandaloneColorPicker', "Show or Focus Standalone Color Picker"),
21+
...localize2('showOrFocusStandaloneColorPicker', "Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors."),
2222
mnemonicTitle: localize({ key: 'mishowOrFocusStandaloneColorPicker', comment: ['&& denotes a mnemonic'] }, "&&Show or Focus Standalone Color Picker"),
2323
},
2424
precondition: undefined,
@@ -47,6 +47,9 @@ class HideStandaloneColorPicker extends EditorAction {
4747
kbOpts: {
4848
primary: KeyCode.Escape,
4949
weight: KeybindingWeight.EditorContrib
50+
},
51+
metadata: {
52+
description: localize2('hideColorPickerDescription', "Hide the standalone color picker."),
5053
}
5154
});
5255
}
@@ -70,6 +73,9 @@ class InsertColorWithStandaloneColorPicker extends EditorAction {
7073
kbOpts: {
7174
primary: KeyCode.Enter,
7275
weight: KeybindingWeight.EditorContrib
76+
},
77+
metadata: {
78+
description: localize2('insertColorWithStandaloneColorPickerDescription', "Insert hex/rgb/hsl colors with the focused standalone color picker."),
7379
}
7480
});
7581
}

src/vs/editor/contrib/hover/browser/hover.ts

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ class ShowOrFocusHoverAction extends EditorAction {
470470
]
471471
}, "Show or Focus Hover"),
472472
metadata: {
473-
description: `Show or Focus Hover`,
473+
description: nls.localize2('showOrFocusHoverDescription', 'Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position.'),
474474
args: [{
475475
name: 'args',
476476
schema: {
@@ -551,7 +551,10 @@ class ShowDefinitionPreviewHoverAction extends EditorAction {
551551
]
552552
}, "Show Definition Preview Hover"),
553553
alias: 'Show Definition Preview Hover',
554-
precondition: undefined
554+
precondition: undefined,
555+
metadata: {
556+
description: nls.localize2('showDefinitionPreviewHoverDescription', 'Show the definition preview hover in the editor.'),
557+
},
555558
});
556559
}
557560

@@ -596,7 +599,10 @@ class ScrollUpHoverAction extends EditorAction {
596599
kbExpr: EditorContextKeys.hoverFocused,
597600
primary: KeyCode.UpArrow,
598601
weight: KeybindingWeight.EditorContrib
599-
}
602+
},
603+
metadata: {
604+
description: nls.localize2('scrollUpHoverDescription', 'Scroll up the editor hover.')
605+
},
600606
});
601607
}
602608

@@ -626,7 +632,10 @@ class ScrollDownHoverAction extends EditorAction {
626632
kbExpr: EditorContextKeys.hoverFocused,
627633
primary: KeyCode.DownArrow,
628634
weight: KeybindingWeight.EditorContrib
629-
}
635+
},
636+
metadata: {
637+
description: nls.localize2('scrollDownHoverDescription', 'Scroll down the editor hover.'),
638+
},
630639
});
631640
}
632641

@@ -656,7 +665,10 @@ class ScrollLeftHoverAction extends EditorAction {
656665
kbExpr: EditorContextKeys.hoverFocused,
657666
primary: KeyCode.LeftArrow,
658667
weight: KeybindingWeight.EditorContrib
659-
}
668+
},
669+
metadata: {
670+
description: nls.localize2('scrollLeftHoverDescription', 'Scroll left the editor hover.'),
671+
},
660672
});
661673
}
662674

@@ -686,7 +698,10 @@ class ScrollRightHoverAction extends EditorAction {
686698
kbExpr: EditorContextKeys.hoverFocused,
687699
primary: KeyCode.RightArrow,
688700
weight: KeybindingWeight.EditorContrib
689-
}
701+
},
702+
metadata: {
703+
description: nls.localize2('scrollRightHoverDescription', 'Scroll right the editor hover.')
704+
},
690705
});
691706
}
692707

@@ -717,7 +732,10 @@ class PageUpHoverAction extends EditorAction {
717732
primary: KeyCode.PageUp,
718733
secondary: [KeyMod.Alt | KeyCode.UpArrow],
719734
weight: KeybindingWeight.EditorContrib
720-
}
735+
},
736+
metadata: {
737+
description: nls.localize2('pageUpHoverDescription', 'Page up the editor hover.'),
738+
},
721739
});
722740
}
723741

@@ -749,7 +767,10 @@ class PageDownHoverAction extends EditorAction {
749767
primary: KeyCode.PageDown,
750768
secondary: [KeyMod.Alt | KeyCode.DownArrow],
751769
weight: KeybindingWeight.EditorContrib
752-
}
770+
},
771+
metadata: {
772+
description: nls.localize2('pageDownHoverDescription', 'Page down the editor hover.'),
773+
},
753774
});
754775
}
755776

@@ -780,7 +801,10 @@ class GoToTopHoverAction extends EditorAction {
780801
primary: KeyCode.Home,
781802
secondary: [KeyMod.CtrlCmd | KeyCode.UpArrow],
782803
weight: KeybindingWeight.EditorContrib
783-
}
804+
},
805+
metadata: {
806+
description: nls.localize2('goToTopHoverDescription', 'Go to the top of the editor hover.'),
807+
},
784808
});
785809
}
786810

@@ -812,7 +836,10 @@ class GoToBottomHoverAction extends EditorAction {
812836
primary: KeyCode.End,
813837
secondary: [KeyMod.CtrlCmd | KeyCode.DownArrow],
814838
weight: KeybindingWeight.EditorContrib
815-
}
839+
},
840+
metadata: {
841+
description: nls.localize2('goToBottomHoverDescription', 'Go to the bottom of the editor hover.')
842+
},
816843
});
817844
}
818845

src/vs/editor/contrib/indentation/browser/indentation.ts

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ export class IndentationToSpacesAction extends EditorAction {
3434
id: IndentationToSpacesAction.ID,
3535
label: nls.localize('indentationToSpaces', "Convert Indentation to Spaces"),
3636
alias: 'Convert Indentation to Spaces',
37-
precondition: EditorContextKeys.writable
37+
precondition: EditorContextKeys.writable,
38+
metadata: {
39+
description: nls.localize2('indentationToSpacesDescription', "Conver the tab indentation to spaces."),
40+
}
3841
});
3942
}
4043

@@ -68,7 +71,10 @@ export class IndentationToTabsAction extends EditorAction {
6871
id: IndentationToTabsAction.ID,
6972
label: nls.localize('indentationToTabs', "Convert Indentation to Tabs"),
7073
alias: 'Convert Indentation to Tabs',
71-
precondition: EditorContextKeys.writable
74+
precondition: EditorContextKeys.writable,
75+
metadata: {
76+
description: nls.localize2('indentationToTabsDescription', "Conver the spaces indentation to tabs."),
77+
}
7278
});
7379
}
7480

@@ -161,7 +167,10 @@ export class IndentUsingTabs extends ChangeIndentationSizeAction {
161167
id: IndentUsingTabs.ID,
162168
label: nls.localize('indentUsingTabs', "Indent Using Tabs"),
163169
alias: 'Indent Using Tabs',
164-
precondition: undefined
170+
precondition: undefined,
171+
metadata: {
172+
description: nls.localize2('indentUsingTabsDescription', "Use indentation with tabs."),
173+
}
165174
});
166175
}
167176
}
@@ -175,7 +184,10 @@ export class IndentUsingSpaces extends ChangeIndentationSizeAction {
175184
id: IndentUsingSpaces.ID,
176185
label: nls.localize('indentUsingSpaces', "Indent Using Spaces"),
177186
alias: 'Indent Using Spaces',
178-
precondition: undefined
187+
precondition: undefined,
188+
metadata: {
189+
description: nls.localize2('indentUsingSpacesDescription', "Use indentation with spaces."),
190+
}
179191
});
180192
}
181193
}
@@ -189,7 +201,10 @@ export class ChangeTabDisplaySize extends ChangeIndentationSizeAction {
189201
id: ChangeTabDisplaySize.ID,
190202
label: nls.localize('changeTabDisplaySize', "Change Tab Display Size"),
191203
alias: 'Change Tab Display Size',
192-
precondition: undefined
204+
precondition: undefined,
205+
metadata: {
206+
description: nls.localize2('changeTabDisplaySizeDescription', "Change the space size equivalent of the tab."),
207+
}
193208
});
194209
}
195210
}
@@ -203,7 +218,10 @@ export class DetectIndentation extends EditorAction {
203218
id: DetectIndentation.ID,
204219
label: nls.localize('detectIndentation', "Detect Indentation from Content"),
205220
alias: 'Detect Indentation from Content',
206-
precondition: undefined
221+
precondition: undefined,
222+
metadata: {
223+
description: nls.localize2('detectIndentationDescription', "Detect the indentation from content."),
224+
}
207225
});
208226
}
209227

@@ -226,7 +244,10 @@ export class ReindentLinesAction extends EditorAction {
226244
id: 'editor.action.reindentlines',
227245
label: nls.localize('editor.reindentlines', "Reindent Lines"),
228246
alias: 'Reindent Lines',
229-
precondition: EditorContextKeys.writable
247+
precondition: EditorContextKeys.writable,
248+
metadata: {
249+
description: nls.localize2('editor.reindentlinesDescription', "Reindent the lines of the editor."),
250+
}
230251
});
231252
}
232253

@@ -252,7 +273,10 @@ export class ReindentSelectedLinesAction extends EditorAction {
252273
id: 'editor.action.reindentselectedlines',
253274
label: nls.localize('editor.reindentselectedlines', "Reindent Selected Lines"),
254275
alias: 'Reindent Selected Lines',
255-
precondition: EditorContextKeys.writable
276+
precondition: EditorContextKeys.writable,
277+
metadata: {
278+
description: nls.localize2('editor.reindentselectedlinesDescription', "Reindent the selected lines of the editor."),
279+
}
256280
});
257281
}
258282

src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class ToggleStickyScroll extends Action2 {
2121
super({
2222
id: 'editor.action.toggleStickyScroll',
2323
title: {
24-
...localize2('toggleEditorStickyScroll', "Toggle Editor Sticky Scroll"),
24+
...localize2('toggleEditorStickyScroll', "Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport."),
2525
mnemonicTitle: localize({ key: 'mitoggleStickyScroll', comment: ['&& denotes a mnemonic'] }, "&&Toggle Editor Sticky Scroll"),
2626
},
2727
category: Categories.View,
@@ -53,7 +53,7 @@ export class FocusStickyScroll extends EditorAction2 {
5353
super({
5454
id: 'editor.action.focusStickyScroll',
5555
title: {
56-
...localize2('focusStickyScroll', "Focus Sticky Scroll"),
56+
...localize2('focusStickyScroll', "Focus on the editor sticky scroll"),
5757
mnemonicTitle: localize({ key: 'mifocusStickyScroll', comment: ['&& denotes a mnemonic'] }, "&&Focus Sticky Scroll"),
5858
},
5959
precondition: ContextKeyExpr.and(ContextKeyExpr.has('config.editor.stickyScroll.enabled'), EditorContextKeys.stickyScrollVisible),
@@ -72,7 +72,7 @@ export class SelectNextStickyScrollLine extends EditorAction2 {
7272
constructor() {
7373
super({
7474
id: 'editor.action.selectNextStickyScrollLine',
75-
title: localize2('selectNextStickyScrollLine.title', "Select next sticky scroll line"),
75+
title: localize2('selectNextStickyScrollLine.title', "Select the next editor sticky scroll line"),
7676
precondition: EditorContextKeys.stickyScrollFocused.isEqualTo(true),
7777
keybinding: {
7878
weight,
@@ -90,7 +90,7 @@ export class SelectPreviousStickyScrollLine extends EditorAction2 {
9090
constructor() {
9191
super({
9292
id: 'editor.action.selectPreviousStickyScrollLine',
93-
title: localize2('selectPreviousStickyScrollLine.title', "Select previous sticky scroll line"),
93+
title: localize2('selectPreviousStickyScrollLine.title', "Select the previous sticky scroll line"),
9494
precondition: EditorContextKeys.stickyScrollFocused.isEqualTo(true),
9595
keybinding: {
9696
weight,
@@ -108,7 +108,7 @@ export class GoToStickyScrollLine extends EditorAction2 {
108108
constructor() {
109109
super({
110110
id: 'editor.action.goToFocusedStickyScrollLine',
111-
title: localize2('goToFocusedStickyScrollLine.title', "Go to focused sticky scroll line"),
111+
title: localize2('goToFocusedStickyScrollLine.title', "Go to the focused sticky scroll line"),
112112
precondition: EditorContextKeys.stickyScrollFocused.isEqualTo(true),
113113
keybinding: {
114114
weight,

src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function registerMoveActions() {
9595
constructor() {
9696
super({
9797
id: `workbench.action.chat.openInNewWindow`,
98-
title: localize2('interactiveSession.openInNewWindow.label', "Open Chat in New Window"),
98+
title: localize2('interactiveSession.openInNewWindow.label', "Open/move the panel chat to an undocked window."),
9999
category: CHAT_CATEGORY,
100100
precondition: CONTEXT_PROVIDER_EXISTS,
101101
f1: true

0 commit comments

Comments
 (0)