@codingame/monaco-vscode-testing-service-override 31.0.0 → 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-testing-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "32.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - testing service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-terminal-service-override": "
|
|
20
|
-
"@codingame/monaco-vscode-xterm-addons-common": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "32.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-terminal-service-override": "32.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-xterm-addons-common": "32.0.0"
|
|
21
21
|
},
|
|
22
22
|
"main": "index.js",
|
|
23
23
|
"module": "index.js",
|
|
@@ -180,7 +180,7 @@ let StackAccessibilityProvider = class StackAccessibilityProvider {
|
|
|
180
180
|
if (e instanceof CallStackFrame) {
|
|
181
181
|
if (e.source && e.line) {
|
|
182
182
|
return localize(
|
|
183
|
-
|
|
183
|
+
8634,
|
|
184
184
|
"{0}, line {1} in {2}",
|
|
185
185
|
e.name,
|
|
186
186
|
e.line,
|
|
@@ -194,7 +194,7 @@ let StackAccessibilityProvider = class StackAccessibilityProvider {
|
|
|
194
194
|
assertNever();
|
|
195
195
|
}
|
|
196
196
|
getWidgetAriaLabel() {
|
|
197
|
-
return localize(
|
|
197
|
+
return localize(8635, "Stack Trace");
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
StackAccessibilityProvider = ( __decorate([( __param(0, ILabelService))], StackAccessibilityProvider));
|
|
@@ -473,7 +473,7 @@ let MissingCodeRenderer = class MissingCodeRenderer {
|
|
|
473
473
|
const cast = element;
|
|
474
474
|
templateData.label.element.setResource({
|
|
475
475
|
name: cast.name,
|
|
476
|
-
description: ( localize(
|
|
476
|
+
description: ( localize(8636, "Line {0} column {1}", cast.line, cast.column)),
|
|
477
477
|
range: {
|
|
478
478
|
startLineNumber: cast.line,
|
|
479
479
|
startColumn: cast.column,
|
|
@@ -557,7 +557,7 @@ let SkippedRenderer = class SkippedRenderer {
|
|
|
557
557
|
}
|
|
558
558
|
button.enabled = false;
|
|
559
559
|
this.loadFrames(data.current).catch(e => {
|
|
560
|
-
this.notificationService.error(( localize(
|
|
560
|
+
this.notificationService.error(( localize(8637, "Failed to load stack frames: {0}", e.message)));
|
|
561
561
|
});
|
|
562
562
|
}));
|
|
563
563
|
return data;
|
|
@@ -637,7 +637,7 @@ registerAction2(class extends Action2 {
|
|
|
637
637
|
constructor() {
|
|
638
638
|
super({
|
|
639
639
|
id: "callStackWidget.goToFile",
|
|
640
|
-
title: ( localize2(
|
|
640
|
+
title: ( localize2(8638, "Open File")),
|
|
641
641
|
icon: Codicon.goToFile,
|
|
642
642
|
menu: {
|
|
643
643
|
id: MenuId.DebugCallStackToolbar,
|
|
@@ -58,11 +58,11 @@ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/obse
|
|
|
58
58
|
|
|
59
59
|
const CLASS_HIT = "coverage-deco-hit";
|
|
60
60
|
const CLASS_MISS = "coverage-deco-miss";
|
|
61
|
-
const TOGGLE_INLINE_COMMAND_TEXT = ( localize(
|
|
61
|
+
const TOGGLE_INLINE_COMMAND_TEXT = ( localize(14797, "Toggle Inline"));
|
|
62
62
|
const TOGGLE_INLINE_COMMAND_ID = "testing.toggleInlineCoverage";
|
|
63
63
|
const BRANCH_MISS_INDICATOR_CHARS = 4;
|
|
64
|
-
const GO_TO_NEXT_MISSED_LINE_TITLE = ( localize2(
|
|
65
|
-
const GO_TO_PREVIOUS_MISSED_LINE_TITLE = ( localize2(
|
|
64
|
+
const GO_TO_NEXT_MISSED_LINE_TITLE = ( localize2(14798, "Go to Next Uncovered Line"));
|
|
65
|
+
const GO_TO_PREVIOUS_MISSED_LINE_TITLE = ( localize2(14799, "Go to Previous Uncovered Line"));
|
|
66
66
|
let CodeCoverageDecorations = class CodeCoverageDecorations extends Disposable {
|
|
67
67
|
static {
|
|
68
68
|
this.ID = Testing.CoverageDecorationsContributionId;
|
|
@@ -522,7 +522,7 @@ class CoverageDetailsModel {
|
|
|
522
522
|
if (detail.branches?.length) {
|
|
523
523
|
const covered = detail.branches.filter(b => !!b.count).length;
|
|
524
524
|
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
525
|
-
|
|
525
|
+
14800,
|
|
526
526
|
"{0} of {1} of branches in {2} were covered.",
|
|
527
527
|
covered,
|
|
528
528
|
detail.branches.length,
|
|
@@ -541,11 +541,11 @@ class CoverageDetailsModel {
|
|
|
541
541
|
} = detail.detail.branches[detail.branch];
|
|
542
542
|
const label2 = label ? wrapInBackticks(label) : `#${detail.branch + 1}`;
|
|
543
543
|
if (!count) {
|
|
544
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
544
|
+
return ( new MarkdownString()).appendMarkdown(( localize(14801, "Branch {0} in {1} was not covered.", label2, text)));
|
|
545
545
|
} else if (count === true) {
|
|
546
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
546
|
+
return ( new MarkdownString()).appendMarkdown(( localize(14802, "Branch {0} in {1} was executed.", label2, text)));
|
|
547
547
|
} else {
|
|
548
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
548
|
+
return ( new MarkdownString()).appendMarkdown(( localize(14803, "Branch {0} in {1} was executed {2} time(s).", label2, text, count)));
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
assertNever();
|
|
@@ -553,7 +553,7 @@ class CoverageDetailsModel {
|
|
|
553
553
|
}
|
|
554
554
|
function namedDetailLabel(name, detail) {
|
|
555
555
|
return ( new MarkdownString()).appendMarkdown(
|
|
556
|
-
!detail.count ? ( localize(
|
|
556
|
+
!detail.count ? ( localize(14804, "`{0}` was not executed.", name)) : typeof detail.count === "number" ? ( localize(14805, "`{0}` was executed {1} time(s).", name, detail.count)) : ( localize(14806, "`{0}` was executed.", name)));
|
|
557
557
|
}
|
|
558
558
|
function tidyLocation(location) {
|
|
559
559
|
if (location instanceof Position) {
|
|
@@ -669,7 +669,7 @@ let CoverageToolbarWidget = class CoverageToolbarWidget extends Disposable {
|
|
|
669
669
|
if (!current) {
|
|
670
670
|
return;
|
|
671
671
|
}
|
|
672
|
-
const toggleAction = ( new ActionWithIcon("toggleInline", this.coverage.showInline.get() ? ( localize(
|
|
672
|
+
const toggleAction = ( new ActionWithIcon("toggleInline", this.coverage.showInline.get() ? ( localize(14807, "Hide Inline")) : ( localize(14808, "Show Inline")), testingCoverageReport, undefined, () => this.coverage.showInline.set(!this.coverage.showInline.get(), undefined)));
|
|
673
673
|
toggleAction.tooltip = this.keybindingService.appendKeybinding(TOGGLE_INLINE_COMMAND_TEXT, TOGGLE_INLINE_COMMAND_ID);
|
|
674
674
|
const hasUncoveredStmt = current.coverage.statement.covered < current.coverage.statement.total;
|
|
675
675
|
this.actionBar.push(( new ActionWithIcon(
|
|
@@ -701,12 +701,12 @@ let CoverageToolbarWidget = class CoverageToolbarWidget extends Disposable {
|
|
|
701
701
|
)));
|
|
702
702
|
} else if (current.coverage.perTestData?.size) {
|
|
703
703
|
this.actionBar.push(( new ActionWithIcon("perTestFilter", ( localize(
|
|
704
|
-
|
|
704
|
+
14809,
|
|
705
705
|
"{0} test(s) ran code in this file",
|
|
706
706
|
current.coverage.perTestData.size
|
|
707
707
|
)), testingFilterIcon, undefined, () => this.commandService.executeCommand(TestCommandId.CoverageFilterToTestInEditor, this.current, this.editor))));
|
|
708
708
|
}
|
|
709
|
-
this.actionBar.push(( new ActionWithIcon("rerun", ( localize(
|
|
709
|
+
this.actionBar.push(( new ActionWithIcon("rerun", ( localize(14810, "Rerun")), testingRerunIcon, !this.isRunning, () => this.rerunTest())));
|
|
710
710
|
}
|
|
711
711
|
show() {
|
|
712
712
|
if (this.registered) {
|
|
@@ -758,7 +758,7 @@ registerAction2(class ToggleInlineCoverage extends Action2 {
|
|
|
758
758
|
constructor() {
|
|
759
759
|
super({
|
|
760
760
|
id: TOGGLE_INLINE_COMMAND_ID,
|
|
761
|
-
title: ( localize2(
|
|
761
|
+
title: ( localize2(14811, "Toggle Inline Coverage")),
|
|
762
762
|
category: Categories.Test,
|
|
763
763
|
keybinding: {
|
|
764
764
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -769,7 +769,7 @@ registerAction2(class ToggleInlineCoverage extends Action2 {
|
|
|
769
769
|
},
|
|
770
770
|
toggled: {
|
|
771
771
|
condition: TestingContextKeys.inlineCoverageEnabled,
|
|
772
|
-
title: ( localize(
|
|
772
|
+
title: ( localize(14812, "Hide Inline Coverage"))
|
|
773
773
|
},
|
|
774
774
|
icon: testingCoverageReport,
|
|
775
775
|
menu: [{
|
|
@@ -791,9 +791,9 @@ registerAction2(class ToggleCoverageToolbar extends Action2 {
|
|
|
791
791
|
constructor() {
|
|
792
792
|
super({
|
|
793
793
|
id: TestCommandId.CoverageToggleToolbar,
|
|
794
|
-
title: ( localize2(
|
|
794
|
+
title: ( localize2(14813, "Show Test Coverage Toolbar")),
|
|
795
795
|
metadata: {
|
|
796
|
-
description: ( localize2(
|
|
796
|
+
description: ( localize2(14814, "Toggle the sticky coverage bar in the editor."))
|
|
797
797
|
},
|
|
798
798
|
category: Categories.Test,
|
|
799
799
|
toggled: {
|
|
@@ -823,7 +823,7 @@ registerAction2(class FilterCoverageToTestInEditor extends Action2 {
|
|
|
823
823
|
constructor() {
|
|
824
824
|
super({
|
|
825
825
|
id: TestCommandId.CoverageFilterToTestInEditor,
|
|
826
|
-
title: ( localize2(
|
|
826
|
+
title: ( localize2(14815, "Filter Coverage to Test")),
|
|
827
827
|
category: Categories.Test,
|
|
828
828
|
icon: Codicon.filter,
|
|
829
829
|
toggled: {
|
|
@@ -913,14 +913,14 @@ registerAction2(class ToggleCoverageInExplorer extends Action2 {
|
|
|
913
913
|
constructor() {
|
|
914
914
|
super({
|
|
915
915
|
id: TestCommandId.CoverageToggleInExplorer,
|
|
916
|
-
title: ( localize2(
|
|
916
|
+
title: ( localize2(14816, "Toggle Coverage in Explorer")),
|
|
917
917
|
metadata: {
|
|
918
|
-
description: ( localize2(
|
|
918
|
+
description: ( localize2(14817, "Toggle the display of test coverage in the File Explorer view."))
|
|
919
919
|
},
|
|
920
920
|
category: Categories.Test,
|
|
921
921
|
toggled: {
|
|
922
922
|
condition: ( ContextKeyExpr.equals("config.testing.showCoverageInExplorer", true)),
|
|
923
|
-
title: ( localize(
|
|
923
|
+
title: ( localize(14818, "Hide Coverage in Explorer"))
|
|
924
924
|
},
|
|
925
925
|
menu: [{
|
|
926
926
|
id: MenuId.CommandPalette,
|
|
@@ -940,7 +940,7 @@ registerAction2(class GoToNextMissedCoverageLine extends Action2 {
|
|
|
940
940
|
id: TestCommandId.CoverageGoToNextMissedLine,
|
|
941
941
|
title: GO_TO_NEXT_MISSED_LINE_TITLE,
|
|
942
942
|
metadata: {
|
|
943
|
-
description: ( localize2(
|
|
943
|
+
description: ( localize2(14819, "Navigate to the next line that is not covered by tests."))
|
|
944
944
|
},
|
|
945
945
|
category: Categories.Test,
|
|
946
946
|
icon: Codicon.arrowDown,
|
|
@@ -977,7 +977,7 @@ registerAction2(class GoToPreviousMissedCoverageLine extends Action2 {
|
|
|
977
977
|
id: TestCommandId.CoverageGoToPreviousMissedLine,
|
|
978
978
|
title: GO_TO_PREVIOUS_MISSED_LINE_TITLE,
|
|
979
979
|
metadata: {
|
|
980
|
-
description: ( localize2(
|
|
980
|
+
description: ( localize2(14820, "Navigate to the previous line that is not covered by tests."))
|
|
981
981
|
},
|
|
982
982
|
category: Categories.Test,
|
|
983
983
|
icon: Codicon.arrowUp,
|
|
@@ -93,11 +93,11 @@ function getLabelForItem(result, testId, commonPrefixLen) {
|
|
|
93
93
|
}
|
|
94
94
|
var labels;
|
|
95
95
|
(function(labels) {
|
|
96
|
-
labels.showingFilterFor = label => ( localize(
|
|
97
|
-
labels.clickToChangeFiltering = ( localize(
|
|
98
|
-
labels.percentCoverage = (percent, precision) => ( localize(
|
|
99
|
-
labels.allTests = ( localize(
|
|
100
|
-
labels.pickShowCoverage = ( localize(
|
|
96
|
+
labels.showingFilterFor = label => ( localize(14821, "Showing \"{0}\"", label));
|
|
97
|
+
labels.clickToChangeFiltering = ( localize(14822, "Click to view coverage for a single test"));
|
|
98
|
+
labels.percentCoverage = (percent, precision) => ( localize(14823, "{0} Coverage", displayPercent(percent, precision)));
|
|
99
|
+
labels.allTests = ( localize(14824, "Entire run"));
|
|
100
|
+
labels.pickShowCoverage = ( localize(14825, "Pick a test to show coverage for"));
|
|
101
101
|
})(labels || (labels = {}));
|
|
102
102
|
|
|
103
103
|
export { calculateDisplayedStat, displayPercent, getCoverageColor, getLabelForItem, labels, percent };
|
|
@@ -7,47 +7,47 @@ import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/th
|
|
|
7
7
|
import { testStatesToIconColors, testStatesToRetiredIconColors, testingColorRunAction } from './theme.js';
|
|
8
8
|
import { TestResultState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testTypes';
|
|
9
9
|
|
|
10
|
-
const testingViewIcon = registerIcon("test-view-icon", Codicon.beaker, ( localize(
|
|
11
|
-
const testingResultsIcon = registerIcon("test-results-icon", Codicon.checklist, ( localize(
|
|
12
|
-
const testingRunIcon = registerIcon("testing-run-icon", Codicon.run, ( localize(
|
|
13
|
-
const testingRerunIcon = registerIcon("testing-rerun-icon", Codicon.debugRerun, ( localize(
|
|
14
|
-
const testingRunAllIcon = registerIcon("testing-run-all-icon", Codicon.runAll, ( localize(
|
|
15
|
-
const testingDebugAllIcon = registerIcon("testing-debug-all-icon", Codicon.debugAltSmall, ( localize(
|
|
16
|
-
const testingDebugIcon = registerIcon("testing-debug-icon", Codicon.debugAltSmall, ( localize(
|
|
17
|
-
const testingCoverageIcon = registerIcon("testing-coverage-icon", Codicon.runCoverage, ( localize(
|
|
18
|
-
const testingCoverageAllIcon = registerIcon("testing-coverage-all-icon", Codicon.runAllCoverage, ( localize(
|
|
19
|
-
const testingCancelIcon = registerIcon("testing-cancel-icon", Codicon.debugStop, ( localize(
|
|
20
|
-
const testingFilterIcon = registerIcon("testing-filter", Codicon.filter, ( localize(
|
|
21
|
-
const testingHiddenIcon = registerIcon("testing-hidden", Codicon.eyeClosed, ( localize(
|
|
22
|
-
registerIcon("testing-show-as-list-icon", Codicon.listTree, ( localize(
|
|
23
|
-
registerIcon("testing-show-as-list-icon", Codicon.listFlat, ( localize(
|
|
24
|
-
const testingUpdateProfiles = registerIcon("testing-update-profiles", Codicon.gear, ( localize(
|
|
25
|
-
const testingRefreshTests = registerIcon("testing-refresh-tests", Codicon.refresh, ( localize(
|
|
26
|
-
const testingTurnContinuousRunOn = registerIcon("testing-turn-continuous-run-on", Codicon.eye, ( localize(
|
|
27
|
-
const testingTurnContinuousRunOff = registerIcon("testing-turn-continuous-run-off", Codicon.eyeClosed, ( localize(
|
|
28
|
-
const testingContinuousIsOn = registerIcon("testing-continuous-is-on", Codicon.eye, ( localize(
|
|
29
|
-
const testingCancelRefreshTests = registerIcon("testing-cancel-refresh-tests", Codicon.stop, ( localize(
|
|
30
|
-
const testingCoverageReport = registerIcon("testing-coverage", Codicon.coverage, ( localize(
|
|
31
|
-
const testingWasCovered = registerIcon("testing-was-covered", Codicon.check, ( localize(
|
|
32
|
-
const testingCoverageMissingBranch = registerIcon("testing-missing-branch", Codicon.question, ( localize(
|
|
10
|
+
const testingViewIcon = registerIcon("test-view-icon", Codicon.beaker, ( localize(14826, "View icon of the test view.")));
|
|
11
|
+
const testingResultsIcon = registerIcon("test-results-icon", Codicon.checklist, ( localize(14827, "Icons for test results.")));
|
|
12
|
+
const testingRunIcon = registerIcon("testing-run-icon", Codicon.run, ( localize(14828, "Icon of the \"run test\" action.")));
|
|
13
|
+
const testingRerunIcon = registerIcon("testing-rerun-icon", Codicon.debugRerun, ( localize(14829, "Icon of the \"rerun tests\" action.")));
|
|
14
|
+
const testingRunAllIcon = registerIcon("testing-run-all-icon", Codicon.runAll, ( localize(14830, "Icon of the \"run all tests\" action.")));
|
|
15
|
+
const testingDebugAllIcon = registerIcon("testing-debug-all-icon", Codicon.debugAltSmall, ( localize(14831, "Icon of the \"debug all tests\" action.")));
|
|
16
|
+
const testingDebugIcon = registerIcon("testing-debug-icon", Codicon.debugAltSmall, ( localize(14832, "Icon of the \"debug test\" action.")));
|
|
17
|
+
const testingCoverageIcon = registerIcon("testing-coverage-icon", Codicon.runCoverage, ( localize(14833, "Icon of the \"run test with coverage\" action.")));
|
|
18
|
+
const testingCoverageAllIcon = registerIcon("testing-coverage-all-icon", Codicon.runAllCoverage, ( localize(14834, "Icon of the \"run all tests with coverage\" action.")));
|
|
19
|
+
const testingCancelIcon = registerIcon("testing-cancel-icon", Codicon.debugStop, ( localize(14835, "Icon to cancel ongoing test runs.")));
|
|
20
|
+
const testingFilterIcon = registerIcon("testing-filter", Codicon.filter, ( localize(14836, "Icon for the 'Filter' action in the testing view.")));
|
|
21
|
+
const testingHiddenIcon = registerIcon("testing-hidden", Codicon.eyeClosed, ( localize(14837, "Icon shown beside hidden tests, when they've been shown.")));
|
|
22
|
+
registerIcon("testing-show-as-list-icon", Codicon.listTree, ( localize(14838, "Icon shown when the test explorer is disabled as a tree.")));
|
|
23
|
+
registerIcon("testing-show-as-list-icon", Codicon.listFlat, ( localize(14839, "Icon shown when the test explorer is disabled as a list.")));
|
|
24
|
+
const testingUpdateProfiles = registerIcon("testing-update-profiles", Codicon.gear, ( localize(14840, "Icon shown to update test profiles.")));
|
|
25
|
+
const testingRefreshTests = registerIcon("testing-refresh-tests", Codicon.refresh, ( localize(14841, "Icon on the button to refresh tests.")));
|
|
26
|
+
const testingTurnContinuousRunOn = registerIcon("testing-turn-continuous-run-on", Codicon.eye, ( localize(14842, "Icon to turn continuous test runs on.")));
|
|
27
|
+
const testingTurnContinuousRunOff = registerIcon("testing-turn-continuous-run-off", Codicon.eyeClosed, ( localize(14843, "Icon to turn continuous test runs off.")));
|
|
28
|
+
const testingContinuousIsOn = registerIcon("testing-continuous-is-on", Codicon.eye, ( localize(14844, "Icon when continuous run is on for a test ite,.")));
|
|
29
|
+
const testingCancelRefreshTests = registerIcon("testing-cancel-refresh-tests", Codicon.stop, ( localize(14845, "Icon on the button to cancel refreshing tests.")));
|
|
30
|
+
const testingCoverageReport = registerIcon("testing-coverage", Codicon.coverage, ( localize(14846, "Icon representing test coverage")));
|
|
31
|
+
const testingWasCovered = registerIcon("testing-was-covered", Codicon.check, ( localize(14847, "Icon representing that an element was covered")));
|
|
32
|
+
const testingCoverageMissingBranch = registerIcon("testing-missing-branch", Codicon.question, ( localize(14848, "Icon representing a uncovered block without a range")));
|
|
33
33
|
const testingStatesToIcons = ( new Map([[
|
|
34
34
|
TestResultState.Errored,
|
|
35
|
-
registerIcon("testing-error-icon", Codicon.issues, ( localize(
|
|
35
|
+
registerIcon("testing-error-icon", Codicon.issues, ( localize(14849, "Icon shown for tests that have an error.")))
|
|
36
36
|
], [
|
|
37
37
|
TestResultState.Failed,
|
|
38
|
-
registerIcon("testing-failed-icon", Codicon.error, ( localize(
|
|
38
|
+
registerIcon("testing-failed-icon", Codicon.error, ( localize(14850, "Icon shown for tests that failed.")))
|
|
39
39
|
], [
|
|
40
40
|
TestResultState.Passed,
|
|
41
|
-
registerIcon("testing-passed-icon", Codicon.pass, ( localize(
|
|
41
|
+
registerIcon("testing-passed-icon", Codicon.pass, ( localize(14851, "Icon shown for tests that passed.")))
|
|
42
42
|
], [
|
|
43
43
|
TestResultState.Queued,
|
|
44
|
-
registerIcon("testing-queued-icon", Codicon.history, ( localize(
|
|
44
|
+
registerIcon("testing-queued-icon", Codicon.history, ( localize(14852, "Icon shown for tests that are queued.")))
|
|
45
45
|
], [TestResultState.Running, spinningLoading], [
|
|
46
46
|
TestResultState.Skipped,
|
|
47
|
-
registerIcon("testing-skipped-icon", Codicon.debugStepOver, ( localize(
|
|
47
|
+
registerIcon("testing-skipped-icon", Codicon.debugStepOver, ( localize(14853, "Icon shown for tests that are skipped.")))
|
|
48
48
|
], [
|
|
49
49
|
TestResultState.Unset,
|
|
50
|
-
registerIcon("testing-unset-icon", Codicon.circleOutline, ( localize(
|
|
50
|
+
registerIcon("testing-unset-icon", Codicon.circleOutline, ( localize(14854, "Icon shown for tests that are in an unset state.")))
|
|
51
51
|
]]));
|
|
52
52
|
registerThemingParticipant((theme, collector) => {
|
|
53
53
|
for (const [state, icon] of testingStatesToIcons.entries()) {
|
|
@@ -140,21 +140,21 @@ const renderBar = (bar, pct, isZero, thresholds) => {
|
|
|
140
140
|
};
|
|
141
141
|
const nf = safeIntl.NumberFormat();
|
|
142
142
|
const stmtCoverageText = coverage => ( localize(
|
|
143
|
-
|
|
143
|
+
14855,
|
|
144
144
|
"{0}/{1} statements covered ({2})",
|
|
145
145
|
nf.value.format(coverage.statement.covered),
|
|
146
146
|
nf.value.format(coverage.statement.total),
|
|
147
147
|
displayPercent(percent(coverage.statement))
|
|
148
148
|
));
|
|
149
149
|
const fnCoverageText = coverage => coverage.declaration && ( localize(
|
|
150
|
-
|
|
150
|
+
14856,
|
|
151
151
|
"{0}/{1} functions covered ({2})",
|
|
152
152
|
nf.value.format(coverage.declaration.covered),
|
|
153
153
|
nf.value.format(coverage.declaration.total),
|
|
154
154
|
displayPercent(percent(coverage.declaration))
|
|
155
155
|
));
|
|
156
156
|
const branchCoverageText = coverage => coverage.branch && ( localize(
|
|
157
|
-
|
|
157
|
+
14857,
|
|
158
158
|
"{0}/{1} branches covered ({2})",
|
|
159
159
|
nf.value.format(coverage.branch.covered),
|
|
160
160
|
nf.value.format(coverage.branch.total),
|
|
@@ -203,7 +203,7 @@ class DeclarationCoverageNode {
|
|
|
203
203
|
DeclarationCoverageNode.__decorator = ( __decorate([memoize], DeclarationCoverageNode.prototype, "attributableCoverage", null));
|
|
204
204
|
class RevealUncoveredDeclarations {
|
|
205
205
|
get label() {
|
|
206
|
-
return localize(
|
|
206
|
+
return localize(14858, "{0} declarations without coverage...", this.n);
|
|
207
207
|
}
|
|
208
208
|
constructor(n) {
|
|
209
209
|
this.n = n;
|
|
@@ -212,7 +212,7 @@ class RevealUncoveredDeclarations {
|
|
|
212
212
|
}
|
|
213
213
|
class CurrentlyFilteredTo {
|
|
214
214
|
get label() {
|
|
215
|
-
return localize(
|
|
215
|
+
return localize(14859, "Showing coverage for \"{0}\"", this.testItem.label);
|
|
216
216
|
}
|
|
217
217
|
constructor(testItem) {
|
|
218
218
|
this.testItem = testItem;
|
|
@@ -222,7 +222,7 @@ class CurrentlyFilteredTo {
|
|
|
222
222
|
class LoadingDetails {
|
|
223
223
|
constructor() {
|
|
224
224
|
this.id = String(fnNodeId++);
|
|
225
|
-
this.label = ( localize(
|
|
225
|
+
this.label = ( localize(14860, "Loading Coverage Details..."));
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
const isFileCoverage = c => typeof c === "object" && "value" in c;
|
|
@@ -266,13 +266,13 @@ let TestCoverageTree = class TestCoverageTree extends Disposable {
|
|
|
266
266
|
getAriaLabel(element) {
|
|
267
267
|
if (isFileCoverage(element)) {
|
|
268
268
|
const name = basenameOrAuthority(element.value.uri);
|
|
269
|
-
return localize(
|
|
269
|
+
return localize(14861, "{0} coverage: {0}%", name, (element.value.tpc * 100).toFixed(2));
|
|
270
270
|
} else {
|
|
271
271
|
return element.label;
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
getWidgetAriaLabel() {
|
|
275
|
-
return localize(
|
|
275
|
+
return localize(14862, "Test Coverage Explorer");
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
278
|
identityProvider: ( new TestCoverageIdentityProvider())
|
|
@@ -648,7 +648,7 @@ registerAction2(class TestCoverageChangePerTestFilterAction extends Action2 {
|
|
|
648
648
|
super({
|
|
649
649
|
id: TestCommandId.CoverageFilterToTest,
|
|
650
650
|
category: Categories.Test,
|
|
651
|
-
title: ( localize2(
|
|
651
|
+
title: ( localize2(14863, "Filter Coverage by Test")),
|
|
652
652
|
icon: Codicon.filter,
|
|
653
653
|
toggled: {
|
|
654
654
|
icon: Codicon.filterFilled,
|
|
@@ -706,7 +706,7 @@ registerAction2(class TestCoverageChangeSortingAction extends ViewAction {
|
|
|
706
706
|
super({
|
|
707
707
|
id: TestCommandId.CoverageViewChangeSorting,
|
|
708
708
|
viewId: Testing.CoverageViewId,
|
|
709
|
-
title: ( localize2(
|
|
709
|
+
title: ( localize2(14864, "Change Sort Order")),
|
|
710
710
|
icon: Codicon.sortPrecedence,
|
|
711
711
|
menu: {
|
|
712
712
|
id: MenuId.ViewTitle,
|
|
@@ -720,22 +720,22 @@ registerAction2(class TestCoverageChangeSortingAction extends ViewAction {
|
|
|
720
720
|
const disposables = ( new DisposableStore());
|
|
721
721
|
const quickInput = disposables.add(accessor.get(IQuickInputService).createQuickPick());
|
|
722
722
|
const items = [{
|
|
723
|
-
label: ( localize(
|
|
723
|
+
label: ( localize(14865, "Sort by Location")),
|
|
724
724
|
value: CoverageSortOrder.Location,
|
|
725
725
|
description: ( localize(
|
|
726
|
-
|
|
726
|
+
14866,
|
|
727
727
|
"Files are sorted alphabetically, declarations are sorted by position"
|
|
728
728
|
))
|
|
729
729
|
}, {
|
|
730
|
-
label: ( localize(
|
|
730
|
+
label: ( localize(14867, "Sort by Coverage")),
|
|
731
731
|
value: CoverageSortOrder.Coverage,
|
|
732
|
-
description: ( localize(
|
|
732
|
+
description: ( localize(14868, "Files and declarations are sorted by total coverage"))
|
|
733
733
|
}, {
|
|
734
|
-
label: ( localize(
|
|
734
|
+
label: ( localize(14869, "Sort by Name")),
|
|
735
735
|
value: CoverageSortOrder.Name,
|
|
736
|
-
description: ( localize(
|
|
736
|
+
description: ( localize(14870, "Files and declarations are sorted alphabetically"))
|
|
737
737
|
}];
|
|
738
|
-
quickInput.placeholder = ( localize(
|
|
738
|
+
quickInput.placeholder = ( localize(14871, "Sort the Test Coverage view..."));
|
|
739
739
|
quickInput.items = items;
|
|
740
740
|
quickInput.show();
|
|
741
741
|
disposables.add(quickInput.onDidHide(() => disposables.dispose()));
|
|
@@ -753,7 +753,7 @@ registerAction2(class TestCoverageCollapseAllAction extends ViewAction {
|
|
|
753
753
|
super({
|
|
754
754
|
id: TestCommandId.CoverageViewCollapseAll,
|
|
755
755
|
viewId: Testing.CoverageViewId,
|
|
756
|
-
title: ( localize2(
|
|
756
|
+
title: ( localize2(14872, "Collapse All Coverage")),
|
|
757
757
|
icon: Codicon.collapseAll,
|
|
758
758
|
menu: {
|
|
759
759
|
id: MenuId.ViewTitle,
|