Skip to content

Commit 180710a

Browse files
authored
debug: add some command descriptions (microsoft#209570)
For microsoft#209511
1 parent 6813d7c commit 180710a

File tree

5 files changed

+34
-16
lines changed

5 files changed

+34
-16
lines changed

src/vs/workbench/contrib/debug/browser/debugEditorActions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
276276
...nls.localize2('toggleDisassemblyViewSourceCode', "Toggle Source Code in Disassembly View"),
277277
mnemonicTitle: nls.localize({ key: 'mitogglesource', comment: ['&& denotes a mnemonic'] }, "&&ToggleSource"),
278278
},
279+
metadata: {
280+
description: nls.localize2('toggleDisassemblyViewSourceCodeDescription', 'Shows or hides source code in disassembly')
281+
},
279282
f1: true,
280283
});
281284
}

src/vs/workbench/contrib/debug/browser/debugViewlet.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ registerAction2(class extends Action2 {
197197
original: 'Open \'launch.json\'',
198198
mnemonicTitle: nls.localize({ key: 'miOpenConfigurations', comment: ['&& denotes a mnemonic'] }, "Open &&Configurations")
199199
},
200+
metadata: {
201+
description: nls.localize2('openLaunchConfigDescription', 'Opens the file used to configure how your program is debugged')
202+
},
200203
f1: true,
201204
icon: debugConfigure,
202205
precondition: CONTEXT_DEBUG_UX.notEqualsTo('simple'),

src/vs/workbench/contrib/debug/browser/repl.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,9 @@ registerAction2(class extends ViewAction<Repl> {
976976
id: 'workbench.debug.panel.action.clearReplAction',
977977
viewId: REPL_VIEW_ID,
978978
title: localize2('clearRepl', 'Clear Console'),
979+
metadata: {
980+
description: localize2('clearRepl.descriotion', 'Clears all program output from your debug REPL')
981+
},
979982
f1: true,
980983
icon: debugConsoleClearAll,
981984
menu: [{

src/vs/workbench/contrib/testing/browser/testExplorerActions.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class HideTestAction extends Action2 {
8484
constructor() {
8585
super({
8686
id: TestCommandId.HideTestAction,
87-
title: localize('hideTest', 'Hide Test'),
87+
title: localize2('hideTest', 'Hide Test'),
8888
menu: {
8989
id: MenuId.TestItem,
9090
group: 'builtin@2',
@@ -106,7 +106,7 @@ export class UnhideTestAction extends Action2 {
106106
constructor() {
107107
super({
108108
id: TestCommandId.UnhideTestAction,
109-
title: localize('unhideTest', 'Unhide Test'),
109+
title: localize2('unhideTest', 'Unhide Test'),
110110
menu: {
111111
id: MenuId.TestItem,
112112
order: ActionOrder.HideTest,
@@ -130,7 +130,7 @@ export class UnhideAllTestsAction extends Action2 {
130130
constructor() {
131131
super({
132132
id: TestCommandId.UnhideAllTestsAction,
133-
title: localize('unhideAllTests', 'Unhide All Tests'),
133+
title: localize2('unhideAllTests', 'Unhide All Tests'),
134134
});
135135
}
136136

@@ -180,7 +180,7 @@ export class DebugAction extends RunVisibleAction {
180180
constructor() {
181181
super(TestRunProfileBitset.Debug, {
182182
id: TestCommandId.DebugAction,
183-
title: localize('debug test', 'Debug Test'),
183+
title: localize2('debug test', 'Debug Test'),
184184
icon: icons.testingDebugIcon,
185185
menu: testItemInlineAndInContext(ActionOrder.Debug, TestingContextKeys.hasDebuggableTests.isEqualTo(true)),
186186
});
@@ -191,7 +191,7 @@ export class CoverageAction extends RunVisibleAction {
191191
constructor() {
192192
super(TestRunProfileBitset.Coverage, {
193193
id: TestCommandId.RunWithCoverageAction,
194-
title: localize('run with cover test', 'Run Test with Coverage'),
194+
title: localize2('run with cover test', 'Run Test with Coverage'),
195195
icon: icons.testingCoverageIcon,
196196
menu: testItemInlineAndInContext(ActionOrder.Coverage, TestingContextKeys.hasCoverableTests.isEqualTo(true)),
197197
});
@@ -202,7 +202,7 @@ export class RunUsingProfileAction extends Action2 {
202202
constructor() {
203203
super({
204204
id: TestCommandId.RunUsingProfileAction,
205-
title: localize('testing.runUsing', 'Execute Using Profile...'),
205+
title: localize2('testing.runUsing', 'Execute Using Profile...'),
206206
icon: icons.testingDebugIcon,
207207
menu: {
208208
id: MenuId.TestItem,
@@ -238,7 +238,7 @@ export class RunAction extends RunVisibleAction {
238238
constructor() {
239239
super(TestRunProfileBitset.Run, {
240240
id: TestCommandId.RunAction,
241-
title: localize('run test', 'Run Test'),
241+
title: localize2('run test', 'Run Test'),
242242
icon: icons.testingRunIcon,
243243
menu: testItemInlineAndInContext(ActionOrder.Run, TestingContextKeys.hasRunnableTests.isEqualTo(true)),
244244
});
@@ -249,7 +249,7 @@ export class SelectDefaultTestProfiles extends Action2 {
249249
constructor() {
250250
super({
251251
id: TestCommandId.SelectDefaultTestProfiles,
252-
title: localize('testing.selectDefaultTestProfiles', 'Select Default Profile'),
252+
title: localize2('testing.selectDefaultTestProfiles', 'Select Default Profile'),
253253
icon: icons.testingUpdateProfiles,
254254
category,
255255
});
@@ -274,7 +274,7 @@ export class ContinuousRunTestAction extends Action2 {
274274
constructor() {
275275
super({
276276
id: TestCommandId.ToggleContinousRunForTest,
277-
title: localize('testing.toggleContinuousRunOn', 'Turn on Continuous Run'),
277+
title: localize2('testing.toggleContinuousRunOn', 'Turn on Continuous Run'),
278278
icon: icons.testingTurnContinuousRunOn,
279279
precondition: ContextKeyExpr.or(
280280
TestingContextKeys.isContinuousModeOn.isEqualTo(true),
@@ -307,7 +307,7 @@ export class ContinuousRunUsingProfileTestAction extends Action2 {
307307
constructor() {
308308
super({
309309
id: TestCommandId.ContinousRunUsingForTest,
310-
title: localize('testing.startContinuousRunUsing', 'Start Continous Run Using...'),
310+
title: localize2('testing.startContinuousRunUsing', 'Start Continous Run Using...'),
311311
icon: icons.testingDebugIcon,
312312
menu: [
313313
{
@@ -530,7 +530,7 @@ abstract class ExecuteSelectedAction extends ViewAction<TestingExplorerView> {
530530

531531
export class GetSelectedProfiles extends Action2 {
532532
constructor() {
533-
super({ id: TestCommandId.GetSelectedProfiles, title: localize('getSelectedProfiles', 'Get Selected Profiles') });
533+
super({ id: TestCommandId.GetSelectedProfiles, title: localize2('getSelectedProfiles', 'Get Selected Profiles') });
534534
}
535535

536536
/**
@@ -556,7 +556,7 @@ export class GetSelectedProfiles extends Action2 {
556556

557557
export class GetExplorerSelection extends ViewAction<TestingExplorerView> {
558558
constructor() {
559-
super({ id: TestCommandId.GetExplorerSelection, title: localize('getExplorerSelection', 'Get Explorer Selection'), viewId: Testing.ExplorerViewId });
559+
super({ id: TestCommandId.GetExplorerSelection, title: localize2('getExplorerSelection', 'Get Explorer Selection'), viewId: Testing.ExplorerViewId });
560560
}
561561

562562
/**
@@ -640,7 +640,7 @@ export class RunAllAction extends RunOrDebugAllTestsAction {
640640
super(
641641
{
642642
id: TestCommandId.RunAllAction,
643-
title: localize('runAllTests', 'Run All Tests'),
643+
title: localize2('runAllTests', 'Run All Tests'),
644644
icon: icons.testingRunAllIcon,
645645
keybinding: {
646646
weight: KeybindingWeight.WorkbenchContrib,
@@ -658,7 +658,7 @@ export class DebugAllAction extends RunOrDebugAllTestsAction {
658658
super(
659659
{
660660
id: TestCommandId.DebugAllAction,
661-
title: localize('debugAllTests', 'Debug All Tests'),
661+
title: localize2('debugAllTests', 'Debug All Tests'),
662662
icon: icons.testingDebugIcon,
663663
keybinding: {
664664
weight: KeybindingWeight.WorkbenchContrib,
@@ -676,7 +676,7 @@ export class CoverageAllAction extends RunOrDebugAllTestsAction {
676676
super(
677677
{
678678
id: TestCommandId.RunAllWithCoverageAction,
679-
title: localize('runAllWithCoverage', 'Run All Tests with Coverage'),
679+
title: localize2('runAllWithCoverage', 'Run All Tests with Coverage'),
680680
icon: icons.testingCoverageIcon,
681681
keybinding: {
682682
weight: KeybindingWeight.WorkbenchContrib,

src/vs/workbench/contrib/testing/browser/testingOutputPeek.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1669,7 +1669,7 @@ export class CloseTestPeek extends EditorAction2 {
16691669
constructor() {
16701670
super({
16711671
id: 'editor.closeTestPeek',
1672-
title: localize('close', 'Close'),
1672+
title: localize2('close', 'Close'),
16731673
icon: Codicon.close,
16741674
precondition: ContextKeyExpr.or(TestingContextKeys.isInPeek, TestingContextKeys.isPeekVisible),
16751675
keybinding: {
@@ -2494,6 +2494,9 @@ export class GoToNextMessageAction extends Action2 {
24942494
id: GoToNextMessageAction.ID,
24952495
f1: true,
24962496
title: localize2('testing.goToNextMessage', 'Go to Next Test Failure'),
2497+
metadata: {
2498+
description: localize2('testing.goToNextMessage.description', 'Shows the next failure message in your file')
2499+
},
24972500
icon: Codicon.arrowDown,
24982501
category: Categories.Test,
24992502
keybinding: {
@@ -2527,6 +2530,9 @@ export class GoToPreviousMessageAction extends Action2 {
25272530
id: GoToPreviousMessageAction.ID,
25282531
f1: true,
25292532
title: localize2('testing.goToPreviousMessage', 'Go to Previous Test Failure'),
2533+
metadata: {
2534+
description: localize2('testing.goToPreviousMessage.description', 'Shows the previous failure message in your file')
2535+
},
25302536
icon: Codicon.arrowUp,
25312537
category: Categories.Test,
25322538
keybinding: {
@@ -2578,6 +2584,9 @@ export class ToggleTestingPeekHistory extends Action2 {
25782584
id: ToggleTestingPeekHistory.ID,
25792585
f1: true,
25802586
title: localize2('testing.toggleTestingPeekHistory', 'Toggle Test History in Peek'),
2587+
metadata: {
2588+
description: localize2('testing.toggleTestingPeekHistory.description', 'Shows or hides the history of test runs in the peek view')
2589+
},
25812590
icon: Codicon.history,
25822591
category: Categories.Test,
25832592
menu: [{

0 commit comments

Comments
 (0)