@codingame/monaco-vscode-testing-service-override 27.0.0 → 28.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +21 -21
- package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDisplayUtils.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/icons.js +29 -29
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageView.js +15 -15
- package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +72 -72
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsOutput.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsTree.js +22 -22
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsViewContent.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/browser/testing.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/testing/browser/testingConfigurationUi.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/browser/testingDecorations.js +19 -19
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +15 -15
- package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/browser/testingViewPaneContainer.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/theme.js +32 -32
- package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +24 -24
- package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/testingChatAgentTool.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +31 -31
- package/vscode/src/vs/workbench/contrib/testing/common/testingProgressMessages.js +5 -5
|
@@ -70,14 +70,14 @@ var ActionOrder;
|
|
|
70
70
|
ActionOrder[ActionOrder["ContinuousRunTest"] = 2147483647] = "ContinuousRunTest";
|
|
71
71
|
})(ActionOrder || (ActionOrder = {}));
|
|
72
72
|
const hasAnyTestProvider = ContextKeyGreaterExpr.create(TestingContextKeys.providerCount.key, 0);
|
|
73
|
-
const LABEL_RUN_TESTS = ( localize2(
|
|
74
|
-
const LABEL_DEBUG_TESTS = ( localize2(
|
|
75
|
-
const LABEL_COVERAGE_TESTS = ( localize2(
|
|
73
|
+
const LABEL_RUN_TESTS = ( localize2(14071, "Run Tests"));
|
|
74
|
+
const LABEL_DEBUG_TESTS = ( localize2(14072, "Debug Tests"));
|
|
75
|
+
const LABEL_COVERAGE_TESTS = ( localize2(14073, "Run Tests with Coverage"));
|
|
76
76
|
class HideTestAction extends Action2 {
|
|
77
77
|
constructor() {
|
|
78
78
|
super({
|
|
79
79
|
id: TestCommandId.HideTestAction,
|
|
80
|
-
title: ( localize2(
|
|
80
|
+
title: ( localize2(14074, "Hide Test")),
|
|
81
81
|
menu: {
|
|
82
82
|
id: MenuId.TestItem,
|
|
83
83
|
group: "builtin@2",
|
|
@@ -97,7 +97,7 @@ class UnhideTestAction extends Action2 {
|
|
|
97
97
|
constructor() {
|
|
98
98
|
super({
|
|
99
99
|
id: TestCommandId.UnhideTestAction,
|
|
100
|
-
title: ( localize2(
|
|
100
|
+
title: ( localize2(14075, "Unhide Test")),
|
|
101
101
|
menu: {
|
|
102
102
|
id: MenuId.TestItem,
|
|
103
103
|
order: ActionOrder.HideTest,
|
|
@@ -119,7 +119,7 @@ class UnhideAllTestsAction extends Action2 {
|
|
|
119
119
|
constructor() {
|
|
120
120
|
super({
|
|
121
121
|
id: TestCommandId.UnhideAllTestsAction,
|
|
122
|
-
title: ( localize2(
|
|
122
|
+
title: ( localize2(14076, "Unhide All Tests"))
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
run(accessor) {
|
|
@@ -163,7 +163,7 @@ class DebugAction extends RunVisibleAction {
|
|
|
163
163
|
constructor() {
|
|
164
164
|
super(TestRunProfileBitset.Debug, {
|
|
165
165
|
id: TestCommandId.DebugAction,
|
|
166
|
-
title: ( localize2(
|
|
166
|
+
title: ( localize2(14077, "Debug Test")),
|
|
167
167
|
icon: testingDebugIcon,
|
|
168
168
|
menu: testItemInlineAndInContext(ActionOrder.Debug, ( TestingContextKeys.hasDebuggableTests.isEqualTo(true)))
|
|
169
169
|
});
|
|
@@ -173,7 +173,7 @@ class CoverageAction extends RunVisibleAction {
|
|
|
173
173
|
constructor() {
|
|
174
174
|
super(TestRunProfileBitset.Coverage, {
|
|
175
175
|
id: TestCommandId.RunWithCoverageAction,
|
|
176
|
-
title: ( localize2(
|
|
176
|
+
title: ( localize2(14078, "Run Test with Coverage")),
|
|
177
177
|
icon: testingCoverageIcon,
|
|
178
178
|
menu: testItemInlineAndInContext(ActionOrder.Coverage, ( TestingContextKeys.hasCoverableTests.isEqualTo(true)))
|
|
179
179
|
});
|
|
@@ -183,7 +183,7 @@ class RunUsingProfileAction extends Action2 {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: TestCommandId.RunUsingProfileAction,
|
|
186
|
-
title: ( localize2(
|
|
186
|
+
title: ( localize2(14079, "Execute Using Profile...")),
|
|
187
187
|
icon: testingDebugIcon,
|
|
188
188
|
menu: {
|
|
189
189
|
id: MenuId.TestItem,
|
|
@@ -216,7 +216,7 @@ class RunAction extends RunVisibleAction {
|
|
|
216
216
|
constructor() {
|
|
217
217
|
super(TestRunProfileBitset.Run, {
|
|
218
218
|
id: TestCommandId.RunAction,
|
|
219
|
-
title: ( localize2(
|
|
219
|
+
title: ( localize2(14080, "Run Test")),
|
|
220
220
|
icon: testingRunIcon,
|
|
221
221
|
menu: testItemInlineAndInContext(ActionOrder.Run, ( TestingContextKeys.hasRunnableTests.isEqualTo(true)))
|
|
222
222
|
});
|
|
@@ -226,7 +226,7 @@ class SelectDefaultTestProfiles extends Action2 {
|
|
|
226
226
|
constructor() {
|
|
227
227
|
super({
|
|
228
228
|
id: TestCommandId.SelectDefaultTestProfiles,
|
|
229
|
-
title: ( localize2(
|
|
229
|
+
title: ( localize2(14081, "Select Default Profile")),
|
|
230
230
|
icon: testingUpdateProfiles,
|
|
231
231
|
category
|
|
232
232
|
});
|
|
@@ -248,13 +248,13 @@ class ContinuousRunTestAction extends Action2 {
|
|
|
248
248
|
constructor() {
|
|
249
249
|
super({
|
|
250
250
|
id: TestCommandId.ToggleContinousRunForTest,
|
|
251
|
-
title: ( localize2(
|
|
251
|
+
title: ( localize2(14082, "Turn on Continuous Run")),
|
|
252
252
|
icon: testingTurnContinuousRunOn,
|
|
253
253
|
precondition: ( ContextKeyExpr.or(( TestingContextKeys.isContinuousModeOn.isEqualTo(true)), ( TestingContextKeys.isParentRunningContinuously.isEqualTo(false)))),
|
|
254
254
|
toggled: {
|
|
255
255
|
condition: ( TestingContextKeys.isContinuousModeOn.isEqualTo(true)),
|
|
256
256
|
icon: testingContinuousIsOn,
|
|
257
|
-
title: ( localize(
|
|
257
|
+
title: ( localize(14083, "Turn off Continuous Run"))
|
|
258
258
|
},
|
|
259
259
|
menu: testItemInlineAndInContext(ActionOrder.ContinuousRunTest, ( TestingContextKeys.supportsContinuousRun.isEqualTo(true)))
|
|
260
260
|
});
|
|
@@ -275,7 +275,7 @@ class ContinuousRunUsingProfileTestAction extends Action2 {
|
|
|
275
275
|
constructor() {
|
|
276
276
|
super({
|
|
277
277
|
id: TestCommandId.ContinousRunUsingForTest,
|
|
278
|
-
title: ( localize2(
|
|
278
|
+
title: ( localize2(14084, "Start Continous Run Using...")),
|
|
279
279
|
icon: testingDebugIcon,
|
|
280
280
|
menu: [{
|
|
281
281
|
id: MenuId.TestItem,
|
|
@@ -304,7 +304,7 @@ class ConfigureTestProfilesAction extends Action2 {
|
|
|
304
304
|
constructor() {
|
|
305
305
|
super({
|
|
306
306
|
id: TestCommandId.ConfigureTestProfilesAction,
|
|
307
|
-
title: ( localize2(
|
|
307
|
+
title: ( localize2(14085, "Configure Test Profiles")),
|
|
308
308
|
icon: testingUpdateProfiles,
|
|
309
309
|
f1: true,
|
|
310
310
|
category,
|
|
@@ -318,7 +318,7 @@ class ConfigureTestProfilesAction extends Action2 {
|
|
|
318
318
|
const commands = acessor.get(ICommandService);
|
|
319
319
|
const testProfileService = acessor.get(ITestProfileService);
|
|
320
320
|
const profile = await commands.executeCommand("vscode.pickTestProfile", {
|
|
321
|
-
placeholder: ( localize(
|
|
321
|
+
placeholder: ( localize(14086, "Select a profile to update")),
|
|
322
322
|
showConfigureButtons: false,
|
|
323
323
|
onlyConfigurable: true,
|
|
324
324
|
onlyGroup
|
|
@@ -341,7 +341,7 @@ class StopContinuousRunAction extends Action2 {
|
|
|
341
341
|
constructor() {
|
|
342
342
|
super({
|
|
343
343
|
id: TestCommandId.StopContinousRun,
|
|
344
|
-
title: ( localize2(
|
|
344
|
+
title: ( localize2(14087, "Stop Continuous Run")),
|
|
345
345
|
category,
|
|
346
346
|
icon: testingTurnContinuousRunOff,
|
|
347
347
|
menu: continuousMenus(true)
|
|
@@ -368,7 +368,7 @@ function selectContinuousRunProfiles(crs, notificationService, quickInputService
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
if (items.length === 0) {
|
|
371
|
-
notificationService.info(( localize(
|
|
371
|
+
notificationService.info(( localize(14088, "No test continuous run-enabled profiles were found")));
|
|
372
372
|
return Promise.resolve([]);
|
|
373
373
|
}
|
|
374
374
|
if (items.length === 1) {
|
|
@@ -397,7 +397,7 @@ function selectContinuousRunProfiles(crs, notificationService, quickInputService
|
|
|
397
397
|
const quickpick = disposables.add(quickInputService.createQuickPick({
|
|
398
398
|
useSeparators: true
|
|
399
399
|
}));
|
|
400
|
-
quickpick.title = ( localize(
|
|
400
|
+
quickpick.title = ( localize(14089, "Select profiles to run when files change:"));
|
|
401
401
|
quickpick.canSelectMany = true;
|
|
402
402
|
quickpick.items = qpItems;
|
|
403
403
|
quickpick.selectedItems = selectedItems;
|
|
@@ -417,7 +417,7 @@ class StartContinuousRunAction extends Action2 {
|
|
|
417
417
|
constructor() {
|
|
418
418
|
super({
|
|
419
419
|
id: TestCommandId.StartContinousRun,
|
|
420
|
-
title: ( localize2(
|
|
420
|
+
title: ( localize2(14090, "Start Continuous Run")),
|
|
421
421
|
category,
|
|
422
422
|
icon: testingTurnContinuousRunOn,
|
|
423
423
|
menu: continuousMenus(false)
|
|
@@ -472,7 +472,7 @@ class GetSelectedProfiles extends Action2 {
|
|
|
472
472
|
constructor() {
|
|
473
473
|
super({
|
|
474
474
|
id: TestCommandId.GetSelectedProfiles,
|
|
475
|
-
title: ( localize2(
|
|
475
|
+
title: ( localize2(14091, "Get Selected Profiles"))
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
478
|
run(accessor) {
|
|
@@ -492,7 +492,7 @@ class GetExplorerSelection extends ViewAction {
|
|
|
492
492
|
constructor() {
|
|
493
493
|
super({
|
|
494
494
|
id: TestCommandId.GetExplorerSelection,
|
|
495
|
-
title: ( localize2(
|
|
495
|
+
title: ( localize2(14092, "Get Explorer Selection")),
|
|
496
496
|
viewId: Testing.ExplorerViewId
|
|
497
497
|
});
|
|
498
498
|
}
|
|
@@ -538,7 +538,7 @@ class CoverageSelectedAction extends ExecuteSelectedAction {
|
|
|
538
538
|
const showDiscoveringWhile = (progress, task) => {
|
|
539
539
|
return progress.withProgress({
|
|
540
540
|
location: ProgressLocation.Window,
|
|
541
|
-
title: ( localize(
|
|
541
|
+
title: ( localize(14093, "Discovering Tests"))
|
|
542
542
|
}, () => task);
|
|
543
543
|
};
|
|
544
544
|
class RunOrDebugAllTestsAction extends Action2 {
|
|
@@ -574,14 +574,14 @@ class RunAllAction extends RunOrDebugAllTestsAction {
|
|
|
574
574
|
constructor() {
|
|
575
575
|
super({
|
|
576
576
|
id: TestCommandId.RunAllAction,
|
|
577
|
-
title: ( localize2(
|
|
577
|
+
title: ( localize2(14094, "Run All Tests")),
|
|
578
578
|
icon: testingRunAllIcon,
|
|
579
579
|
keybinding: {
|
|
580
580
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
581
581
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.Semicolon, KeyCode.KeyA)
|
|
582
582
|
}
|
|
583
583
|
}, TestRunProfileBitset.Run, ( localize(
|
|
584
|
-
|
|
584
|
+
14095,
|
|
585
585
|
"No tests found in this workspace. You may need to install a test provider extension"
|
|
586
586
|
)));
|
|
587
587
|
}
|
|
@@ -590,14 +590,14 @@ class DebugAllAction extends RunOrDebugAllTestsAction {
|
|
|
590
590
|
constructor() {
|
|
591
591
|
super({
|
|
592
592
|
id: TestCommandId.DebugAllAction,
|
|
593
|
-
title: ( localize2(
|
|
593
|
+
title: ( localize2(14096, "Debug All Tests")),
|
|
594
594
|
icon: testingDebugIcon,
|
|
595
595
|
keybinding: {
|
|
596
596
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
597
597
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.Semicolon, KeyMod.CtrlCmd | KeyCode.KeyA)
|
|
598
598
|
}
|
|
599
599
|
}, TestRunProfileBitset.Debug, ( localize(
|
|
600
|
-
|
|
600
|
+
14097,
|
|
601
601
|
"No debuggable tests found in this workspace. You may need to install a test provider extension"
|
|
602
602
|
)));
|
|
603
603
|
}
|
|
@@ -606,7 +606,7 @@ class CoverageAllAction extends RunOrDebugAllTestsAction {
|
|
|
606
606
|
constructor() {
|
|
607
607
|
super({
|
|
608
608
|
id: TestCommandId.RunAllWithCoverageAction,
|
|
609
|
-
title: ( localize2(
|
|
609
|
+
title: ( localize2(14098, "Run All Tests with Coverage")),
|
|
610
610
|
icon: testingCoverageIcon,
|
|
611
611
|
keybinding: {
|
|
612
612
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -616,7 +616,7 @@ class CoverageAllAction extends RunOrDebugAllTestsAction {
|
|
|
616
616
|
)
|
|
617
617
|
}
|
|
618
618
|
}, TestRunProfileBitset.Coverage, ( localize(
|
|
619
|
-
|
|
619
|
+
14099,
|
|
620
620
|
"No tests with coverage runners found in this workspace. You may need to install a test provider extension"
|
|
621
621
|
)));
|
|
622
622
|
}
|
|
@@ -625,7 +625,7 @@ class CancelTestRunAction extends Action2 {
|
|
|
625
625
|
constructor() {
|
|
626
626
|
super({
|
|
627
627
|
id: TestCommandId.CancelTestRunAction,
|
|
628
|
-
title: ( localize2(
|
|
628
|
+
title: ( localize2(14100, "Cancel Test Run")),
|
|
629
629
|
icon: testingCancelIcon,
|
|
630
630
|
category,
|
|
631
631
|
keybinding: {
|
|
@@ -662,7 +662,7 @@ class TestingViewAsListAction extends ViewAction {
|
|
|
662
662
|
super({
|
|
663
663
|
id: TestCommandId.TestingViewAsListAction,
|
|
664
664
|
viewId: Testing.ExplorerViewId,
|
|
665
|
-
title: ( localize2(
|
|
665
|
+
title: ( localize2(14101, "View as List")),
|
|
666
666
|
toggled: ( TestingContextKeys.viewMode.isEqualTo(TestExplorerViewMode.List)),
|
|
667
667
|
menu: {
|
|
668
668
|
id: MenuId.ViewTitle,
|
|
@@ -681,7 +681,7 @@ class TestingViewAsTreeAction extends ViewAction {
|
|
|
681
681
|
super({
|
|
682
682
|
id: TestCommandId.TestingViewAsTreeAction,
|
|
683
683
|
viewId: Testing.ExplorerViewId,
|
|
684
|
-
title: ( localize2(
|
|
684
|
+
title: ( localize2(14102, "View as Tree")),
|
|
685
685
|
toggled: ( TestingContextKeys.viewMode.isEqualTo(TestExplorerViewMode.Tree)),
|
|
686
686
|
menu: {
|
|
687
687
|
id: MenuId.ViewTitle,
|
|
@@ -700,7 +700,7 @@ class TestingSortByStatusAction extends ViewAction {
|
|
|
700
700
|
super({
|
|
701
701
|
id: TestCommandId.TestingSortByStatusAction,
|
|
702
702
|
viewId: Testing.ExplorerViewId,
|
|
703
|
-
title: ( localize2(
|
|
703
|
+
title: ( localize2(14103, "Sort by Status")),
|
|
704
704
|
toggled: ( TestingContextKeys.viewSorting.isEqualTo(TestExplorerViewSorting.ByStatus)),
|
|
705
705
|
menu: {
|
|
706
706
|
id: MenuId.ViewTitle,
|
|
@@ -719,7 +719,7 @@ class TestingSortByLocationAction extends ViewAction {
|
|
|
719
719
|
super({
|
|
720
720
|
id: TestCommandId.TestingSortByLocationAction,
|
|
721
721
|
viewId: Testing.ExplorerViewId,
|
|
722
|
-
title: ( localize2(
|
|
722
|
+
title: ( localize2(14104, "Sort by Location")),
|
|
723
723
|
toggled: ( TestingContextKeys.viewSorting.isEqualTo(TestExplorerViewSorting.ByLocation)),
|
|
724
724
|
menu: {
|
|
725
725
|
id: MenuId.ViewTitle,
|
|
@@ -738,7 +738,7 @@ class TestingSortByDurationAction extends ViewAction {
|
|
|
738
738
|
super({
|
|
739
739
|
id: TestCommandId.TestingSortByDurationAction,
|
|
740
740
|
viewId: Testing.ExplorerViewId,
|
|
741
|
-
title: ( localize2(
|
|
741
|
+
title: ( localize2(14105, "Sort by Duration")),
|
|
742
742
|
toggled: ( TestingContextKeys.viewSorting.isEqualTo(TestExplorerViewSorting.ByDuration)),
|
|
743
743
|
menu: {
|
|
744
744
|
id: MenuId.ViewTitle,
|
|
@@ -756,7 +756,7 @@ class ShowMostRecentOutputAction extends Action2 {
|
|
|
756
756
|
constructor() {
|
|
757
757
|
super({
|
|
758
758
|
id: TestCommandId.ShowMostRecentOutputAction,
|
|
759
|
-
title: ( localize2(
|
|
759
|
+
title: ( localize2(14106, "Show Output")),
|
|
760
760
|
category,
|
|
761
761
|
icon: Codicon.terminal,
|
|
762
762
|
keybinding: {
|
|
@@ -786,7 +786,7 @@ class CollapseAllAction extends ViewAction {
|
|
|
786
786
|
super({
|
|
787
787
|
id: TestCommandId.CollapseAllAction,
|
|
788
788
|
viewId: Testing.ExplorerViewId,
|
|
789
|
-
title: ( localize2(
|
|
789
|
+
title: ( localize2(14107, "Collapse All Tests")),
|
|
790
790
|
icon: Codicon.collapseAll,
|
|
791
791
|
menu: {
|
|
792
792
|
id: MenuId.ViewTitle,
|
|
@@ -804,7 +804,7 @@ class ClearTestResultsAction extends Action2 {
|
|
|
804
804
|
constructor() {
|
|
805
805
|
super({
|
|
806
806
|
id: TestCommandId.ClearTestResultsAction,
|
|
807
|
-
title: ( localize2(
|
|
807
|
+
title: ( localize2(14108, "Clear All Results")),
|
|
808
808
|
category,
|
|
809
809
|
icon: Codicon.clearAll,
|
|
810
810
|
menu: [{
|
|
@@ -833,7 +833,7 @@ class GoToTest extends Action2 {
|
|
|
833
833
|
constructor() {
|
|
834
834
|
super({
|
|
835
835
|
id: TestCommandId.GoToTest,
|
|
836
|
-
title: ( localize2(
|
|
836
|
+
title: ( localize2(14109, "Go to Test")),
|
|
837
837
|
icon: Codicon.goToFile,
|
|
838
838
|
menu: {
|
|
839
839
|
id: MenuId.TestItem,
|
|
@@ -970,7 +970,7 @@ class ExecuteTestAtCursor extends Action2 {
|
|
|
970
970
|
return;
|
|
971
971
|
}
|
|
972
972
|
if (editor) {
|
|
973
|
-
MessageController.get(editor)?.showMessage(( localize(
|
|
973
|
+
MessageController.get(editor)?.showMessage(( localize(14110, "No tests found here")), position);
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
976
|
}
|
|
@@ -978,7 +978,7 @@ class RunAtCursor extends ExecuteTestAtCursor {
|
|
|
978
978
|
constructor() {
|
|
979
979
|
super({
|
|
980
980
|
id: TestCommandId.RunAtCursor,
|
|
981
|
-
title: ( localize2(
|
|
981
|
+
title: ( localize2(14111, "Run Test at Cursor")),
|
|
982
982
|
category,
|
|
983
983
|
keybinding: {
|
|
984
984
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -992,7 +992,7 @@ class DebugAtCursor extends ExecuteTestAtCursor {
|
|
|
992
992
|
constructor() {
|
|
993
993
|
super({
|
|
994
994
|
id: TestCommandId.DebugAtCursor,
|
|
995
|
-
title: ( localize2(
|
|
995
|
+
title: ( localize2(14112, "Debug Test at Cursor")),
|
|
996
996
|
category,
|
|
997
997
|
keybinding: {
|
|
998
998
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1006,7 +1006,7 @@ class CoverageAtCursor extends ExecuteTestAtCursor {
|
|
|
1006
1006
|
constructor() {
|
|
1007
1007
|
super({
|
|
1008
1008
|
id: TestCommandId.CoverageAtCursor,
|
|
1009
|
-
title: ( localize2(
|
|
1009
|
+
title: ( localize2(14113, "Run Test at Cursor with Coverage")),
|
|
1010
1010
|
category,
|
|
1011
1011
|
keybinding: {
|
|
1012
1012
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1038,7 +1038,7 @@ class ExecuteTestsUnderUriAction extends Action2 {
|
|
|
1038
1038
|
const tests = await Iterable.asyncToArray(testsUnderUri(testService, accessor.get(IUriIdentityService), uri));
|
|
1039
1039
|
if (!tests.length) {
|
|
1040
1040
|
notificationService.notify({
|
|
1041
|
-
message: ( localize(
|
|
1041
|
+
message: ( localize(14114, "No tests found in the selected file or folder")),
|
|
1042
1042
|
severity: Severity.Info
|
|
1043
1043
|
});
|
|
1044
1044
|
return;
|
|
@@ -1156,7 +1156,7 @@ class ExecuteTestsInCurrentFile extends Action2 {
|
|
|
1156
1156
|
});
|
|
1157
1157
|
}
|
|
1158
1158
|
if (editor) {
|
|
1159
|
-
MessageController.get(editor)?.showMessage(( localize(
|
|
1159
|
+
MessageController.get(editor)?.showMessage(( localize(14115, "No tests found in this file")), position);
|
|
1160
1160
|
}
|
|
1161
1161
|
return undefined;
|
|
1162
1162
|
}
|
|
@@ -1165,7 +1165,7 @@ class RunCurrentFile extends ExecuteTestsInCurrentFile {
|
|
|
1165
1165
|
constructor() {
|
|
1166
1166
|
super({
|
|
1167
1167
|
id: TestCommandId.RunCurrentFile,
|
|
1168
|
-
title: ( localize2(
|
|
1168
|
+
title: ( localize2(14116, "Run Tests in Current File")),
|
|
1169
1169
|
category,
|
|
1170
1170
|
keybinding: {
|
|
1171
1171
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1179,7 +1179,7 @@ class DebugCurrentFile extends ExecuteTestsInCurrentFile {
|
|
|
1179
1179
|
constructor() {
|
|
1180
1180
|
super({
|
|
1181
1181
|
id: TestCommandId.DebugCurrentFile,
|
|
1182
|
-
title: ( localize2(
|
|
1182
|
+
title: ( localize2(14117, "Debug Tests in Current File")),
|
|
1183
1183
|
category,
|
|
1184
1184
|
keybinding: {
|
|
1185
1185
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1193,7 +1193,7 @@ class CoverageCurrentFile extends ExecuteTestsInCurrentFile {
|
|
|
1193
1193
|
constructor() {
|
|
1194
1194
|
super({
|
|
1195
1195
|
id: TestCommandId.CoverageCurrentFile,
|
|
1196
|
-
title: ( localize2(
|
|
1196
|
+
title: ( localize2(14118, "Run Tests with Coverage in Current File")),
|
|
1197
1197
|
category,
|
|
1198
1198
|
keybinding: {
|
|
1199
1199
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1300,7 +1300,7 @@ class ReRunFailedTests extends RunOrDebugFailedTests {
|
|
|
1300
1300
|
constructor() {
|
|
1301
1301
|
super({
|
|
1302
1302
|
id: TestCommandId.ReRunFailedTests,
|
|
1303
|
-
title: ( localize2(
|
|
1303
|
+
title: ( localize2(14119, "Rerun Failed Tests")),
|
|
1304
1304
|
category,
|
|
1305
1305
|
keybinding: {
|
|
1306
1306
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1319,7 +1319,7 @@ class DebugFailedTests extends RunOrDebugFailedTests {
|
|
|
1319
1319
|
constructor() {
|
|
1320
1320
|
super({
|
|
1321
1321
|
id: TestCommandId.DebugFailedTests,
|
|
1322
|
-
title: ( localize2(
|
|
1322
|
+
title: ( localize2(14120, "Debug Failed Tests")),
|
|
1323
1323
|
category,
|
|
1324
1324
|
keybinding: {
|
|
1325
1325
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1338,7 +1338,7 @@ class ReRunLastRun extends RunOrDebugLastRun {
|
|
|
1338
1338
|
constructor() {
|
|
1339
1339
|
super({
|
|
1340
1340
|
id: TestCommandId.ReRunLastRun,
|
|
1341
|
-
title: ( localize2(
|
|
1341
|
+
title: ( localize2(14121, "Rerun Last Run")),
|
|
1342
1342
|
category,
|
|
1343
1343
|
keybinding: {
|
|
1344
1344
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1354,7 +1354,7 @@ class DebugLastRun extends RunOrDebugLastRun {
|
|
|
1354
1354
|
constructor() {
|
|
1355
1355
|
super({
|
|
1356
1356
|
id: TestCommandId.DebugLastRun,
|
|
1357
|
-
title: ( localize2(
|
|
1357
|
+
title: ( localize2(14122, "Debug Last Run")),
|
|
1358
1358
|
category,
|
|
1359
1359
|
keybinding: {
|
|
1360
1360
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1370,7 +1370,7 @@ class CoverageLastRun extends RunOrDebugLastRun {
|
|
|
1370
1370
|
constructor() {
|
|
1371
1371
|
super({
|
|
1372
1372
|
id: TestCommandId.CoverageLastRun,
|
|
1373
|
-
title: ( localize2(
|
|
1373
|
+
title: ( localize2(14123, "Rerun Last Run with Coverage")),
|
|
1374
1374
|
category,
|
|
1375
1375
|
keybinding: {
|
|
1376
1376
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1427,7 +1427,7 @@ class ReRunFailedFromLastRun extends RunOrDebugFailedFromLastRun {
|
|
|
1427
1427
|
constructor() {
|
|
1428
1428
|
super({
|
|
1429
1429
|
id: TestCommandId.ReRunFailedFromLastRun,
|
|
1430
|
-
title: ( localize2(
|
|
1430
|
+
title: ( localize2(14124, "Rerun Failed Tests from Last Run")),
|
|
1431
1431
|
category
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
@@ -1439,7 +1439,7 @@ class DebugFailedFromLastRun extends RunOrDebugFailedFromLastRun {
|
|
|
1439
1439
|
constructor() {
|
|
1440
1440
|
super({
|
|
1441
1441
|
id: TestCommandId.DebugFailedFromLastRun,
|
|
1442
|
-
title: ( localize2(
|
|
1442
|
+
title: ( localize2(14125, "Debug Failed Tests from Last Run")),
|
|
1443
1443
|
category
|
|
1444
1444
|
});
|
|
1445
1445
|
}
|
|
@@ -1451,7 +1451,7 @@ class SearchForTestExtension extends Action2 {
|
|
|
1451
1451
|
constructor() {
|
|
1452
1452
|
super({
|
|
1453
1453
|
id: TestCommandId.SearchForTestExtension,
|
|
1454
|
-
title: ( localize2(
|
|
1454
|
+
title: ( localize2(14126, "Search for Test Extension"))
|
|
1455
1455
|
});
|
|
1456
1456
|
}
|
|
1457
1457
|
async run(accessor) {
|
|
@@ -1462,7 +1462,7 @@ class OpenOutputPeek extends Action2 {
|
|
|
1462
1462
|
constructor() {
|
|
1463
1463
|
super({
|
|
1464
1464
|
id: TestCommandId.OpenOutputPeek,
|
|
1465
|
-
title: ( localize2(
|
|
1465
|
+
title: ( localize2(14127, "Peek Output")),
|
|
1466
1466
|
category,
|
|
1467
1467
|
keybinding: {
|
|
1468
1468
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1482,7 +1482,7 @@ class ToggleInlineTestOutput extends Action2 {
|
|
|
1482
1482
|
constructor() {
|
|
1483
1483
|
super({
|
|
1484
1484
|
id: TestCommandId.ToggleInlineTestOutput,
|
|
1485
|
-
title: ( localize2(
|
|
1485
|
+
title: ( localize2(14128, "Toggle Inline Test Output")),
|
|
1486
1486
|
category,
|
|
1487
1487
|
keybinding: {
|
|
1488
1488
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1517,7 +1517,7 @@ class RefreshTestsAction extends Action2 {
|
|
|
1517
1517
|
constructor() {
|
|
1518
1518
|
super({
|
|
1519
1519
|
id: TestCommandId.RefreshTestsAction,
|
|
1520
|
-
title: ( localize2(
|
|
1520
|
+
title: ( localize2(14129, "Refresh Tests")),
|
|
1521
1521
|
category,
|
|
1522
1522
|
icon: testingRefreshTests,
|
|
1523
1523
|
keybinding: {
|
|
@@ -1547,7 +1547,7 @@ class CancelTestRefreshAction extends Action2 {
|
|
|
1547
1547
|
constructor() {
|
|
1548
1548
|
super({
|
|
1549
1549
|
id: TestCommandId.CancelTestRefreshAction,
|
|
1550
|
-
title: ( localize2(
|
|
1550
|
+
title: ( localize2(14130, "Cancel Test Refresh")),
|
|
1551
1551
|
category,
|
|
1552
1552
|
icon: testingCancelRefreshTests,
|
|
1553
1553
|
menu: refreshMenus(true)
|
|
@@ -1561,7 +1561,7 @@ class CleareCoverage extends Action2 {
|
|
|
1561
1561
|
constructor() {
|
|
1562
1562
|
super({
|
|
1563
1563
|
id: TestCommandId.CoverageClear,
|
|
1564
|
-
title: ( localize2(
|
|
1564
|
+
title: ( localize2(14131, "Clear Coverage")),
|
|
1565
1565
|
icon: widgetClose,
|
|
1566
1566
|
category,
|
|
1567
1567
|
menu: [{
|
|
@@ -1583,7 +1583,7 @@ class OpenCoverage extends Action2 {
|
|
|
1583
1583
|
constructor() {
|
|
1584
1584
|
super({
|
|
1585
1585
|
id: TestCommandId.OpenCoverage,
|
|
1586
|
-
title: ( localize2(
|
|
1586
|
+
title: ( localize2(14132, "Open Coverage")),
|
|
1587
1587
|
category,
|
|
1588
1588
|
menu: [{
|
|
1589
1589
|
id: MenuId.CommandPalette,
|
|
@@ -1596,7 +1596,7 @@ class OpenCoverage extends Action2 {
|
|
|
1596
1596
|
const task = results.length && results[0].tasks.find(r => r.coverage);
|
|
1597
1597
|
if (!task) {
|
|
1598
1598
|
const notificationService = accessor.get(INotificationService);
|
|
1599
|
-
notificationService.info(( localize(
|
|
1599
|
+
notificationService.info(( localize(14133, "No coverage information available on the last test run.")));
|
|
1600
1600
|
return;
|
|
1601
1601
|
}
|
|
1602
1602
|
accessor.get(ITestCoverageService).openCoverage(task, true);
|
|
@@ -1621,10 +1621,10 @@ class GoToRelatedTestAction extends TestNavigationAction {
|
|
|
1621
1621
|
return (new ReferencesModel(( tests.map(t => t.item.uri && ({
|
|
1622
1622
|
uri: t.item.uri,
|
|
1623
1623
|
range: t.item.range || ( new Range(1, 1, 1, 1))
|
|
1624
|
-
}))).filter(isDefined), localize(
|
|
1624
|
+
}))).filter(isDefined), localize(14134, "Related Tests")));
|
|
1625
1625
|
}
|
|
1626
1626
|
_getNoResultFoundMessage() {
|
|
1627
|
-
return localize(
|
|
1627
|
+
return localize(14135, "No related tests found.");
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
1630
|
class GoToRelatedTest extends GoToRelatedTestAction {
|
|
@@ -1635,7 +1635,7 @@ class GoToRelatedTest extends GoToRelatedTestAction {
|
|
|
1635
1635
|
muteMessage: false
|
|
1636
1636
|
}, {
|
|
1637
1637
|
id: TestCommandId.GoToRelatedTest,
|
|
1638
|
-
title: ( localize2(
|
|
1638
|
+
title: ( localize2(14136, "Go to Related Test")),
|
|
1639
1639
|
category,
|
|
1640
1640
|
precondition: ( ContextKeyExpr.and(
|
|
1641
1641
|
ContextKeyExpr.not(TestingContextKeys.activeEditorHasTests.key), TestingContextKeys.canGoToRelatedTest)),
|
|
@@ -1655,7 +1655,7 @@ class PeekRelatedTest extends GoToRelatedTestAction {
|
|
|
1655
1655
|
muteMessage: false
|
|
1656
1656
|
}, {
|
|
1657
1657
|
id: TestCommandId.PeekRelatedTest,
|
|
1658
|
-
title: ( localize2(
|
|
1658
|
+
title: ( localize2(14137, "Peek Related Test")),
|
|
1659
1659
|
category,
|
|
1660
1660
|
precondition: ( ContextKeyExpr.and(
|
|
1661
1661
|
TestingContextKeys.canGoToRelatedTest,
|
|
@@ -1675,10 +1675,10 @@ class GoToRelatedCodeAction extends TestNavigationAction {
|
|
|
1675
1675
|
async _getLocationModel(_languageFeaturesService, model, position, token) {
|
|
1676
1676
|
const testsAtCursor = await getTestsAtCursor(this.testService, this.uriIdentityService, model.uri, position);
|
|
1677
1677
|
const code = await Promise.all(( testsAtCursor.map(t => this.testService.getCodeRelatedToTest(t))));
|
|
1678
|
-
return (new ReferencesModel(code.flat(), localize(
|
|
1678
|
+
return (new ReferencesModel(code.flat(), localize(14138, "Related Code")));
|
|
1679
1679
|
}
|
|
1680
1680
|
_getNoResultFoundMessage() {
|
|
1681
|
-
return localize(
|
|
1681
|
+
return localize(14139, "No related code found.");
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
1684
|
class GoToRelatedCode extends GoToRelatedCodeAction {
|
|
@@ -1689,7 +1689,7 @@ class GoToRelatedCode extends GoToRelatedCodeAction {
|
|
|
1689
1689
|
muteMessage: false
|
|
1690
1690
|
}, {
|
|
1691
1691
|
id: TestCommandId.GoToRelatedCode,
|
|
1692
|
-
title: ( localize2(
|
|
1692
|
+
title: ( localize2(14140, "Go to Related Code")),
|
|
1693
1693
|
category,
|
|
1694
1694
|
precondition: ( ContextKeyExpr.and(
|
|
1695
1695
|
TestingContextKeys.activeEditorHasTests,
|
|
@@ -1711,7 +1711,7 @@ class PeekRelatedCode extends GoToRelatedCodeAction {
|
|
|
1711
1711
|
muteMessage: false
|
|
1712
1712
|
}, {
|
|
1713
1713
|
id: TestCommandId.PeekRelatedCode,
|
|
1714
|
-
title: ( localize2(
|
|
1714
|
+
title: ( localize2(14141, "Peek Related Code")),
|
|
1715
1715
|
category,
|
|
1716
1716
|
precondition: ( ContextKeyExpr.and(
|
|
1717
1717
|
TestingContextKeys.activeEditorHasTests,
|
|
@@ -1731,7 +1731,7 @@ class ToggleResultsViewLayoutAction extends Action2 {
|
|
|
1731
1731
|
constructor() {
|
|
1732
1732
|
super({
|
|
1733
1733
|
id: TestCommandId.ToggleResultsViewLayoutAction,
|
|
1734
|
-
title: ( localize2(
|
|
1734
|
+
title: ( localize2(14142, "Toggle Tree Position")),
|
|
1735
1735
|
category,
|
|
1736
1736
|
icon: Codicon.arrowSwap,
|
|
1737
1737
|
menu: {
|
package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsOutput.js
CHANGED
|
@@ -81,8 +81,8 @@ const diffEditorOptions = {
|
|
|
81
81
|
ignoreTrimWhitespace: false,
|
|
82
82
|
renderSideBySide: true,
|
|
83
83
|
useInlineViewWhenSpaceIsLimited: false,
|
|
84
|
-
originalAriaLabel: ( localize(
|
|
85
|
-
modifiedAriaLabel: ( localize(
|
|
84
|
+
originalAriaLabel: ( localize(14143, "Expected result")),
|
|
85
|
+
modifiedAriaLabel: ( localize(14144, "Actual result")),
|
|
86
86
|
diffAlgorithm: "advanced"
|
|
87
87
|
};
|
|
88
88
|
function applyEditorMirrorOptions(base, cfg, update) {
|
|
@@ -420,7 +420,7 @@ let TerminalMessagePeek = class TerminalMessagePeek extends Disposable {
|
|
|
420
420
|
const testItem = subject instanceof TestOutputSubject ? subject.test.item : subject.test;
|
|
421
421
|
const terminal = await this.updateGenerically({
|
|
422
422
|
subject,
|
|
423
|
-
noOutputMessage: ( localize(
|
|
423
|
+
noOutputMessage: ( localize(14145, "The test case did not report any output.")),
|
|
424
424
|
getTarget: result => result?.tasks[subject.taskIndex].output,
|
|
425
425
|
*doInitialWrite(output, results) {
|
|
426
426
|
that.updateCwd(testItem.uri);
|
|
@@ -453,7 +453,7 @@ let TerminalMessagePeek = class TerminalMessagePeek extends Disposable {
|
|
|
453
453
|
updateForTaskSubject(subject) {
|
|
454
454
|
return this.updateGenerically({
|
|
455
455
|
subject,
|
|
456
|
-
noOutputMessage: ( localize(
|
|
456
|
+
noOutputMessage: ( localize(14146, "The test run did not record any output.")),
|
|
457
457
|
getTarget: result => result?.tasks[subject.taskIndex],
|
|
458
458
|
doInitialWrite: (task, result) => {
|
|
459
459
|
this.updateCwd(Iterable.find(result.tests, t => !!t.item.uri)?.item.uri);
|
|
@@ -479,7 +479,7 @@ let TerminalMessagePeek = class TerminalMessagePeek extends Disposable {
|
|
|
479
479
|
}
|
|
480
480
|
} else {
|
|
481
481
|
didWriteData = true;
|
|
482
|
-
this.writeNotice(terminal, ( localize(
|
|
482
|
+
this.writeNotice(terminal, ( localize(14147, "Test output is only available for new test runs.")));
|
|
483
483
|
}
|
|
484
484
|
this.attachTerminalToDom(terminal);
|
|
485
485
|
this.outputDataListener.clear();
|