@codingame/monaco-vscode-testing-service-override 26.2.2 → 27.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/explorerProjections/listProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/treeProjection.js +1 -1
- 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 +16 -16
- 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 +20 -20
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +13 -12
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +27 -22
- package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +12 -12
- 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/testExplorerFilterState.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testResultService.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +7 -7
- package/vscode/src/vs/workbench/contrib/testing/common/testingChatAgentTool.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +31 -31
- package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +1 -1
- 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": "27.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": "27.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-terminal-service-override": "27.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-xterm-addons-common": "27.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
|
+
7690,
|
|
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(7691, "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(7692, "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(7693, "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(7694, "Open File")),
|
|
641
641
|
icon: Codicon.goToFile,
|
|
642
642
|
menu: {
|
|
643
643
|
id: MenuId.DebugCallStackToolbar,
|
|
@@ -56,11 +56,11 @@ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/obse
|
|
|
56
56
|
|
|
57
57
|
const CLASS_HIT = "coverage-deco-hit";
|
|
58
58
|
const CLASS_MISS = "coverage-deco-miss";
|
|
59
|
-
const TOGGLE_INLINE_COMMAND_TEXT = ( localize(
|
|
59
|
+
const TOGGLE_INLINE_COMMAND_TEXT = ( localize(13798, "Toggle Inline"));
|
|
60
60
|
const TOGGLE_INLINE_COMMAND_ID = "testing.toggleInlineCoverage";
|
|
61
61
|
const BRANCH_MISS_INDICATOR_CHARS = 4;
|
|
62
|
-
const GO_TO_NEXT_MISSED_LINE_TITLE = ( localize2(
|
|
63
|
-
const GO_TO_PREVIOUS_MISSED_LINE_TITLE = ( localize2(
|
|
62
|
+
const GO_TO_NEXT_MISSED_LINE_TITLE = ( localize2(13799, "Go to Next Uncovered Line"));
|
|
63
|
+
const GO_TO_PREVIOUS_MISSED_LINE_TITLE = ( localize2(13800, "Go to Previous Uncovered Line"));
|
|
64
64
|
let CodeCoverageDecorations = class CodeCoverageDecorations extends Disposable {
|
|
65
65
|
static {
|
|
66
66
|
this.ID = Testing.CoverageDecorationsContributionId;
|
|
@@ -503,7 +503,7 @@ class CoverageDetailsModel {
|
|
|
503
503
|
if (detail.branches?.length) {
|
|
504
504
|
const covered = detail.branches.filter(b => !!b.count).length;
|
|
505
505
|
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
506
|
-
|
|
506
|
+
13801,
|
|
507
507
|
"{0} of {1} of branches in {2} were covered.",
|
|
508
508
|
covered,
|
|
509
509
|
detail.branches.length,
|
|
@@ -522,11 +522,11 @@ class CoverageDetailsModel {
|
|
|
522
522
|
} = detail.detail.branches[detail.branch];
|
|
523
523
|
const label2 = label ? wrapInBackticks(label) : `#${detail.branch + 1}`;
|
|
524
524
|
if (!count) {
|
|
525
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
525
|
+
return ( new MarkdownString()).appendMarkdown(( localize(13802, "Branch {0} in {1} was not covered.", label2, text)));
|
|
526
526
|
} else if (count === true) {
|
|
527
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
527
|
+
return ( new MarkdownString()).appendMarkdown(( localize(13803, "Branch {0} in {1} was executed.", label2, text)));
|
|
528
528
|
} else {
|
|
529
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
529
|
+
return ( new MarkdownString()).appendMarkdown(( localize(13804, "Branch {0} in {1} was executed {2} time(s).", label2, text, count)));
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
assertNever();
|
|
@@ -534,7 +534,7 @@ class CoverageDetailsModel {
|
|
|
534
534
|
}
|
|
535
535
|
function namedDetailLabel(name, detail) {
|
|
536
536
|
return ( new MarkdownString()).appendMarkdown(
|
|
537
|
-
!detail.count ? ( localize(
|
|
537
|
+
!detail.count ? ( localize(13805, "`{0}` was not executed.", name)) : typeof detail.count === "number" ? ( localize(13806, "`{0}` was executed {1} time(s).", name, detail.count)) : ( localize(13807, "`{0}` was executed.", name)));
|
|
538
538
|
}
|
|
539
539
|
function tidyLocation(location) {
|
|
540
540
|
if (location instanceof Position) {
|
|
@@ -650,7 +650,7 @@ let CoverageToolbarWidget = class CoverageToolbarWidget extends Disposable {
|
|
|
650
650
|
if (!current) {
|
|
651
651
|
return;
|
|
652
652
|
}
|
|
653
|
-
const toggleAction = ( new ActionWithIcon("toggleInline", this.coverage.showInline.get() ? ( localize(
|
|
653
|
+
const toggleAction = ( new ActionWithIcon("toggleInline", this.coverage.showInline.get() ? ( localize(13808, "Hide Inline")) : ( localize(13809, "Show Inline")), testingCoverageReport, undefined, () => this.coverage.showInline.set(!this.coverage.showInline.get(), undefined)));
|
|
654
654
|
toggleAction.tooltip = this.keybindingService.appendKeybinding(TOGGLE_INLINE_COMMAND_TEXT, TOGGLE_INLINE_COMMAND_ID);
|
|
655
655
|
const hasUncoveredStmt = current.coverage.statement.covered < current.coverage.statement.total;
|
|
656
656
|
this.actionBar.push(( new ActionWithIcon(
|
|
@@ -682,12 +682,12 @@ let CoverageToolbarWidget = class CoverageToolbarWidget extends Disposable {
|
|
|
682
682
|
)));
|
|
683
683
|
} else if (current.coverage.perTestData?.size) {
|
|
684
684
|
this.actionBar.push(( new ActionWithIcon("perTestFilter", ( localize(
|
|
685
|
-
|
|
685
|
+
13810,
|
|
686
686
|
"{0} test(s) ran code in this file",
|
|
687
687
|
current.coverage.perTestData.size
|
|
688
688
|
)), testingFilterIcon, undefined, () => this.commandService.executeCommand(TestCommandId.CoverageFilterToTestInEditor, this.current, this.editor))));
|
|
689
689
|
}
|
|
690
|
-
this.actionBar.push(( new ActionWithIcon("rerun", ( localize(
|
|
690
|
+
this.actionBar.push(( new ActionWithIcon("rerun", ( localize(13811, "Rerun")), testingRerunIcon, !this.isRunning, () => this.rerunTest())));
|
|
691
691
|
}
|
|
692
692
|
show() {
|
|
693
693
|
if (this.registered) {
|
|
@@ -739,7 +739,7 @@ registerAction2(class ToggleInlineCoverage extends Action2 {
|
|
|
739
739
|
constructor() {
|
|
740
740
|
super({
|
|
741
741
|
id: TOGGLE_INLINE_COMMAND_ID,
|
|
742
|
-
title: ( localize2(
|
|
742
|
+
title: ( localize2(13812, "Toggle Inline Coverage")),
|
|
743
743
|
category: Categories.Test,
|
|
744
744
|
keybinding: {
|
|
745
745
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -750,7 +750,7 @@ registerAction2(class ToggleInlineCoverage extends Action2 {
|
|
|
750
750
|
},
|
|
751
751
|
toggled: {
|
|
752
752
|
condition: TestingContextKeys.inlineCoverageEnabled,
|
|
753
|
-
title: ( localize(
|
|
753
|
+
title: ( localize(13813, "Hide Inline Coverage"))
|
|
754
754
|
},
|
|
755
755
|
icon: testingCoverageReport,
|
|
756
756
|
menu: [{
|
|
@@ -772,9 +772,9 @@ registerAction2(class ToggleCoverageToolbar extends Action2 {
|
|
|
772
772
|
constructor() {
|
|
773
773
|
super({
|
|
774
774
|
id: TestCommandId.CoverageToggleToolbar,
|
|
775
|
-
title: ( localize2(
|
|
775
|
+
title: ( localize2(13814, "Show Test Coverage Toolbar")),
|
|
776
776
|
metadata: {
|
|
777
|
-
description: ( localize2(
|
|
777
|
+
description: ( localize2(13815, "Toggle the sticky coverage bar in the editor."))
|
|
778
778
|
},
|
|
779
779
|
category: Categories.Test,
|
|
780
780
|
toggled: {
|
|
@@ -804,7 +804,7 @@ registerAction2(class FilterCoverageToTestInEditor extends Action2 {
|
|
|
804
804
|
constructor() {
|
|
805
805
|
super({
|
|
806
806
|
id: TestCommandId.CoverageFilterToTestInEditor,
|
|
807
|
-
title: ( localize2(
|
|
807
|
+
title: ( localize2(13816, "Filter Coverage to Test")),
|
|
808
808
|
category: Categories.Test,
|
|
809
809
|
icon: Codicon.filter,
|
|
810
810
|
toggled: {
|
|
@@ -894,14 +894,14 @@ registerAction2(class ToggleCoverageInExplorer extends Action2 {
|
|
|
894
894
|
constructor() {
|
|
895
895
|
super({
|
|
896
896
|
id: TestCommandId.CoverageToggleInExplorer,
|
|
897
|
-
title: ( localize2(
|
|
897
|
+
title: ( localize2(13817, "Toggle Coverage in Explorer")),
|
|
898
898
|
metadata: {
|
|
899
|
-
description: ( localize2(
|
|
899
|
+
description: ( localize2(13818, "Toggle the display of test coverage in the File Explorer view."))
|
|
900
900
|
},
|
|
901
901
|
category: Categories.Test,
|
|
902
902
|
toggled: {
|
|
903
903
|
condition: ( ContextKeyExpr.equals("config.testing.showCoverageInExplorer", true)),
|
|
904
|
-
title: ( localize(
|
|
904
|
+
title: ( localize(13819, "Hide Coverage in Explorer"))
|
|
905
905
|
},
|
|
906
906
|
menu: [{
|
|
907
907
|
id: MenuId.CommandPalette,
|
|
@@ -921,7 +921,7 @@ registerAction2(class GoToNextMissedCoverageLine extends Action2 {
|
|
|
921
921
|
id: TestCommandId.CoverageGoToNextMissedLine,
|
|
922
922
|
title: GO_TO_NEXT_MISSED_LINE_TITLE,
|
|
923
923
|
metadata: {
|
|
924
|
-
description: ( localize2(
|
|
924
|
+
description: ( localize2(13820, "Navigate to the next line that is not covered by tests."))
|
|
925
925
|
},
|
|
926
926
|
category: Categories.Test,
|
|
927
927
|
icon: Codicon.arrowDown,
|
|
@@ -958,7 +958,7 @@ registerAction2(class GoToPreviousMissedCoverageLine extends Action2 {
|
|
|
958
958
|
id: TestCommandId.CoverageGoToPreviousMissedLine,
|
|
959
959
|
title: GO_TO_PREVIOUS_MISSED_LINE_TITLE,
|
|
960
960
|
metadata: {
|
|
961
|
-
description: ( localize2(
|
|
961
|
+
description: ( localize2(13821, "Navigate to the previous line that is not covered by tests."))
|
|
962
962
|
},
|
|
963
963
|
category: Categories.Test,
|
|
964
964
|
icon: Codicon.arrowUp,
|
|
@@ -84,11 +84,11 @@ function getLabelForItem(result, testId, commonPrefixLen) {
|
|
|
84
84
|
}
|
|
85
85
|
var labels;
|
|
86
86
|
(function(labels) {
|
|
87
|
-
labels.showingFilterFor = label => ( localize(
|
|
88
|
-
labels.clickToChangeFiltering = ( localize(
|
|
89
|
-
labels.percentCoverage = (percent, precision) => ( localize(
|
|
90
|
-
labels.allTests = ( localize(
|
|
91
|
-
labels.pickShowCoverage = ( localize(
|
|
87
|
+
labels.showingFilterFor = label => ( localize(13822, "Showing \"{0}\"", label));
|
|
88
|
+
labels.clickToChangeFiltering = ( localize(13823, "Click to view coverage for a single test"));
|
|
89
|
+
labels.percentCoverage = (percent, precision) => ( localize(13824, "{0} Coverage", displayPercent(percent, precision)));
|
|
90
|
+
labels.allTests = ( localize(13825, "All tests"));
|
|
91
|
+
labels.pickShowCoverage = ( localize(13826, "Pick a test to show coverage for"));
|
|
92
92
|
})(labels || (labels = {}));
|
|
93
93
|
|
|
94
94
|
export { calculateDisplayedStat, displayPercent, getCoverageColor, getLabelForItem, labels, percent };
|
package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/listProjection.js
CHANGED
|
@@ -56,7 +56,7 @@ let ListProjection = class ListProjection extends Disposable {
|
|
|
56
56
|
this.lastState = lastState;
|
|
57
57
|
this.testService = testService;
|
|
58
58
|
this.results = results;
|
|
59
|
-
this.updateEmitter = ( new Emitter());
|
|
59
|
+
this.updateEmitter = this._register(( new Emitter()));
|
|
60
60
|
this.items = ( new Map());
|
|
61
61
|
this.onUpdate = this.updateEmitter.event;
|
|
62
62
|
this._register(testService.onDidProcessDiff(diff => this.applyDiff(diff)));
|
package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/treeProjection.js
CHANGED
|
@@ -72,7 +72,7 @@ let TreeProjection = class TreeProjection extends Disposable {
|
|
|
72
72
|
this.lastState = lastState;
|
|
73
73
|
this.testService = testService;
|
|
74
74
|
this.results = results;
|
|
75
|
-
this.updateEmitter = ( new Emitter());
|
|
75
|
+
this.updateEmitter = this._register(( new Emitter()));
|
|
76
76
|
this.changedParents = ( new Set());
|
|
77
77
|
this.resortedParents = ( new Set());
|
|
78
78
|
this.items = ( new Map());
|
|
@@ -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(13827, "View icon of the test view.")));
|
|
11
|
+
const testingResultsIcon = registerIcon("test-results-icon", Codicon.checklist, ( localize(13828, "Icons for test results.")));
|
|
12
|
+
const testingRunIcon = registerIcon("testing-run-icon", Codicon.run, ( localize(13829, "Icon of the \"run test\" action.")));
|
|
13
|
+
const testingRerunIcon = registerIcon("testing-rerun-icon", Codicon.debugRerun, ( localize(13830, "Icon of the \"rerun tests\" action.")));
|
|
14
|
+
const testingRunAllIcon = registerIcon("testing-run-all-icon", Codicon.runAll, ( localize(13831, "Icon of the \"run all tests\" action.")));
|
|
15
|
+
const testingDebugAllIcon = registerIcon("testing-debug-all-icon", Codicon.debugAltSmall, ( localize(13832, "Icon of the \"debug all tests\" action.")));
|
|
16
|
+
const testingDebugIcon = registerIcon("testing-debug-icon", Codicon.debugAltSmall, ( localize(13833, "Icon of the \"debug test\" action.")));
|
|
17
|
+
const testingCoverageIcon = registerIcon("testing-coverage-icon", Codicon.runCoverage, ( localize(13834, "Icon of the \"run test with coverage\" action.")));
|
|
18
|
+
const testingCoverageAllIcon = registerIcon("testing-coverage-all-icon", Codicon.runAllCoverage, ( localize(13835, "Icon of the \"run all tests with coverage\" action.")));
|
|
19
|
+
const testingCancelIcon = registerIcon("testing-cancel-icon", Codicon.debugStop, ( localize(13836, "Icon to cancel ongoing test runs.")));
|
|
20
|
+
const testingFilterIcon = registerIcon("testing-filter", Codicon.filter, ( localize(13837, "Icon for the 'Filter' action in the testing view.")));
|
|
21
|
+
const testingHiddenIcon = registerIcon("testing-hidden", Codicon.eyeClosed, ( localize(13838, "Icon shown beside hidden tests, when they've been shown.")));
|
|
22
|
+
registerIcon("testing-show-as-list-icon", Codicon.listTree, ( localize(13839, "Icon shown when the test explorer is disabled as a tree.")));
|
|
23
|
+
registerIcon("testing-show-as-list-icon", Codicon.listFlat, ( localize(13840, "Icon shown when the test explorer is disabled as a list.")));
|
|
24
|
+
const testingUpdateProfiles = registerIcon("testing-update-profiles", Codicon.gear, ( localize(13841, "Icon shown to update test profiles.")));
|
|
25
|
+
const testingRefreshTests = registerIcon("testing-refresh-tests", Codicon.refresh, ( localize(13842, "Icon on the button to refresh tests.")));
|
|
26
|
+
const testingTurnContinuousRunOn = registerIcon("testing-turn-continuous-run-on", Codicon.eye, ( localize(13843, "Icon to turn continuous test runs on.")));
|
|
27
|
+
const testingTurnContinuousRunOff = registerIcon("testing-turn-continuous-run-off", Codicon.eyeClosed, ( localize(13844, "Icon to turn continuous test runs off.")));
|
|
28
|
+
const testingContinuousIsOn = registerIcon("testing-continuous-is-on", Codicon.eye, ( localize(13845, "Icon when continuous run is on for a test ite,.")));
|
|
29
|
+
const testingCancelRefreshTests = registerIcon("testing-cancel-refresh-tests", Codicon.stop, ( localize(13846, "Icon on the button to cancel refreshing tests.")));
|
|
30
|
+
const testingCoverageReport = registerIcon("testing-coverage", Codicon.coverage, ( localize(13847, "Icon representing test coverage")));
|
|
31
|
+
const testingWasCovered = registerIcon("testing-was-covered", Codicon.check, ( localize(13848, "Icon representing that an element was covered")));
|
|
32
|
+
const testingCoverageMissingBranch = registerIcon("testing-missing-branch", Codicon.question, ( localize(13849, "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(13850, "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(13851, "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(13852, "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(13853, "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(13854, "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(13855, "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
|
+
13856,
|
|
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
|
+
13857,
|
|
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
|
+
13858,
|
|
158
158
|
"{0}/{1} branches covered ({2})",
|
|
159
159
|
nf.value.format(coverage.branch.covered),
|
|
160
160
|
nf.value.format(coverage.branch.total),
|
|
@@ -86,7 +86,7 @@ let TestCoverageView = class TestCoverageView extends ViewPane {
|
|
|
86
86
|
hoverService
|
|
87
87
|
);
|
|
88
88
|
this.coverageService = coverageService;
|
|
89
|
-
this.tree = ( new MutableDisposable());
|
|
89
|
+
this.tree = this._register(( new MutableDisposable()));
|
|
90
90
|
this.sortOrder = observableValue("sortOrder", CoverageSortOrder.Location);
|
|
91
91
|
}
|
|
92
92
|
renderBody(container) {
|
|
@@ -186,7 +186,7 @@ class DeclarationCoverageNode {
|
|
|
186
186
|
DeclarationCoverageNode.__decorator = ( __decorate([memoize], DeclarationCoverageNode.prototype, "attributableCoverage", null));
|
|
187
187
|
class RevealUncoveredDeclarations {
|
|
188
188
|
get label() {
|
|
189
|
-
return localize(
|
|
189
|
+
return localize(13859, "{0} declarations without coverage...", this.n);
|
|
190
190
|
}
|
|
191
191
|
constructor(n) {
|
|
192
192
|
this.n = n;
|
|
@@ -195,7 +195,7 @@ class RevealUncoveredDeclarations {
|
|
|
195
195
|
}
|
|
196
196
|
class CurrentlyFilteredTo {
|
|
197
197
|
get label() {
|
|
198
|
-
return localize(
|
|
198
|
+
return localize(13860, "Showing coverage for \"{0}\"", this.testItem.label);
|
|
199
199
|
}
|
|
200
200
|
constructor(testItem) {
|
|
201
201
|
this.testItem = testItem;
|
|
@@ -205,7 +205,7 @@ class CurrentlyFilteredTo {
|
|
|
205
205
|
class LoadingDetails {
|
|
206
206
|
constructor() {
|
|
207
207
|
this.id = String(fnNodeId++);
|
|
208
|
-
this.label = ( localize(
|
|
208
|
+
this.label = ( localize(13861, "Loading Coverage Details..."));
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
const isFileCoverage = c => typeof c === "object" && "value" in c;
|
|
@@ -249,13 +249,13 @@ let TestCoverageTree = class TestCoverageTree extends Disposable {
|
|
|
249
249
|
getAriaLabel(element) {
|
|
250
250
|
if (isFileCoverage(element)) {
|
|
251
251
|
const name = basenameOrAuthority(element.value.uri);
|
|
252
|
-
return localize(
|
|
252
|
+
return localize(13862, "{0} coverage: {0}%", name, (element.value.tpc * 100).toFixed(2));
|
|
253
253
|
} else {
|
|
254
254
|
return element.label;
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
257
|
getWidgetAriaLabel() {
|
|
258
|
-
return localize(
|
|
258
|
+
return localize(13863, "Test Coverage Explorer");
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
261
|
identityProvider: ( new TestCoverageIdentityProvider())
|
|
@@ -631,7 +631,7 @@ registerAction2(class TestCoverageChangePerTestFilterAction extends Action2 {
|
|
|
631
631
|
super({
|
|
632
632
|
id: TestCommandId.CoverageFilterToTest,
|
|
633
633
|
category: Categories.Test,
|
|
634
|
-
title: ( localize2(
|
|
634
|
+
title: ( localize2(13864, "Filter Coverage by Test")),
|
|
635
635
|
icon: Codicon.filter,
|
|
636
636
|
toggled: {
|
|
637
637
|
icon: Codicon.filterFilled,
|
|
@@ -689,7 +689,7 @@ registerAction2(class TestCoverageChangeSortingAction extends ViewAction {
|
|
|
689
689
|
super({
|
|
690
690
|
id: TestCommandId.CoverageViewChangeSorting,
|
|
691
691
|
viewId: Testing.CoverageViewId,
|
|
692
|
-
title: ( localize2(
|
|
692
|
+
title: ( localize2(13865, "Change Sort Order")),
|
|
693
693
|
icon: Codicon.sortPrecedence,
|
|
694
694
|
menu: {
|
|
695
695
|
id: MenuId.ViewTitle,
|
|
@@ -703,22 +703,22 @@ registerAction2(class TestCoverageChangeSortingAction extends ViewAction {
|
|
|
703
703
|
const disposables = ( new DisposableStore());
|
|
704
704
|
const quickInput = disposables.add(accessor.get(IQuickInputService).createQuickPick());
|
|
705
705
|
const items = [{
|
|
706
|
-
label: ( localize(
|
|
706
|
+
label: ( localize(13866, "Sort by Location")),
|
|
707
707
|
value: CoverageSortOrder.Location,
|
|
708
708
|
description: ( localize(
|
|
709
|
-
|
|
709
|
+
13867,
|
|
710
710
|
"Files are sorted alphabetically, declarations are sorted by position"
|
|
711
711
|
))
|
|
712
712
|
}, {
|
|
713
|
-
label: ( localize(
|
|
713
|
+
label: ( localize(13868, "Sort by Coverage")),
|
|
714
714
|
value: CoverageSortOrder.Coverage,
|
|
715
|
-
description: ( localize(
|
|
715
|
+
description: ( localize(13869, "Files and declarations are sorted by total coverage"))
|
|
716
716
|
}, {
|
|
717
|
-
label: ( localize(
|
|
717
|
+
label: ( localize(13870, "Sort by Name")),
|
|
718
718
|
value: CoverageSortOrder.Name,
|
|
719
|
-
description: ( localize(
|
|
719
|
+
description: ( localize(13871, "Files and declarations are sorted alphabetically"))
|
|
720
720
|
}];
|
|
721
|
-
quickInput.placeholder = ( localize(
|
|
721
|
+
quickInput.placeholder = ( localize(13872, "Sort the Test Coverage view..."));
|
|
722
722
|
quickInput.items = items;
|
|
723
723
|
quickInput.show();
|
|
724
724
|
disposables.add(quickInput.onDidHide(() => disposables.dispose()));
|
|
@@ -736,7 +736,7 @@ registerAction2(class TestCoverageCollapseAllAction extends ViewAction {
|
|
|
736
736
|
super({
|
|
737
737
|
id: TestCommandId.CoverageViewCollapseAll,
|
|
738
738
|
viewId: Testing.CoverageViewId,
|
|
739
|
-
title: ( localize2(
|
|
739
|
+
title: ( localize2(13873, "Collapse All Coverage")),
|
|
740
740
|
icon: Codicon.collapseAll,
|
|
741
741
|
menu: {
|
|
742
742
|
id: MenuId.ViewTitle,
|