@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
|
@@ -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(14148, "View Test Coverage"));
|
|
73
|
+
const closeCoverageLabel = ( localize(14149, "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(14150, "1 older result")) : ( localize(14151, "{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(14152, "+ {0} more lines", lines)) : ( localize(14153, "+ 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(14154, "Test Result Messages");
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
})
|
|
@@ -660,34 +660,34 @@ let TreeActionsProvider = class TreeActionsProvider {
|
|
|
660
660
|
const primary = [];
|
|
661
661
|
const secondary = [];
|
|
662
662
|
if (element instanceof TaskElement) {
|
|
663
|
-
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(
|
|
663
|
+
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(14155, "Show Result Output")), ThemeIcon.asClassName(Codicon.terminal), undefined, () => this.requestReveal.fire(( new TaskSubject(element.results, element.index))))));
|
|
664
664
|
if (element.task.running) {
|
|
665
|
-
primary.push(( new Action("testing.outputPeek.cancel", ( localize(
|
|
665
|
+
primary.push(( new Action("testing.outputPeek.cancel", ( localize(14156, "Cancel Test Run")), ThemeIcon.asClassName(testingCancelIcon), undefined, () => this.commandService.executeCommand(TestCommandId.CancelTestRunAction, element.results.id, element.task.id))));
|
|
666
666
|
} else {
|
|
667
|
-
primary.push(( new Action("testing.outputPeek.rerun", ( localize(
|
|
667
|
+
primary.push(( new Action("testing.outputPeek.rerun", ( localize(14157, "Rerun Last Run")), ThemeIcon.asClassName(testingRerunIcon), undefined, () => this.commandService.executeCommand(TestCommandId.ReRunLastRun, element.results.id))));
|
|
668
668
|
const hasFailedTests = ( Iterable.some(element.results.tests, test => isFailedState(test.ownComputedState)));
|
|
669
669
|
if (hasFailedTests) {
|
|
670
|
-
primary.push(( new Action("testing.outputPeek.rerunFailed", ( localize(
|
|
670
|
+
primary.push(( new Action("testing.outputPeek.rerunFailed", ( localize(14158, "Rerun Failed Tests")), ThemeIcon.asClassName(testingRerunIcon), undefined, () => this.commandService.executeCommand(TestCommandId.ReRunFailedFromLastRun, element.results.id))));
|
|
671
671
|
}
|
|
672
|
-
primary.push(( new Action("testing.outputPeek.debug", ( localize(
|
|
672
|
+
primary.push(( new Action("testing.outputPeek.debug", ( localize(14159, "Debug Last Run")), ThemeIcon.asClassName(testingDebugIcon), undefined, () => this.commandService.executeCommand(TestCommandId.DebugLastRun, element.results.id))));
|
|
673
673
|
if (hasFailedTests) {
|
|
674
|
-
primary.push(( new Action("testing.outputPeek.debugFailed", ( localize(
|
|
674
|
+
primary.push(( new Action("testing.outputPeek.debugFailed", ( localize(14160, "Debug Failed Tests")), ThemeIcon.asClassName(testingDebugIcon), undefined, () => this.commandService.executeCommand(TestCommandId.DebugFailedFromLastRun, element.results.id))));
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
if (element instanceof TestResultElement) {
|
|
679
679
|
if (element.value.tasks.length === 1) {
|
|
680
|
-
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(
|
|
680
|
+
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(14155, "Show Result Output")), ThemeIcon.asClassName(Codicon.terminal), undefined, () => this.requestReveal.fire(( new TaskSubject(element.value, 0))))));
|
|
681
681
|
}
|
|
682
|
-
primary.push(( new Action("testing.outputPeek.reRunLastRun", ( localize(
|
|
682
|
+
primary.push(( new Action("testing.outputPeek.reRunLastRun", ( localize(14161, "Rerun Test")), ThemeIcon.asClassName(testingRunIcon), undefined, () => this.commandService.executeCommand("testing.reRunLastRun", element.value.id))));
|
|
683
683
|
const hasFailedTests = ( Iterable.some(element.value.tests, test => isFailedState(test.ownComputedState)));
|
|
684
684
|
if (hasFailedTests) {
|
|
685
|
-
primary.push(( new Action("testing.outputPeek.rerunFailedResult", ( localize(
|
|
685
|
+
primary.push(( new Action("testing.outputPeek.rerunFailedResult", ( localize(14158, "Rerun Failed Tests")), ThemeIcon.asClassName(testingRerunIcon), undefined, () => this.commandService.executeCommand(TestCommandId.ReRunFailedFromLastRun, element.value.id))));
|
|
686
686
|
}
|
|
687
687
|
if (capabilities & TestRunProfileBitset.Debug) {
|
|
688
|
-
primary.push(( new Action("testing.outputPeek.debugLastRun", ( localize(
|
|
688
|
+
primary.push(( new Action("testing.outputPeek.debugLastRun", ( localize(14162, "Debug Test")), ThemeIcon.asClassName(testingDebugIcon), undefined, () => this.commandService.executeCommand("testing.debugLastRun", element.value.id))));
|
|
689
689
|
if (hasFailedTests) {
|
|
690
|
-
primary.push(( new Action("testing.outputPeek.debugFailedResult", ( localize(
|
|
690
|
+
primary.push(( new Action("testing.outputPeek.debugFailedResult", ( localize(14160, "Debug Failed Tests")), ThemeIcon.asClassName(testingDebugIcon), undefined, () => this.commandService.executeCommand(TestCommandId.DebugFailedFromLastRun, element.value.id))));
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
693
|
}
|
|
@@ -701,24 +701,24 @@ let TreeActionsProvider = class TreeActionsProvider {
|
|
|
701
701
|
uri
|
|
702
702
|
} = element.test.item;
|
|
703
703
|
if (uri) {
|
|
704
|
-
primary.push(( new Action("testing.outputPeek.goToTest", ( localize(
|
|
704
|
+
primary.push(( new Action("testing.outputPeek.goToTest", ( localize(14163, "Go to Test")), ThemeIcon.asClassName(Codicon.goToFile), undefined, () => this.commandService.executeCommand("vscode.revealTest", extId))));
|
|
705
705
|
}
|
|
706
706
|
if (( element.test.tasks[element.taskIndex].messages.some(m => m.type === TestMessageType.Output))) {
|
|
707
|
-
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(
|
|
707
|
+
primary.push(( new Action("testing.outputPeek.showResultOutput", ( localize(14155, "Show Result Output")), ThemeIcon.asClassName(Codicon.terminal), undefined, () => this.requestReveal.fire(element.outputSubject))));
|
|
708
708
|
}
|
|
709
|
-
secondary.push(( new Action("testing.outputPeek.revealInExplorer", ( localize(
|
|
709
|
+
secondary.push(( new Action("testing.outputPeek.revealInExplorer", ( localize(14164, "Reveal in Test Explorer")), ThemeIcon.asClassName(Codicon.listTree), undefined, () => this.commandService.executeCommand("_revealTestInExplorer", extId))));
|
|
710
710
|
if (capabilities & TestRunProfileBitset.Run) {
|
|
711
|
-
primary.push(( new Action("testing.outputPeek.runTest", ( localize(
|
|
711
|
+
primary.push(( new Action("testing.outputPeek.runTest", ( localize(14165, "Run Test")), ThemeIcon.asClassName(testingRunIcon), undefined, () => this.commandService.executeCommand("vscode.runTestsById", TestRunProfileBitset.Run, extId))));
|
|
712
712
|
}
|
|
713
713
|
if (capabilities & TestRunProfileBitset.Debug) {
|
|
714
|
-
primary.push(( new Action("testing.outputPeek.debugTest", ( localize(
|
|
714
|
+
primary.push(( new Action("testing.outputPeek.debugTest", ( localize(14166, "Debug Test")), ThemeIcon.asClassName(testingDebugIcon), undefined, () => this.commandService.executeCommand("vscode.runTestsById", TestRunProfileBitset.Debug, extId))));
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
if (element instanceof TestMessageElement) {
|
|
718
718
|
id = MenuId.TestMessageContext;
|
|
719
719
|
contextKeys.push([TestingContextKeys.testMessageContext.key, element.contextValue]);
|
|
720
720
|
if (this.showRevealLocationOnMessages && element.location) {
|
|
721
|
-
primary.push(( new Action("testing.outputPeek.goToError", ( localize(
|
|
721
|
+
primary.push(( new Action("testing.outputPeek.goToError", ( localize(14167, "Go to Error")), ThemeIcon.asClassName(Codicon.debugStackframe), undefined, () => this.editorService.openEditor({
|
|
722
722
|
resource: element.location.uri,
|
|
723
723
|
options: {
|
|
724
724
|
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(14168, "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(14169, "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(14170, "+{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(14171, "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(14172, "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(14173, "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(14173, "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(14174, "No tests have been found in this workspace yet."))
|
|
90
90
|
});
|
|
91
91
|
viewsRegistry.registerViewWelcomeContent(Testing.ExplorerViewId, {
|
|
92
|
-
content: "[" + ( localize(
|
|
92
|
+
content: "[" + ( localize(14175, "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(14176, "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(14177, "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(14178, "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(14179, "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(14180, "Peek Test Output"))}](command:vscode.peekTestError?${args})`);
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
return hoverMessage;
|
|
@@ -771,7 +771,7 @@ class ExpectedLensContentWidget extends TitleLensContentWidget {
|
|
|
771
771
|
return "expectedTestingLens";
|
|
772
772
|
}
|
|
773
773
|
getText() {
|
|
774
|
-
return localize(
|
|
774
|
+
return localize(14181, "Expected");
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
777
|
class ActualLensContentWidget extends TitleLensContentWidget {
|
|
@@ -779,7 +779,7 @@ class ActualLensContentWidget extends TitleLensContentWidget {
|
|
|
779
779
|
return "actualTestingLens";
|
|
780
780
|
}
|
|
781
781
|
getText() {
|
|
782
|
-
return localize(
|
|
782
|
+
return localize(14182, "Actual");
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
785
|
let RunTestDecoration = class RunTestDecoration {
|
|
@@ -880,14 +880,14 @@ let RunTestDecoration = class RunTestDecoration {
|
|
|
880
880
|
getGutterLabel() {
|
|
881
881
|
switch (getTestingConfiguration(this.configurationService, TestingConfigKeys.DefaultGutterClickAction)) {
|
|
882
882
|
case DefaultGutterClickAction.ContextMenu:
|
|
883
|
-
return localize(
|
|
883
|
+
return localize(14183, "Click for test options");
|
|
884
884
|
case DefaultGutterClickAction.Debug:
|
|
885
|
-
return localize(
|
|
885
|
+
return localize(14184, "Click to debug tests, right click for more options");
|
|
886
886
|
case DefaultGutterClickAction.Coverage:
|
|
887
|
-
return localize(
|
|
887
|
+
return localize(14185, "Click to run tests with coverage, right click for more options");
|
|
888
888
|
case DefaultGutterClickAction.Run:
|
|
889
889
|
default:
|
|
890
|
-
return localize(
|
|
890
|
+
return localize(14186, "Click to run tests, right click for more options");
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
getTestContextMenuActions(test, resultItem) {
|
|
@@ -895,13 +895,13 @@ let RunTestDecoration = class RunTestDecoration {
|
|
|
895
895
|
const capabilities = this.testProfileService.capabilitiesForTest(test.item);
|
|
896
896
|
[{
|
|
897
897
|
bitset: TestRunProfileBitset.Run,
|
|
898
|
-
label: ( localize(
|
|
898
|
+
label: ( localize(14187, "Run Test"))
|
|
899
899
|
}, {
|
|
900
900
|
bitset: TestRunProfileBitset.Debug,
|
|
901
|
-
label: ( localize(
|
|
901
|
+
label: ( localize(14188, "Debug Test"))
|
|
902
902
|
}, {
|
|
903
903
|
bitset: TestRunProfileBitset.Coverage,
|
|
904
|
-
label: ( localize(
|
|
904
|
+
label: ( localize(14189, "Run with Coverage"))
|
|
905
905
|
}].forEach((
|
|
906
906
|
{
|
|
907
907
|
bitset,
|
|
@@ -922,7 +922,7 @@ let RunTestDecoration = class RunTestDecoration {
|
|
|
922
922
|
}
|
|
923
923
|
});
|
|
924
924
|
if (capabilities & TestRunProfileBitset.HasNonDefaultProfile) {
|
|
925
|
-
testActions.push(( new Action("testing.runUsing", ( localize(
|
|
925
|
+
testActions.push(( new Action("testing.runUsing", ( localize(14190, "Execute Using Profile...")), undefined, undefined, async () => {
|
|
926
926
|
const profile = await this.commandService.executeCommand("vscode.pickTestProfile", {
|
|
927
927
|
onlyForTest: test
|
|
928
928
|
});
|
|
@@ -940,12 +940,12 @@ let RunTestDecoration = class RunTestDecoration {
|
|
|
940
940
|
})));
|
|
941
941
|
}
|
|
942
942
|
if (resultItem && isFailedState(resultItem.computedState)) {
|
|
943
|
-
testActions.push(( new Action("testing.gutter.peekFailure", ( localize(
|
|
943
|
+
testActions.push(( new Action("testing.gutter.peekFailure", ( localize(14191, "Peek Error")), undefined, undefined, () => this.commandService.executeCommand("vscode.peekTestError", test.item.extId))));
|
|
944
944
|
}
|
|
945
945
|
if (resultItem?.computedState === TestResultState.Running) {
|
|
946
|
-
testActions.push(( new Action("testing.gutter.cancel", ( localize(
|
|
946
|
+
testActions.push(( new Action("testing.gutter.cancel", ( localize(14192, "Cancel Test Run")), undefined, undefined, () => this.commandService.executeCommand(TestCommandId.CancelTestRunAction))));
|
|
947
947
|
}
|
|
948
|
-
testActions.push(( new Action("testing.gutter.reveal", ( localize(
|
|
948
|
+
testActions.push(( new Action("testing.gutter.reveal", ( localize(14193, "Reveal in Test Explorer")), undefined, undefined, () => this.commandService.executeCommand("_revealTestInExplorer", test.item.extId))));
|
|
949
949
|
const contributed = this.getContributedTestActions(test, capabilities);
|
|
950
950
|
return {
|
|
951
951
|
object: Separator.join(testActions, contributed),
|
|
@@ -1000,13 +1000,13 @@ let MultiRunTestDecoration = class MultiRunTestDecoration extends RunTestDecorat
|
|
|
1000
1000
|
const allActions = [];
|
|
1001
1001
|
[{
|
|
1002
1002
|
bitset: TestRunProfileBitset.Run,
|
|
1003
|
-
label: ( localize(
|
|
1003
|
+
label: ( localize(14194, "Run All Tests"))
|
|
1004
1004
|
}, {
|
|
1005
1005
|
bitset: TestRunProfileBitset.Coverage,
|
|
1006
|
-
label: ( localize(
|
|
1006
|
+
label: ( localize(14195, "Run All Tests with Coverage"))
|
|
1007
1007
|
}, {
|
|
1008
1008
|
bitset: TestRunProfileBitset.Debug,
|
|
1009
|
-
label: ( localize(
|
|
1009
|
+
label: ( localize(14196, "Debug All Tests"))
|
|
1010
1010
|
}].forEach((
|
|
1011
1011
|
{
|
|
1012
1012
|
bitset,
|
|
@@ -1077,7 +1077,7 @@ let MultiRunTestDecoration = class MultiRunTestDecoration extends RunTestDecorat
|
|
|
1077
1077
|
const overflow = testSubmenus.length - MAX_TESTS_IN_SUBMENU;
|
|
1078
1078
|
if (overflow > 0) {
|
|
1079
1079
|
testSubmenus = testSubmenus.slice(0, MAX_TESTS_IN_SUBMENU);
|
|
1080
|
-
testSubmenus.push(( new Action("testing.gutter.overflow", ( localize(
|
|
1080
|
+
testSubmenus.push(( new Action("testing.gutter.overflow", ( localize(14197, "{0} more tests...", overflow)), undefined, undefined, () => this.pickAndRun(testItems))));
|
|
1081
1081
|
}
|
|
1082
1082
|
return {
|
|
1083
1083
|
object: Separator.join(allActions, testSubmenus),
|
|
@@ -1109,7 +1109,7 @@ let MultiRunTestDecoration = class MultiRunTestDecoration extends RunTestDecorat
|
|
|
1109
1109
|
label: currentLabel,
|
|
1110
1110
|
test: testItem.test,
|
|
1111
1111
|
result: testItem.resultItem
|
|
1112
|
-
}))), ( localize(
|
|
1112
|
+
}))), ( localize(14198, "Select a test to run")));
|
|
1113
1113
|
if (!item) {
|
|
1114
1114
|
return;
|
|
1115
1115
|
}
|
|
@@ -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(14199, "Show Only Failed Tests")),
|
|
28
|
+
[TestFilterTerm.Executed]: ( localize(14200, "Show Only Executed Tests")),
|
|
29
|
+
[TestFilterTerm.CurrentDoc]: ( localize(14201, "Show in Active File Only")),
|
|
30
|
+
[TestFilterTerm.OpenedFiles]: ( localize(14202, "Show in Opened Files Only")),
|
|
31
|
+
[TestFilterTerm.Hidden]: ( localize(14203, "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(14204, "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(14205, "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(14206, "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(14207, "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(14203, "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(14208, "Unhide All Tests")),
|
|
213
213
|
run: async () => this.testService.excluded.clear(),
|
|
214
214
|
tooltip: ""
|
|
215
215
|
}];
|
|
@@ -328,7 +328,7 @@ let TestingExplorerView = class TestingExplorerView extends ViewPane {
|
|
|
328
328
|
participatingProfiles++;
|
|
329
329
|
profileActions.push(toAction({
|
|
330
330
|
id: `${controller.id}.${profile.profileId}`,
|
|
331
|
-
label: defaults.includes(profile) ? ( localize(
|
|
331
|
+
label: defaults.includes(profile) ? ( localize(14209, "{0} (Default)", profile.label)) : profile.label,
|
|
332
332
|
run: () => {
|
|
333
333
|
const {
|
|
334
334
|
include,
|
|
@@ -364,14 +364,14 @@ let TestingExplorerView = class TestingExplorerView extends ViewPane {
|
|
|
364
364
|
if (participatingProfiles > 1) {
|
|
365
365
|
postActions.push(toAction({
|
|
366
366
|
id: "selectDefaultTestConfigurations",
|
|
367
|
-
label: ( localize(
|
|
367
|
+
label: ( localize(14210, "Select Default Profile")),
|
|
368
368
|
run: () => this.commandService.executeCommand(TestCommandId.SelectDefaultTestProfiles, group)
|
|
369
369
|
}));
|
|
370
370
|
}
|
|
371
371
|
if (hasConfigurable) {
|
|
372
372
|
postActions.push(toAction({
|
|
373
373
|
id: "configureTestProfiles",
|
|
374
|
-
label: ( localize(
|
|
374
|
+
label: ( localize(14211, "Configure Test Profiles")),
|
|
375
375
|
run: () => this.commandService.executeCommand(TestCommandId.ConfigureTestProfilesAction, group)
|
|
376
376
|
}));
|
|
377
377
|
}
|
|
@@ -406,7 +406,7 @@ let TestingExplorerView = class TestingExplorerView extends ViewPane {
|
|
|
406
406
|
getDropdownAction() {
|
|
407
407
|
return (new Action(
|
|
408
408
|
"selectRunConfig",
|
|
409
|
-
localize(
|
|
409
|
+
localize(14212, "Select Configuration..."),
|
|
410
410
|
"codicon-chevron-down",
|
|
411
411
|
true
|
|
412
412
|
));
|
|
@@ -569,7 +569,7 @@ let ResultSummaryView = class ResultSummaryView extends Disposable {
|
|
|
569
569
|
root.remove();
|
|
570
570
|
this.elementsWereAttached = false;
|
|
571
571
|
}
|
|
572
|
-
this.container.innerText = ( localize(
|
|
572
|
+
this.container.innerText = ( localize(14213, "No test results yet."));
|
|
573
573
|
this.badgeDisposable.clear();
|
|
574
574
|
return;
|
|
575
575
|
}
|
|
@@ -604,7 +604,7 @@ let ResultSummaryView = class ResultSummaryView extends Disposable {
|
|
|
604
604
|
if (this.badgeDisposable.value && this.lastBadge instanceof IconBadge && this.lastBadge.icon === spinningLoading) {
|
|
605
605
|
return;
|
|
606
606
|
}
|
|
607
|
-
this.lastBadge = ( new IconBadge(spinningLoading, () => ( localize(
|
|
607
|
+
this.lastBadge = ( new IconBadge(spinningLoading, () => ( localize(14214, "Tests are running"))));
|
|
608
608
|
} else if (countSummary && this.badgeType !== TestingCountBadge.Off && countSummary[this.badgeType] !== 0) {
|
|
609
609
|
if (this.badgeDisposable.value && this.lastBadge instanceof NumberBadge && this.lastBadge.number === countSummary[this.badgeType]) {
|
|
610
610
|
return;
|
|
@@ -617,7 +617,7 @@ let ResultSummaryView = class ResultSummaryView extends Disposable {
|
|
|
617
617
|
if (this.badgeDisposable.value && this.lastBadge instanceof IconBadge && this.lastBadge.icon === testingContinuousIsOn) {
|
|
618
618
|
return;
|
|
619
619
|
}
|
|
620
|
-
this.lastBadge = ( new IconBadge(testingContinuousIsOn, () => ( localize(
|
|
620
|
+
this.lastBadge = ( new IconBadge(testingContinuousIsOn, () => ( localize(14215, "Tests are being watched for changes"))));
|
|
621
621
|
} else {
|
|
622
622
|
if (!this.lastBadge) {
|
|
623
623
|
return;
|
|
@@ -631,11 +631,11 @@ let ResultSummaryView = class ResultSummaryView extends Disposable {
|
|
|
631
631
|
getLocalizedBadgeString(countBadgeType, count) {
|
|
632
632
|
switch (countBadgeType) {
|
|
633
633
|
case TestingCountBadge.Passed:
|
|
634
|
-
return localize(
|
|
634
|
+
return localize(14216, "{0} passed tests", count);
|
|
635
635
|
case TestingCountBadge.Skipped:
|
|
636
|
-
return localize(
|
|
636
|
+
return localize(14217, "{0} skipped tests", count);
|
|
637
637
|
default:
|
|
638
|
-
return localize(
|
|
638
|
+
return localize(14218, "{0} failed tests", count);
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
};
|
|
@@ -1174,8 +1174,8 @@ let NoTestsForDocumentWidget = class NoTestsForDocumentWidget extends Disposable
|
|
|
1174
1174
|
super();
|
|
1175
1175
|
const el = this.el = append(container, $(".testing-no-test-placeholder"));
|
|
1176
1176
|
const emptyParagraph = append(el, $("p"));
|
|
1177
|
-
emptyParagraph.innerText = ( localize(
|
|
1178
|
-
const buttonLabel = ( localize(
|
|
1177
|
+
emptyParagraph.innerText = ( localize(14219, "No tests were found in this file."));
|
|
1178
|
+
const buttonLabel = ( localize(14220, "Show Workspace Tests"));
|
|
1179
1179
|
const button = this._register(( new Button(el, {
|
|
1180
1180
|
title: buttonLabel,
|
|
1181
1181
|
...defaultButtonStyles
|
|
@@ -1210,17 +1210,17 @@ const getLabelForTestTreeElement = element => {
|
|
|
1210
1210
|
let label = labelForTestInState(element.description || element.test.item.label, element.state);
|
|
1211
1211
|
if (element instanceof TestItemTreeElement) {
|
|
1212
1212
|
if (element.duration !== undefined) {
|
|
1213
|
-
label = ( localize(
|
|
1213
|
+
label = ( localize(14221, "{0}, in {1}", label, formatDuration(element.duration)));
|
|
1214
1214
|
}
|
|
1215
1215
|
if (element.retired) {
|
|
1216
|
-
label = ( localize(
|
|
1216
|
+
label = ( localize(14222, "{0}, outdated result", label));
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
return label;
|
|
1220
1220
|
};
|
|
1221
1221
|
class ListAccessibilityProvider {
|
|
1222
1222
|
getWidgetAriaLabel() {
|
|
1223
|
-
return localize(
|
|
1223
|
+
return localize(14223, "Test Explorer");
|
|
1224
1224
|
}
|
|
1225
1225
|
getAriaLabel(element) {
|
|
1226
1226
|
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
|
+
14224,
|
|
265
265
|
"Could not open markdown preview: {0}.\n\nPlease make sure the markdown extension is enabled.",
|
|
266
266
|
err.message
|
|
267
267
|
)));
|
|
@@ -756,7 +756,7 @@ let TestResultsPeek = class TestResultsPeek extends PeekViewWidget {
|
|
|
756
756
|
stripIcons(subject.test.label)
|
|
757
757
|
);
|
|
758
758
|
} else {
|
|
759
|
-
this.setTitle(( localize(
|
|
759
|
+
this.setTitle(( localize(14225, "Test Output")));
|
|
760
760
|
}
|
|
761
761
|
this.applyTheme();
|
|
762
762
|
await this.content.reveal({
|
|
@@ -873,7 +873,7 @@ class CloseTestPeek extends EditorAction2 {
|
|
|
873
873
|
constructor() {
|
|
874
874
|
super({
|
|
875
875
|
id: "editor.closeTestPeek",
|
|
876
|
-
title: ( localize2(
|
|
876
|
+
title: ( localize2(14226, "Close")),
|
|
877
877
|
icon: Codicon.close,
|
|
878
878
|
precondition: ( ContextKeyExpr.or(TestingContextKeys.isInPeek, TestingContextKeys.isPeekVisible)),
|
|
879
879
|
keybinding: {
|
|
@@ -914,9 +914,9 @@ class GoToNextMessageAction extends Action2 {
|
|
|
914
914
|
super({
|
|
915
915
|
id: GoToNextMessageAction.ID,
|
|
916
916
|
f1: true,
|
|
917
|
-
title: ( localize2(
|
|
917
|
+
title: ( localize2(14227, "Go to Next Test Failure")),
|
|
918
918
|
metadata: {
|
|
919
|
-
description: ( localize2(
|
|
919
|
+
description: ( localize2(14228, "Shows the next failure message in your file"))
|
|
920
920
|
},
|
|
921
921
|
icon: Codicon.arrowDown,
|
|
922
922
|
category: Categories.Test,
|
|
@@ -950,9 +950,9 @@ class GoToPreviousMessageAction extends Action2 {
|
|
|
950
950
|
super({
|
|
951
951
|
id: GoToPreviousMessageAction.ID,
|
|
952
952
|
f1: true,
|
|
953
|
-
title: ( localize2(
|
|
953
|
+
title: ( localize2(14229, "Go to Previous Test Failure")),
|
|
954
954
|
metadata: {
|
|
955
|
-
description: ( localize2(
|
|
955
|
+
description: ( localize2(14230, "Shows the previous failure message in your file"))
|
|
956
956
|
},
|
|
957
957
|
icon: Codicon.arrowUp,
|
|
958
958
|
category: Categories.Test,
|
|
@@ -985,7 +985,7 @@ class CollapsePeekStack extends Action2 {
|
|
|
985
985
|
constructor() {
|
|
986
986
|
super({
|
|
987
987
|
id: CollapsePeekStack.ID,
|
|
988
|
-
title: ( localize2(
|
|
988
|
+
title: ( localize2(14231, "Collapse Stack Frames")),
|
|
989
989
|
icon: Codicon.collapseAll,
|
|
990
990
|
category: Categories.Test,
|
|
991
991
|
menu: [{
|
|
@@ -1011,7 +1011,7 @@ class OpenMessageInEditorAction extends Action2 {
|
|
|
1011
1011
|
super({
|
|
1012
1012
|
id: OpenMessageInEditorAction.ID,
|
|
1013
1013
|
f1: false,
|
|
1014
|
-
title: ( localize2(
|
|
1014
|
+
title: ( localize2(14232, "Open in Editor")),
|
|
1015
1015
|
icon: Codicon.goToFile,
|
|
1016
1016
|
category: Categories.Test,
|
|
1017
1017
|
menu: [{
|
|
@@ -1031,9 +1031,9 @@ class ToggleTestingPeekHistory extends Action2 {
|
|
|
1031
1031
|
super({
|
|
1032
1032
|
id: ToggleTestingPeekHistory.ID,
|
|
1033
1033
|
f1: true,
|
|
1034
|
-
title: ( localize2(
|
|
1034
|
+
title: ( localize2(14233, "Toggle Test History in Peek")),
|
|
1035
1035
|
metadata: {
|
|
1036
|
-
description: ( localize2(
|
|
1036
|
+
description: ( localize2(14234, "Shows or hides the history of test runs in the peek view"))
|
|
1037
1037
|
},
|
|
1038
1038
|
icon: Codicon.history,
|
|
1039
1039
|
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(14235, "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));
|