@codingame/monaco-vscode-testing-service-override 31.0.1 → 32.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 +34 -34
- package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +25 -25
- package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/testingChatAgentTool.js +15 -15
- 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
|
@@ -69,8 +69,8 @@ class TestResultElement {
|
|
|
69
69
|
this.label = value.name;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const openCoverageLabel = ( localize(
|
|
73
|
-
const closeCoverageLabel = ( localize(
|
|
72
|
+
const openCoverageLabel = ( localize(14950, "View Test Coverage"));
|
|
73
|
+
const closeCoverageLabel = ( localize(14951, "Close Test Coverage"));
|
|
74
74
|
class CoverageElement {
|
|
75
75
|
get label() {
|
|
76
76
|
return this.isOpen ? closeCoverageLabel : openCoverageLabel;
|
|
@@ -94,7 +94,7 @@ class OlderResultsElement {
|
|
|
94
94
|
this.n = n;
|
|
95
95
|
this.type = "older";
|
|
96
96
|
this.onDidChange = Event.None;
|
|
97
|
-
this.label = n === 1 ? ( localize(
|
|
97
|
+
this.label = n === 1 ? ( localize(14952, "1 older result")) : ( localize(14953, "{0} older results", n));
|
|
98
98
|
this.id = `older-${this.n}`;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -210,7 +210,7 @@ class TestMessageElement {
|
|
|
210
210
|
const lines = count(asPlaintext.trimEnd(), "\n");
|
|
211
211
|
this.label = firstLine(asPlaintext);
|
|
212
212
|
if (lines > 0) {
|
|
213
|
-
this.description = lines > 1 ? ( localize(
|
|
213
|
+
this.description = lines > 1 ? ( localize(14954, "+ {0} more lines", lines)) : ( localize(14955, "+ 1 more line"));
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
}
|
|
@@ -268,7 +268,7 @@ let OutputPeekTree = class OutputPeekTree extends Disposable {
|
|
|
268
268
|
return element.ariaLabel || element.label;
|
|
269
269
|
},
|
|
270
270
|
getWidgetAriaLabel() {
|
|
271
|
-
return localize(
|
|
271
|
+
return localize(14956, "Test Result Messages");
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
})
|
|
@@ -677,34 +677,34 @@ let TreeActionsProvider = class TreeActionsProvider {
|
|
|
677
677
|
const primary = [];
|
|
678
678
|
const secondary = [];
|
|
679
679
|
if (element instanceof TaskElement) {
|
|
680
|
-
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(
|
|
680
|
+
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(14957, "Show Result Output")), ThemeIcon.asClassName(Codicon.terminal), undefined, () => this.requestReveal.fire(( new TaskSubject(element.results, element.index))))));
|
|
681
681
|
if (element.task.running) {
|
|
682
|
-
primary.push(( new Action("testing.outputPeek.cancel", ( localize(
|
|
682
|
+
primary.push(( new Action("testing.outputPeek.cancel", ( localize(14958, "Cancel Test Run")), ThemeIcon.asClassName(testingCancelIcon), undefined, () => this.commandService.executeCommand(TestCommandId.CancelTestRunAction, element.results.id, element.task.id))));
|
|
683
683
|
} else {
|
|
684
|
-
primary.push(( new Action("testing.outputPeek.rerun", ( localize(
|
|
684
|
+
primary.push(( new Action("testing.outputPeek.rerun", ( localize(14959, "Rerun Last Run")), ThemeIcon.asClassName(testingRerunIcon), undefined, () => this.commandService.executeCommand(TestCommandId.ReRunLastRun, element.results.id))));
|
|
685
685
|
const hasFailedTests = ( Iterable.some(element.results.tests, test => isFailedState(test.ownComputedState)));
|
|
686
686
|
if (hasFailedTests) {
|
|
687
|
-
primary.push(( new Action("testing.outputPeek.rerunFailed", ( localize(
|
|
687
|
+
primary.push(( new Action("testing.outputPeek.rerunFailed", ( localize(14960, "Rerun Failed Tests")), ThemeIcon.asClassName(testingRerunIcon), undefined, () => this.commandService.executeCommand(TestCommandId.ReRunFailedFromLastRun, element.results.id))));
|
|
688
688
|
}
|
|
689
|
-
primary.push(( new Action("testing.outputPeek.debug", ( localize(
|
|
689
|
+
primary.push(( new Action("testing.outputPeek.debug", ( localize(14961, "Debug Last Run")), ThemeIcon.asClassName(testingDebugIcon), undefined, () => this.commandService.executeCommand(TestCommandId.DebugLastRun, element.results.id))));
|
|
690
690
|
if (hasFailedTests) {
|
|
691
|
-
primary.push(( new Action("testing.outputPeek.debugFailed", ( localize(
|
|
691
|
+
primary.push(( new Action("testing.outputPeek.debugFailed", ( localize(14962, "Debug Failed Tests")), ThemeIcon.asClassName(testingDebugIcon), undefined, () => this.commandService.executeCommand(TestCommandId.DebugFailedFromLastRun, element.results.id))));
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
695
|
if (element instanceof TestResultElement) {
|
|
696
696
|
if (element.value.tasks.length === 1) {
|
|
697
|
-
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(
|
|
697
|
+
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(14957, "Show Result Output")), ThemeIcon.asClassName(Codicon.terminal), undefined, () => this.requestReveal.fire(( new TaskSubject(element.value, 0))))));
|
|
698
698
|
}
|
|
699
|
-
primary.push(( new Action("testing.outputPeek.reRunLastRun", ( localize(
|
|
699
|
+
primary.push(( new Action("testing.outputPeek.reRunLastRun", ( localize(14963, "Rerun Test")), ThemeIcon.asClassName(testingRunIcon), undefined, () => this.commandService.executeCommand("testing.reRunLastRun", element.value.id))));
|
|
700
700
|
const hasFailedTests = ( Iterable.some(element.value.tests, test => isFailedState(test.ownComputedState)));
|
|
701
701
|
if (hasFailedTests) {
|
|
702
|
-
primary.push(( new Action("testing.outputPeek.rerunFailedResult", ( localize(
|
|
702
|
+
primary.push(( new Action("testing.outputPeek.rerunFailedResult", ( localize(14960, "Rerun Failed Tests")), ThemeIcon.asClassName(testingRerunIcon), undefined, () => this.commandService.executeCommand(TestCommandId.ReRunFailedFromLastRun, element.value.id))));
|
|
703
703
|
}
|
|
704
704
|
if (capabilities & TestRunProfileBitset.Debug) {
|
|
705
|
-
primary.push(( new Action("testing.outputPeek.debugLastRun", ( localize(
|
|
705
|
+
primary.push(( new Action("testing.outputPeek.debugLastRun", ( localize(14964, "Debug Test")), ThemeIcon.asClassName(testingDebugIcon), undefined, () => this.commandService.executeCommand("testing.debugLastRun", element.value.id))));
|
|
706
706
|
if (hasFailedTests) {
|
|
707
|
-
primary.push(( new Action("testing.outputPeek.debugFailedResult", ( localize(
|
|
707
|
+
primary.push(( new Action("testing.outputPeek.debugFailedResult", ( localize(14962, "Debug Failed Tests")), ThemeIcon.asClassName(testingDebugIcon), undefined, () => this.commandService.executeCommand(TestCommandId.DebugFailedFromLastRun, element.value.id))));
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
}
|
|
@@ -718,24 +718,24 @@ let TreeActionsProvider = class TreeActionsProvider {
|
|
|
718
718
|
uri
|
|
719
719
|
} = element.test.item;
|
|
720
720
|
if (uri) {
|
|
721
|
-
primary.push(( new Action("testing.outputPeek.goToTest", ( localize(
|
|
721
|
+
primary.push(( new Action("testing.outputPeek.goToTest", ( localize(14965, "Go to Test")), ThemeIcon.asClassName(Codicon.goToFile), undefined, () => this.commandService.executeCommand("vscode.revealTest", extId))));
|
|
722
722
|
}
|
|
723
723
|
if (( element.test.tasks[element.taskIndex].messages.some(m => m.type === TestMessageType.Output))) {
|
|
724
|
-
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(
|
|
724
|
+
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(14957, "Show Result Output")), ThemeIcon.asClassName(Codicon.terminal), undefined, () => this.requestReveal.fire(element.outputSubject))));
|
|
725
725
|
}
|
|
726
|
-
secondary.push(( new Action("testing.outputPeek.revealInExplorer", ( localize(
|
|
726
|
+
secondary.push(( new Action("testing.outputPeek.revealInExplorer", ( localize(14966, "Reveal in Test Explorer")), ThemeIcon.asClassName(Codicon.listTree), undefined, () => this.commandService.executeCommand("_revealTestInExplorer", extId))));
|
|
727
727
|
if (capabilities & TestRunProfileBitset.Run) {
|
|
728
|
-
primary.push(( new Action("testing.outputPeek.runTest", ( localize(
|
|
728
|
+
primary.push(( new Action("testing.outputPeek.runTest", ( localize(14967, "Run Test")), ThemeIcon.asClassName(testingRunIcon), undefined, () => this.commandService.executeCommand("vscode.runTestsById", TestRunProfileBitset.Run, extId))));
|
|
729
729
|
}
|
|
730
730
|
if (capabilities & TestRunProfileBitset.Debug) {
|
|
731
|
-
primary.push(( new Action("testing.outputPeek.debugTest", ( localize(
|
|
731
|
+
primary.push(( new Action("testing.outputPeek.debugTest", ( localize(14968, "Debug Test")), ThemeIcon.asClassName(testingDebugIcon), undefined, () => this.commandService.executeCommand("vscode.runTestsById", TestRunProfileBitset.Debug, extId))));
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
734
|
if (element instanceof TestMessageElement) {
|
|
735
735
|
id = MenuId.TestMessageContext;
|
|
736
736
|
contextKeys.push([TestingContextKeys.testMessageContext.key, element.contextValue]);
|
|
737
737
|
if (this.showRevealLocationOnMessages && element.location) {
|
|
738
|
-
primary.push(( new Action("testing.outputPeek.goToError", ( localize(
|
|
738
|
+
primary.push(( new Action("testing.outputPeek.goToError", ( localize(14969, "Go to Error")), ThemeIcon.asClassName(Codicon.debugStackframe), undefined, () => this.editorService.openEditor({
|
|
739
739
|
resource: element.location.uri,
|
|
740
740
|
options: {
|
|
741
741
|
selection: element.location.range,
|
package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsViewContent.js
CHANGED
|
@@ -119,7 +119,7 @@ registerAction2(class extends Action2 {
|
|
|
119
119
|
constructor() {
|
|
120
120
|
super({
|
|
121
121
|
id: "testing.callStack.run",
|
|
122
|
-
title: ( localize(
|
|
122
|
+
title: ( localize(14970, "Rerun Test")),
|
|
123
123
|
icon: testingRunIcon,
|
|
124
124
|
menu: {
|
|
125
125
|
id: MenuId.TestCallStack,
|
|
@@ -136,7 +136,7 @@ registerAction2(class extends Action2 {
|
|
|
136
136
|
constructor() {
|
|
137
137
|
super({
|
|
138
138
|
id: "testing.callStack.debug",
|
|
139
|
-
title: ( localize(
|
|
139
|
+
title: ( localize(14971, "Debug Test")),
|
|
140
140
|
icon: testingDebugIcon,
|
|
141
141
|
menu: {
|
|
142
142
|
id: MenuId.TestCallStack,
|
|
@@ -472,7 +472,7 @@ let FollowupActionWidget = class FollowupActionWidget extends Disposable {
|
|
|
472
472
|
followups[picked[0].index].execute();
|
|
473
473
|
}
|
|
474
474
|
}));
|
|
475
|
-
link.innerText = ( localize(
|
|
475
|
+
link.innerText = ( localize(14972, "+{0} More...", followups.length - 1));
|
|
476
476
|
return link;
|
|
477
477
|
}
|
|
478
478
|
makeLink(onClick) {
|
|
@@ -51,21 +51,21 @@ import { TestingViewPaneContainer } from './testingViewPaneContainer.js';
|
|
|
51
51
|
|
|
52
52
|
const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
53
53
|
id: Testing.ViewletId,
|
|
54
|
-
title: ( localize2(
|
|
54
|
+
title: ( localize2(14973, "Testing")),
|
|
55
55
|
ctorDescriptor: ( new SyncDescriptor(TestingViewPaneContainer)),
|
|
56
56
|
icon: testingViewIcon,
|
|
57
57
|
alwaysUseContainerInfo: true,
|
|
58
58
|
order: 6,
|
|
59
59
|
openCommandActionDescriptor: {
|
|
60
60
|
id: Testing.ViewletId,
|
|
61
|
-
mnemonicTitle: ( localize(
|
|
61
|
+
mnemonicTitle: ( localize(14974, "T&&esting")),
|
|
62
62
|
order: 4
|
|
63
63
|
},
|
|
64
64
|
hideIfEmpty: true
|
|
65
65
|
}, ViewContainerLocation.Sidebar);
|
|
66
66
|
const testResultsViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
67
67
|
id: Testing.ResultsPanelId,
|
|
68
|
-
title: ( localize2(
|
|
68
|
+
title: ( localize2(14975, "Test Results")),
|
|
69
69
|
icon: testingResultsIcon,
|
|
70
70
|
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [Testing.ResultsPanelId, {
|
|
71
71
|
mergeViewWithContainerWhenSingleView: true
|
|
@@ -78,7 +78,7 @@ const testResultsViewContainer = ( Registry.as(Extensions.ViewContainersRegistry
|
|
|
78
78
|
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
79
79
|
viewsRegistry.registerViews([{
|
|
80
80
|
id: Testing.ResultsViewId,
|
|
81
|
-
name: ( localize2(
|
|
81
|
+
name: ( localize2(14975, "Test Results")),
|
|
82
82
|
containerIcon: testingResultsIcon,
|
|
83
83
|
canToggleVisibility: false,
|
|
84
84
|
canMoveView: true,
|
|
@@ -86,15 +86,15 @@ viewsRegistry.registerViews([{
|
|
|
86
86
|
ctorDescriptor: ( new SyncDescriptor(TestResultsView))
|
|
87
87
|
}], testResultsViewContainer);
|
|
88
88
|
viewsRegistry.registerViewWelcomeContent(Testing.ExplorerViewId, {
|
|
89
|
-
content: ( localize(
|
|
89
|
+
content: ( localize(14976, "No tests have been found in this workspace yet."))
|
|
90
90
|
});
|
|
91
91
|
viewsRegistry.registerViewWelcomeContent(Testing.ExplorerViewId, {
|
|
92
|
-
content: "[" + ( localize(
|
|
92
|
+
content: "[" + ( localize(14977, "Install Additional Test Extensions...")) + `](command:${TestCommandId.SearchForTestExtension})`,
|
|
93
93
|
order: 10
|
|
94
94
|
});
|
|
95
95
|
viewsRegistry.registerViews([{
|
|
96
96
|
id: Testing.ExplorerViewId,
|
|
97
|
-
name: ( localize2(
|
|
97
|
+
name: ( localize2(14978, "Test Explorer")),
|
|
98
98
|
ctorDescriptor: ( new SyncDescriptor(TestingExplorerView)),
|
|
99
99
|
canToggleVisibility: true,
|
|
100
100
|
canMoveView: true,
|
|
@@ -104,7 +104,7 @@ viewsRegistry.registerViews([{
|
|
|
104
104
|
when: ContextKeyExpr.greater(TestingContextKeys.providerCount.key, 0)
|
|
105
105
|
}, {
|
|
106
106
|
id: Testing.CoverageViewId,
|
|
107
|
-
name: ( localize2(
|
|
107
|
+
name: ( localize2(14979, "Test Coverage")),
|
|
108
108
|
ctorDescriptor: ( new SyncDescriptor(TestCoverageView)),
|
|
109
109
|
canToggleVisibility: true,
|
|
110
110
|
canMoveView: true,
|
|
@@ -18,7 +18,7 @@ function buildPicker(
|
|
|
18
18
|
showConfigureButtons = true,
|
|
19
19
|
onlyForTest,
|
|
20
20
|
onlyConfigurable,
|
|
21
|
-
placeholder = ( localize(
|
|
21
|
+
placeholder = ( localize(14980, "Pick a test profile to use"))
|
|
22
22
|
}
|
|
23
23
|
) {
|
|
24
24
|
const profileService = accessor.get(ITestProfileService);
|
|
@@ -51,7 +51,7 @@ function buildPicker(
|
|
|
51
51
|
alwaysShow: true,
|
|
52
52
|
buttons: profile.hasConfigurationHandler && showConfigureButtons ? [{
|
|
53
53
|
iconClass: ThemeIcon.asClassName(testingUpdateProfiles),
|
|
54
|
-
tooltip: ( localize(
|
|
54
|
+
tooltip: ( localize(14981, "Update Test Configuration"))
|
|
55
55
|
}] : []
|
|
56
56
|
}));
|
|
57
57
|
}
|
|
@@ -669,7 +669,7 @@ const createRunTestDecoration = (tests, states, visible, defaultGutterAction) =>
|
|
|
669
669
|
const building = hoverMessage = ( new MarkdownString("", true)).appendText(hoverMessageParts.join(", ") + ".");
|
|
670
670
|
if (testIdWithMessages) {
|
|
671
671
|
const args = encodeURIComponent(JSON.stringify([testIdWithMessages]));
|
|
672
|
-
building.appendMarkdown(` [${( localize(
|
|
672
|
+
building.appendMarkdown(` [${( localize(14982, "Peek Test Output"))}](command:vscode.peekTestError?${args})`);
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
return hoverMessage;
|
|
@@ -775,7 +775,7 @@ class ExpectedLensContentWidget extends TitleLensContentWidget {
|
|
|
775
775
|
return "expectedTestingLens";
|
|
776
776
|
}
|
|
777
777
|
getText() {
|
|
778
|
-
return localize(
|
|
778
|
+
return localize(14983, "Expected");
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
class ActualLensContentWidget extends TitleLensContentWidget {
|
|
@@ -783,7 +783,7 @@ class ActualLensContentWidget extends TitleLensContentWidget {
|
|
|
783
783
|
return "actualTestingLens";
|
|
784
784
|
}
|
|
785
785
|
getText() {
|
|
786
|
-
return localize(
|
|
786
|
+
return localize(14984, "Actual");
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
let RunTestDecoration = class RunTestDecoration {
|
|
@@ -884,14 +884,14 @@ let RunTestDecoration = class RunTestDecoration {
|
|
|
884
884
|
getGutterLabel() {
|
|
885
885
|
switch (getTestingConfiguration(this.configurationService, TestingConfigKeys.DefaultGutterClickAction)) {
|
|
886
886
|
case DefaultGutterClickAction.ContextMenu:
|
|
887
|
-
return localize(
|
|
887
|
+
return localize(14985, "Click for test options");
|
|
888
888
|
case DefaultGutterClickAction.Debug:
|
|
889
|
-
return localize(
|
|
889
|
+
return localize(14986, "Click to debug tests, right click for more options");
|
|
890
890
|
case DefaultGutterClickAction.Coverage:
|
|
891
|
-
return localize(
|
|
891
|
+
return localize(14987, "Click to run tests with coverage, right click for more options");
|
|
892
892
|
case DefaultGutterClickAction.Run:
|
|
893
893
|
default:
|
|
894
|
-
return localize(
|
|
894
|
+
return localize(14988, "Click to run tests, right click for more options");
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
getTestContextMenuActions(test, resultItem) {
|
|
@@ -899,13 +899,13 @@ let RunTestDecoration = class RunTestDecoration {
|
|
|
899
899
|
const capabilities = this.testProfileService.capabilitiesForTest(test.item);
|
|
900
900
|
[{
|
|
901
901
|
bitset: TestRunProfileBitset.Run,
|
|
902
|
-
label: ( localize(
|
|
902
|
+
label: ( localize(14989, "Run Test"))
|
|
903
903
|
}, {
|
|
904
904
|
bitset: TestRunProfileBitset.Debug,
|
|
905
|
-
label: ( localize(
|
|
905
|
+
label: ( localize(14990, "Debug Test"))
|
|
906
906
|
}, {
|
|
907
907
|
bitset: TestRunProfileBitset.Coverage,
|
|
908
|
-
label: ( localize(
|
|
908
|
+
label: ( localize(14991, "Run with Coverage"))
|
|
909
909
|
}].forEach((
|
|
910
910
|
{
|
|
911
911
|
bitset,
|
|
@@ -926,7 +926,7 @@ let RunTestDecoration = class RunTestDecoration {
|
|
|
926
926
|
}
|
|
927
927
|
});
|
|
928
928
|
if (capabilities & TestRunProfileBitset.HasNonDefaultProfile) {
|
|
929
|
-
testActions.push(( new Action("testing.runUsing", ( localize(
|
|
929
|
+
testActions.push(( new Action("testing.runUsing", ( localize(14992, "Execute Using Profile...")), undefined, undefined, async () => {
|
|
930
930
|
const profile = await this.commandService.executeCommand("vscode.pickTestProfile", {
|
|
931
931
|
onlyForTest: test
|
|
932
932
|
});
|
|
@@ -944,12 +944,12 @@ let RunTestDecoration = class RunTestDecoration {
|
|
|
944
944
|
})));
|
|
945
945
|
}
|
|
946
946
|
if (resultItem && isFailedState(resultItem.computedState)) {
|
|
947
|
-
testActions.push(( new Action("testing.gutter.peekFailure", ( localize(
|
|
947
|
+
testActions.push(( new Action("testing.gutter.peekFailure", ( localize(14993, "Peek Error")), undefined, undefined, () => this.commandService.executeCommand("vscode.peekTestError", test.item.extId))));
|
|
948
948
|
}
|
|
949
949
|
if (resultItem?.computedState === TestResultState.Running) {
|
|
950
|
-
testActions.push(( new Action("testing.gutter.cancel", ( localize(
|
|
950
|
+
testActions.push(( new Action("testing.gutter.cancel", ( localize(14994, "Cancel Test Run")), undefined, undefined, () => this.commandService.executeCommand(TestCommandId.CancelTestRunAction))));
|
|
951
951
|
}
|
|
952
|
-
testActions.push(( new Action("testing.gutter.reveal", ( localize(
|
|
952
|
+
testActions.push(( new Action("testing.gutter.reveal", ( localize(14995, "Reveal in Test Explorer")), undefined, undefined, () => this.commandService.executeCommand("_revealTestInExplorer", test.item.extId))));
|
|
953
953
|
const contributed = this.getContributedTestActions(test, capabilities);
|
|
954
954
|
return {
|
|
955
955
|
object: Separator.join(testActions, contributed),
|
|
@@ -1004,13 +1004,13 @@ let MultiRunTestDecoration = class MultiRunTestDecoration extends RunTestDecorat
|
|
|
1004
1004
|
const allActions = [];
|
|
1005
1005
|
[{
|
|
1006
1006
|
bitset: TestRunProfileBitset.Run,
|
|
1007
|
-
label: ( localize(
|
|
1007
|
+
label: ( localize(14996, "Run All Tests"))
|
|
1008
1008
|
}, {
|
|
1009
1009
|
bitset: TestRunProfileBitset.Coverage,
|
|
1010
|
-
label: ( localize(
|
|
1010
|
+
label: ( localize(14997, "Run All Tests with Coverage"))
|
|
1011
1011
|
}, {
|
|
1012
1012
|
bitset: TestRunProfileBitset.Debug,
|
|
1013
|
-
label: ( localize(
|
|
1013
|
+
label: ( localize(14998, "Debug All Tests"))
|
|
1014
1014
|
}].forEach((
|
|
1015
1015
|
{
|
|
1016
1016
|
bitset,
|
|
@@ -1081,7 +1081,7 @@ let MultiRunTestDecoration = class MultiRunTestDecoration extends RunTestDecorat
|
|
|
1081
1081
|
const overflow = testSubmenus.length - MAX_TESTS_IN_SUBMENU;
|
|
1082
1082
|
if (overflow > 0) {
|
|
1083
1083
|
testSubmenus = testSubmenus.slice(0, MAX_TESTS_IN_SUBMENU);
|
|
1084
|
-
testSubmenus.push(( new Action("testing.gutter.overflow", ( localize(
|
|
1084
|
+
testSubmenus.push(( new Action("testing.gutter.overflow", ( localize(14999, "{0} more tests...", overflow)), undefined, undefined, () => this.pickAndRun(testItems))));
|
|
1085
1085
|
}
|
|
1086
1086
|
return {
|
|
1087
1087
|
object: Separator.join(allActions, testSubmenus),
|
|
@@ -1113,7 +1113,7 @@ let MultiRunTestDecoration = class MultiRunTestDecoration extends RunTestDecorat
|
|
|
1113
1113
|
label: currentLabel,
|
|
1114
1114
|
test: testItem.test,
|
|
1115
1115
|
result: testItem.resultItem
|
|
1116
|
-
}))), ( localize(
|
|
1116
|
+
}))), ( localize(15000, "Select a test to run")));
|
|
1117
1117
|
if (!item) {
|
|
1118
1118
|
return;
|
|
1119
1119
|
}
|
|
@@ -24,11 +24,11 @@ import { denamespaceTestTag } from '@codingame/monaco-vscode-api/vscode/vs/workb
|
|
|
24
24
|
import { AnchorAlignment } from '@codingame/monaco-vscode-api/vscode/vs/base/common/layout';
|
|
25
25
|
|
|
26
26
|
const testFilterDescriptions = {
|
|
27
|
-
[TestFilterTerm.Failed]: ( localize(
|
|
28
|
-
[TestFilterTerm.Executed]: ( localize(
|
|
29
|
-
[TestFilterTerm.CurrentDoc]: ( localize(
|
|
30
|
-
[TestFilterTerm.OpenedFiles]: ( localize(
|
|
31
|
-
[TestFilterTerm.Hidden]: ( localize(
|
|
27
|
+
[TestFilterTerm.Failed]: ( localize(15001, "Show Only Failed Tests")),
|
|
28
|
+
[TestFilterTerm.Executed]: ( localize(15002, "Show Only Executed Tests")),
|
|
29
|
+
[TestFilterTerm.CurrentDoc]: ( localize(15003, "Show in Active File Only")),
|
|
30
|
+
[TestFilterTerm.OpenedFiles]: ( localize(15004, "Show in Opened Files Only")),
|
|
31
|
+
[TestFilterTerm.Hidden]: ( localize(15005, "Show Hidden Tests"))
|
|
32
32
|
};
|
|
33
33
|
let TestingExplorerFilter = class TestingExplorerFilter extends BaseActionViewItem {
|
|
34
34
|
constructor(action, options, state, instantiationService, testService) {
|
|
@@ -38,7 +38,7 @@ let TestingExplorerFilter = class TestingExplorerFilter extends BaseActionViewIt
|
|
|
38
38
|
this.testService = testService;
|
|
39
39
|
this.focusEmitter = this._register(( new Emitter()));
|
|
40
40
|
this.onDidFocus = this.focusEmitter.event;
|
|
41
|
-
this.filtersAction = ( new Action("markersFiltersAction", ( localize(
|
|
41
|
+
this.filtersAction = ( new Action("markersFiltersAction", ( localize(15006, "More Filters...")), "testing-filter-button " + ThemeIcon.asClassName(testingFilterIcon)));
|
|
42
42
|
this.history = this._register(instantiationService.createInstance(StoredValue, {
|
|
43
43
|
key: "testing.filterHistory2",
|
|
44
44
|
scope: StorageScope.WORKSPACE,
|
|
@@ -70,7 +70,7 @@ let TestingExplorerFilter = class TestingExplorerFilter extends BaseActionViewIt
|
|
|
70
70
|
const input = this.input = this._register(
|
|
71
71
|
this.instantiationService.createInstance(ContextScopedSuggestEnabledInputWithHistory, {
|
|
72
72
|
id: "testing.explorer.filter",
|
|
73
|
-
ariaLabel: ( localize(
|
|
73
|
+
ariaLabel: ( localize(15007, "Filter text for tests in the explorer")),
|
|
74
74
|
parent: wrapper,
|
|
75
75
|
suggestionProvider: {
|
|
76
76
|
triggerCharacters: ["@"],
|
|
@@ -93,7 +93,7 @@ let TestingExplorerFilter = class TestingExplorerFilter extends BaseActionViewIt
|
|
|
93
93
|
resourceHandle: "testing:filter",
|
|
94
94
|
suggestOptions: {
|
|
95
95
|
value: this.state.text.value,
|
|
96
|
-
placeholderText: ( localize(
|
|
96
|
+
placeholderText: ( localize(15008, "Filter (e.g. text, !exclude, @tag)"))
|
|
97
97
|
},
|
|
98
98
|
history: history.values
|
|
99
99
|
})
|
|
@@ -194,7 +194,7 @@ let FiltersDropdownMenuActionViewItem = class FiltersDropdownMenuActionViewItem
|
|
|
194
194
|
class: undefined,
|
|
195
195
|
enabled: true,
|
|
196
196
|
id: "fuzzy",
|
|
197
|
-
label: ( localize(
|
|
197
|
+
label: ( localize(15009, "Fuzzy Match")),
|
|
198
198
|
run: () => this.filters.fuzzy.value = !this.filters.fuzzy.value,
|
|
199
199
|
tooltip: ""
|
|
200
200
|
}, ( new Separator()), {
|
|
@@ -202,14 +202,14 @@ let FiltersDropdownMenuActionViewItem = class FiltersDropdownMenuActionViewItem
|
|
|
202
202
|
class: undefined,
|
|
203
203
|
enabled: this.testService.excluded.hasAny,
|
|
204
204
|
id: "showExcluded",
|
|
205
|
-
label: ( localize(
|
|
205
|
+
label: ( localize(15005, "Show Hidden Tests")),
|
|
206
206
|
run: () => this.filters.toggleFilteringFor(TestFilterTerm.Hidden),
|
|
207
207
|
tooltip: ""
|
|
208
208
|
}, {
|
|
209
209
|
class: undefined,
|
|
210
210
|
enabled: this.testService.excluded.hasAny,
|
|
211
211
|
id: "removeExcluded",
|
|
212
|
-
label: ( localize(
|
|
212
|
+
label: ( localize(15010, "Unhide All Tests")),
|
|
213
213
|
run: async () => this.testService.excluded.clear(),
|
|
214
214
|
tooltip: ""
|
|
215
215
|
}];
|
|
@@ -330,7 +330,7 @@ let TestingExplorerView = class TestingExplorerView extends ViewPane {
|
|
|
330
330
|
participatingProfiles++;
|
|
331
331
|
profileActions.push(toAction({
|
|
332
332
|
id: `${controller.id}.${profile.profileId}`,
|
|
333
|
-
label: defaults.includes(profile) ? ( localize(
|
|
333
|
+
label: defaults.includes(profile) ? ( localize(15011, "{0} (Default)", profile.label)) : profile.label,
|
|
334
334
|
run: () => {
|
|
335
335
|
const {
|
|
336
336
|
include,
|
|
@@ -366,14 +366,14 @@ let TestingExplorerView = class TestingExplorerView extends ViewPane {
|
|
|
366
366
|
if (participatingProfiles > 1) {
|
|
367
367
|
postActions.push(toAction({
|
|
368
368
|
id: "selectDefaultTestConfigurations",
|
|
369
|
-
label: ( localize(
|
|
369
|
+
label: ( localize(15012, "Select Default Profile")),
|
|
370
370
|
run: () => this.commandService.executeCommand(TestCommandId.SelectDefaultTestProfiles, group)
|
|
371
371
|
}));
|
|
372
372
|
}
|
|
373
373
|
if (hasConfigurable) {
|
|
374
374
|
postActions.push(toAction({
|
|
375
375
|
id: "configureTestProfiles",
|
|
376
|
-
label: ( localize(
|
|
376
|
+
label: ( localize(15013, "Configure Test Profiles")),
|
|
377
377
|
run: () => this.commandService.executeCommand(TestCommandId.ConfigureTestProfilesAction, group)
|
|
378
378
|
}));
|
|
379
379
|
}
|
|
@@ -408,7 +408,7 @@ let TestingExplorerView = class TestingExplorerView extends ViewPane {
|
|
|
408
408
|
getDropdownAction() {
|
|
409
409
|
return (new Action(
|
|
410
410
|
"selectRunConfig",
|
|
411
|
-
localize(
|
|
411
|
+
localize(15014, "Select Configuration..."),
|
|
412
412
|
"codicon-chevron-down",
|
|
413
413
|
true
|
|
414
414
|
));
|
|
@@ -571,7 +571,7 @@ let ResultSummaryView = class ResultSummaryView extends Disposable {
|
|
|
571
571
|
root.remove();
|
|
572
572
|
this.elementsWereAttached = false;
|
|
573
573
|
}
|
|
574
|
-
this.container.innerText = ( localize(
|
|
574
|
+
this.container.innerText = ( localize(15015, "No test results yet."));
|
|
575
575
|
this.badgeDisposable.clear();
|
|
576
576
|
return;
|
|
577
577
|
}
|
|
@@ -606,7 +606,7 @@ let ResultSummaryView = class ResultSummaryView extends Disposable {
|
|
|
606
606
|
if (this.badgeDisposable.value && this.lastBadge instanceof IconBadge && this.lastBadge.icon === spinningLoading) {
|
|
607
607
|
return;
|
|
608
608
|
}
|
|
609
|
-
this.lastBadge = ( new IconBadge(spinningLoading, () => ( localize(
|
|
609
|
+
this.lastBadge = ( new IconBadge(spinningLoading, () => ( localize(15016, "Tests are running"))));
|
|
610
610
|
} else if (countSummary && this.badgeType !== TestingCountBadge.Off && countSummary[this.badgeType] !== 0) {
|
|
611
611
|
if (this.badgeDisposable.value && this.lastBadge instanceof NumberBadge && this.lastBadge.number === countSummary[this.badgeType]) {
|
|
612
612
|
return;
|
|
@@ -619,7 +619,7 @@ let ResultSummaryView = class ResultSummaryView extends Disposable {
|
|
|
619
619
|
if (this.badgeDisposable.value && this.lastBadge instanceof IconBadge && this.lastBadge.icon === testingContinuousIsOn) {
|
|
620
620
|
return;
|
|
621
621
|
}
|
|
622
|
-
this.lastBadge = ( new IconBadge(testingContinuousIsOn, () => ( localize(
|
|
622
|
+
this.lastBadge = ( new IconBadge(testingContinuousIsOn, () => ( localize(15017, "Tests are being watched for changes"))));
|
|
623
623
|
} else {
|
|
624
624
|
if (!this.lastBadge) {
|
|
625
625
|
return;
|
|
@@ -633,11 +633,11 @@ let ResultSummaryView = class ResultSummaryView extends Disposable {
|
|
|
633
633
|
getLocalizedBadgeString(countBadgeType, count) {
|
|
634
634
|
switch (countBadgeType) {
|
|
635
635
|
case TestingCountBadge.Passed:
|
|
636
|
-
return localize(
|
|
636
|
+
return localize(15018, "{0} passed tests", count);
|
|
637
637
|
case TestingCountBadge.Skipped:
|
|
638
|
-
return localize(
|
|
638
|
+
return localize(15019, "{0} skipped tests", count);
|
|
639
639
|
default:
|
|
640
|
-
return localize(
|
|
640
|
+
return localize(15020, "{0} failed tests", count);
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
};
|
|
@@ -1176,8 +1176,8 @@ let NoTestsForDocumentWidget = class NoTestsForDocumentWidget extends Disposable
|
|
|
1176
1176
|
super();
|
|
1177
1177
|
const el = this.el = append(container, $(".testing-no-test-placeholder"));
|
|
1178
1178
|
const emptyParagraph = append(el, $("p"));
|
|
1179
|
-
emptyParagraph.innerText = ( localize(
|
|
1180
|
-
const buttonLabel = ( localize(
|
|
1179
|
+
emptyParagraph.innerText = ( localize(15021, "No tests were found in this file."));
|
|
1180
|
+
const buttonLabel = ( localize(15022, "Show Workspace Tests"));
|
|
1181
1181
|
const button = this._register(( new Button(el, {
|
|
1182
1182
|
title: buttonLabel,
|
|
1183
1183
|
...defaultButtonStyles
|
|
@@ -1212,17 +1212,17 @@ const getLabelForTestTreeElement = element => {
|
|
|
1212
1212
|
let label = labelForTestInState(element.description || element.test.item.label, element.state);
|
|
1213
1213
|
if (element instanceof TestItemTreeElement) {
|
|
1214
1214
|
if (element.duration !== undefined) {
|
|
1215
|
-
label = ( localize(
|
|
1215
|
+
label = ( localize(15023, "{0}, in {1}", label, formatDuration(element.duration)));
|
|
1216
1216
|
}
|
|
1217
1217
|
if (element.retired) {
|
|
1218
|
-
label = ( localize(
|
|
1218
|
+
label = ( localize(15024, "{0}, outdated result", label));
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
return label;
|
|
1222
1222
|
};
|
|
1223
1223
|
class ListAccessibilityProvider {
|
|
1224
1224
|
getWidgetAriaLabel() {
|
|
1225
|
-
return localize(
|
|
1225
|
+
return localize(15025, "Test Explorer");
|
|
1226
1226
|
}
|
|
1227
1227
|
getAriaLabel(element) {
|
|
1228
1228
|
return element instanceof TestTreeErrorMessage ? element.description : getLabelForTestTreeElement(element);
|
|
@@ -261,7 +261,7 @@ let TestingPeekOpener = class TestingPeekOpener extends Disposable {
|
|
|
261
261
|
} else {
|
|
262
262
|
this.commandService.executeCommand("markdown.showPreview", current.messageUri).catch(err => {
|
|
263
263
|
this.notificationService.error(( localize(
|
|
264
|
-
|
|
264
|
+
15026,
|
|
265
265
|
"Could not open markdown preview: {0}.\n\nPlease make sure the markdown extension is enabled.",
|
|
266
266
|
err.message
|
|
267
267
|
)));
|
|
@@ -759,7 +759,7 @@ let TestResultsPeek = class TestResultsPeek extends PeekViewWidget {
|
|
|
759
759
|
stripIcons(subject.test.label)
|
|
760
760
|
);
|
|
761
761
|
} else {
|
|
762
|
-
this.setTitle(( localize(
|
|
762
|
+
this.setTitle(( localize(15027, "Test Output")));
|
|
763
763
|
}
|
|
764
764
|
this.applyTheme();
|
|
765
765
|
await this.content.reveal({
|
|
@@ -876,7 +876,7 @@ class CloseTestPeek extends EditorAction2 {
|
|
|
876
876
|
constructor() {
|
|
877
877
|
super({
|
|
878
878
|
id: "editor.closeTestPeek",
|
|
879
|
-
title: ( localize2(
|
|
879
|
+
title: ( localize2(15028, "Close")),
|
|
880
880
|
icon: Codicon.close,
|
|
881
881
|
precondition: ( ContextKeyExpr.or(TestingContextKeys.isInPeek, TestingContextKeys.isPeekVisible)),
|
|
882
882
|
keybinding: {
|
|
@@ -917,9 +917,9 @@ class GoToNextMessageAction extends Action2 {
|
|
|
917
917
|
super({
|
|
918
918
|
id: GoToNextMessageAction.ID,
|
|
919
919
|
f1: true,
|
|
920
|
-
title: ( localize2(
|
|
920
|
+
title: ( localize2(15029, "Go to Next Test Failure")),
|
|
921
921
|
metadata: {
|
|
922
|
-
description: ( localize2(
|
|
922
|
+
description: ( localize2(15030, "Shows the next failure message in your file"))
|
|
923
923
|
},
|
|
924
924
|
icon: Codicon.arrowDown,
|
|
925
925
|
category: Categories.Test,
|
|
@@ -953,9 +953,9 @@ class GoToPreviousMessageAction extends Action2 {
|
|
|
953
953
|
super({
|
|
954
954
|
id: GoToPreviousMessageAction.ID,
|
|
955
955
|
f1: true,
|
|
956
|
-
title: ( localize2(
|
|
956
|
+
title: ( localize2(15031, "Go to Previous Test Failure")),
|
|
957
957
|
metadata: {
|
|
958
|
-
description: ( localize2(
|
|
958
|
+
description: ( localize2(15032, "Shows the previous failure message in your file"))
|
|
959
959
|
},
|
|
960
960
|
icon: Codicon.arrowUp,
|
|
961
961
|
category: Categories.Test,
|
|
@@ -988,7 +988,7 @@ class CollapsePeekStack extends Action2 {
|
|
|
988
988
|
constructor() {
|
|
989
989
|
super({
|
|
990
990
|
id: CollapsePeekStack.ID,
|
|
991
|
-
title: ( localize2(
|
|
991
|
+
title: ( localize2(15033, "Collapse Stack Frames")),
|
|
992
992
|
icon: Codicon.collapseAll,
|
|
993
993
|
category: Categories.Test,
|
|
994
994
|
menu: [{
|
|
@@ -1014,7 +1014,7 @@ class OpenMessageInEditorAction extends Action2 {
|
|
|
1014
1014
|
super({
|
|
1015
1015
|
id: OpenMessageInEditorAction.ID,
|
|
1016
1016
|
f1: false,
|
|
1017
|
-
title: ( localize2(
|
|
1017
|
+
title: ( localize2(15034, "Open in Editor")),
|
|
1018
1018
|
icon: Codicon.goToFile,
|
|
1019
1019
|
category: Categories.Test,
|
|
1020
1020
|
menu: [{
|
|
@@ -1034,9 +1034,9 @@ class ToggleTestingPeekHistory extends Action2 {
|
|
|
1034
1034
|
super({
|
|
1035
1035
|
id: ToggleTestingPeekHistory.ID,
|
|
1036
1036
|
f1: true,
|
|
1037
|
-
title: ( localize2(
|
|
1037
|
+
title: ( localize2(15035, "Toggle Test History in Peek")),
|
|
1038
1038
|
metadata: {
|
|
1039
|
-
description: ( localize2(
|
|
1039
|
+
description: ( localize2(15036, "Shows or hides the history of test runs in the peek view"))
|
|
1040
1040
|
},
|
|
1041
1041
|
icon: Codicon.history,
|
|
1042
1042
|
category: Categories.Test,
|
|
@@ -41,7 +41,7 @@ let TestingViewPaneContainer = class TestingViewPaneContainer extends ViewPaneCo
|
|
|
41
41
|
return 400;
|
|
42
42
|
}
|
|
43
43
|
getTitle() {
|
|
44
|
-
return localize(
|
|
44
|
+
return localize(15037, "Testing");
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
TestingViewPaneContainer = ( __decorate([( __param(0, IWorkbenchLayoutService)), ( __param(1, ITelemetryService)), ( __param(2, IInstantiationService)), ( __param(3, IContextMenuService)), ( __param(4, IThemeService)), ( __param(5, IStorageService)), ( __param(6, IConfigurationService)), ( __param(7, IExtensionService)), ( __param(8, IWorkspaceContextService)), ( __param(9, IViewDescriptorService)), ( __param(10, ILogService))], TestingViewPaneContainer));
|