@codingame/monaco-vscode-testing-service-override 21.3.2 → 21.3.3
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 +17 -17
- package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +20 -20
- 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 +13 -13
- package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +71 -71
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsOutput.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsTree.js +24 -24
- 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 +14 -14
- 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 +33 -33
- package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/testingChatAgentTool.js +12 -12
- 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": "21.3.
|
|
3
|
+
"version": "21.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - testing service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,22 +15,22 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common": "21.3.
|
|
19
|
-
"@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common": "21.3.
|
|
20
|
-
"@codingame/monaco-vscode-4fad3647-b95d-5c19-bab1-bb9de627a5ec-common": "21.3.
|
|
21
|
-
"@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common": "21.3.
|
|
22
|
-
"@codingame/monaco-vscode-71c8dbff-4c98-552f-aef0-e72b00fdcfc0-common": "21.3.
|
|
23
|
-
"@codingame/monaco-vscode-88141f48-1af9-57ef-a278-f4b2ff6128fa-common": "21.3.
|
|
24
|
-
"@codingame/monaco-vscode-8bcd87e5-7461-57cf-b4e4-a7b00d2b33df-common": "21.3.
|
|
25
|
-
"@codingame/monaco-vscode-9a5ab9e7-d838-5831-9eb4-e79ea3764dcb-common": "21.3.
|
|
26
|
-
"@codingame/monaco-vscode-a9da9abe-278d-5ce6-9418-99c7c07c5c37-common": "21.3.
|
|
27
|
-
"@codingame/monaco-vscode-api": "21.3.
|
|
28
|
-
"@codingame/monaco-vscode-b6d52a6d-8c8e-51f5-bcd2-1722295e31d9-common": "21.3.
|
|
29
|
-
"@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common": "21.3.
|
|
30
|
-
"@codingame/monaco-vscode-e39a1c8f-7892-5d9b-9987-7b10b79e1a0a-common": "21.3.
|
|
31
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "21.3.
|
|
32
|
-
"@codingame/monaco-vscode-f6ab89b2-83b0-5a43-8772-cb0eafa650b5-common": "21.3.
|
|
33
|
-
"@codingame/monaco-vscode-terminal-service-override": "21.3.
|
|
18
|
+
"@codingame/monaco-vscode-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common": "21.3.3",
|
|
19
|
+
"@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common": "21.3.3",
|
|
20
|
+
"@codingame/monaco-vscode-4fad3647-b95d-5c19-bab1-bb9de627a5ec-common": "21.3.3",
|
|
21
|
+
"@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common": "21.3.3",
|
|
22
|
+
"@codingame/monaco-vscode-71c8dbff-4c98-552f-aef0-e72b00fdcfc0-common": "21.3.3",
|
|
23
|
+
"@codingame/monaco-vscode-88141f48-1af9-57ef-a278-f4b2ff6128fa-common": "21.3.3",
|
|
24
|
+
"@codingame/monaco-vscode-8bcd87e5-7461-57cf-b4e4-a7b00d2b33df-common": "21.3.3",
|
|
25
|
+
"@codingame/monaco-vscode-9a5ab9e7-d838-5831-9eb4-e79ea3764dcb-common": "21.3.3",
|
|
26
|
+
"@codingame/monaco-vscode-a9da9abe-278d-5ce6-9418-99c7c07c5c37-common": "21.3.3",
|
|
27
|
+
"@codingame/monaco-vscode-api": "21.3.3",
|
|
28
|
+
"@codingame/monaco-vscode-b6d52a6d-8c8e-51f5-bcd2-1722295e31d9-common": "21.3.3",
|
|
29
|
+
"@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common": "21.3.3",
|
|
30
|
+
"@codingame/monaco-vscode-e39a1c8f-7892-5d9b-9987-7b10b79e1a0a-common": "21.3.3",
|
|
31
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "21.3.3",
|
|
32
|
+
"@codingame/monaco-vscode-f6ab89b2-83b0-5a43-8772-cb0eafa650b5-common": "21.3.3",
|
|
33
|
+
"@codingame/monaco-vscode-terminal-service-override": "21.3.3"
|
|
34
34
|
},
|
|
35
35
|
"main": "index.js",
|
|
36
36
|
"module": "index.js",
|
|
@@ -56,7 +56,7 @@ 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(11766, 'Toggle Inline'));
|
|
60
60
|
const TOGGLE_INLINE_COMMAND_ID = 'testing.toggleInlineCoverage';
|
|
61
61
|
const BRANCH_MISS_INDICATOR_CHARS = 4;
|
|
62
62
|
let CodeCoverageDecorations = class CodeCoverageDecorations extends Disposable {
|
|
@@ -386,7 +386,7 @@ class CoverageDetailsModel {
|
|
|
386
386
|
if (detail.branches?.length) {
|
|
387
387
|
const covered = detail.branches.filter(b => !!b.count).length;
|
|
388
388
|
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
389
|
-
|
|
389
|
+
11767,
|
|
390
390
|
'{0} of {1} of branches in {2} were covered.',
|
|
391
391
|
covered,
|
|
392
392
|
detail.branches.length,
|
|
@@ -402,13 +402,13 @@ class CoverageDetailsModel {
|
|
|
402
402
|
const { count, label } = detail.detail.branches[detail.branch];
|
|
403
403
|
const label2 = label ? wrapInBackticks(label) : `#${detail.branch + 1}`;
|
|
404
404
|
if (!count) {
|
|
405
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
405
|
+
return ( new MarkdownString()).appendMarkdown(( localize(11768, 'Branch {0} in {1} was not covered.', label2, text)));
|
|
406
406
|
}
|
|
407
407
|
else if (count === true) {
|
|
408
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
408
|
+
return ( new MarkdownString()).appendMarkdown(( localize(11769, 'Branch {0} in {1} was executed.', label2, text)));
|
|
409
409
|
}
|
|
410
410
|
else {
|
|
411
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
411
|
+
return ( new MarkdownString()).appendMarkdown(( localize(11770, 'Branch {0} in {1} was executed {2} time(s).', label2, text, count)));
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
assertNever();
|
|
@@ -416,10 +416,10 @@ class CoverageDetailsModel {
|
|
|
416
416
|
}
|
|
417
417
|
function namedDetailLabel(name, detail) {
|
|
418
418
|
return ( new MarkdownString()).appendMarkdown(!detail.count
|
|
419
|
-
? ( localize(
|
|
419
|
+
? ( localize(11771, '`{0}` was not executed.', name))
|
|
420
420
|
: typeof detail.count === 'number'
|
|
421
|
-
? ( localize(
|
|
422
|
-
: ( localize(
|
|
421
|
+
? ( localize(11772, '`{0}` was executed {1} time(s).', name, detail.count))
|
|
422
|
+
: ( localize(11773, '`{0}` was executed.', name)));
|
|
423
423
|
}
|
|
424
424
|
function tidyLocation(location) {
|
|
425
425
|
if (location instanceof Position) {
|
|
@@ -516,8 +516,8 @@ let CoverageToolbarWidget = class CoverageToolbarWidget extends Disposable {
|
|
|
516
516
|
return;
|
|
517
517
|
}
|
|
518
518
|
const toggleAction = ( new ActionWithIcon('toggleInline', this.coverage.showInline.get()
|
|
519
|
-
? ( localize(
|
|
520
|
-
: ( localize(
|
|
519
|
+
? ( localize(11774, 'Hide Inline Coverage'))
|
|
520
|
+
: ( localize(11775, 'Show Inline Coverage')), testingCoverageReport, undefined, () => this.coverage.showInline.set(!this.coverage.showInline.get(), undefined)));
|
|
521
521
|
const kb = this.keybindingService.lookupKeybinding(TOGGLE_INLINE_COMMAND_ID);
|
|
522
522
|
if (kb) {
|
|
523
523
|
toggleAction.tooltip = `${TOGGLE_INLINE_COMMAND_TEXT} (${kb.getLabel()})`;
|
|
@@ -536,12 +536,12 @@ let CoverageToolbarWidget = class CoverageToolbarWidget extends Disposable {
|
|
|
536
536
|
}
|
|
537
537
|
else if (current.coverage.perTestData?.size) {
|
|
538
538
|
this.actionBar.push(( new ActionWithIcon('perTestFilter', ( localize(
|
|
539
|
-
|
|
539
|
+
11776,
|
|
540
540
|
"{0} test(s) ran code in this file",
|
|
541
541
|
current.coverage.perTestData.size
|
|
542
542
|
)), testingFilterIcon, undefined, () => this.commandService.executeCommand(TestCommandId.CoverageFilterToTestInEditor, this.current, this.editor))));
|
|
543
543
|
}
|
|
544
|
-
this.actionBar.push(( new ActionWithIcon('rerun', ( localize(
|
|
544
|
+
this.actionBar.push(( new ActionWithIcon('rerun', ( localize(11777, 'Rerun')), testingRerunIcon, !this.isRunning, () => this.rerunTest())));
|
|
545
545
|
}
|
|
546
546
|
show() {
|
|
547
547
|
if (this.registered) {
|
|
@@ -601,7 +601,7 @@ registerAction2(class ToggleInlineCoverage extends Action2 {
|
|
|
601
601
|
constructor() {
|
|
602
602
|
super({
|
|
603
603
|
id: TOGGLE_INLINE_COMMAND_ID,
|
|
604
|
-
title: ( localize2(
|
|
604
|
+
title: ( localize2(11778, "Toggle Inline Coverage")),
|
|
605
605
|
category: Categories.Test,
|
|
606
606
|
keybinding: {
|
|
607
607
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -609,7 +609,7 @@ registerAction2(class ToggleInlineCoverage extends Action2 {
|
|
|
609
609
|
},
|
|
610
610
|
toggled: {
|
|
611
611
|
condition: TestingContextKeys.inlineCoverageEnabled,
|
|
612
|
-
title: ( localize(
|
|
612
|
+
title: ( localize(11779, "Hide Inline Coverage")),
|
|
613
613
|
},
|
|
614
614
|
icon: testingCoverageReport,
|
|
615
615
|
menu: [
|
|
@@ -627,9 +627,9 @@ registerAction2(class ToggleCoverageToolbar extends Action2 {
|
|
|
627
627
|
constructor() {
|
|
628
628
|
super({
|
|
629
629
|
id: TestCommandId.CoverageToggleToolbar,
|
|
630
|
-
title: ( localize2(
|
|
630
|
+
title: ( localize2(11780, "Test Coverage Toolbar")),
|
|
631
631
|
metadata: {
|
|
632
|
-
description: ( localize2(
|
|
632
|
+
description: ( localize2(11781, 'Toggle the sticky coverage bar in the editor.'))
|
|
633
633
|
},
|
|
634
634
|
category: Categories.Test,
|
|
635
635
|
toggled: {
|
|
@@ -652,7 +652,7 @@ registerAction2(class FilterCoverageToTestInEditor extends Action2 {
|
|
|
652
652
|
constructor() {
|
|
653
653
|
super({
|
|
654
654
|
id: TestCommandId.CoverageFilterToTestInEditor,
|
|
655
|
-
title: ( localize2(
|
|
655
|
+
title: ( localize2(11782, "Filter Coverage to Test")),
|
|
656
656
|
category: Categories.Test,
|
|
657
657
|
icon: Codicon.filter,
|
|
658
658
|
toggled: {
|
|
@@ -740,14 +740,14 @@ registerAction2(class ToggleCoverageInExplorer extends Action2 {
|
|
|
740
740
|
constructor() {
|
|
741
741
|
super({
|
|
742
742
|
id: TestCommandId.CoverageToggleInExplorer,
|
|
743
|
-
title: ( localize2(
|
|
743
|
+
title: ( localize2(11783, "Toggle Coverage in Explorer")),
|
|
744
744
|
metadata: {
|
|
745
|
-
description: ( localize2(
|
|
745
|
+
description: ( localize2(11784, 'Toggle the display of test coverage in the File Explorer view.'))
|
|
746
746
|
},
|
|
747
747
|
category: Categories.Test,
|
|
748
748
|
toggled: {
|
|
749
749
|
condition: ( ContextKeyExpr.equals('config.testing.showCoverageInExplorer', true)),
|
|
750
|
-
title: ( localize(
|
|
750
|
+
title: ( localize(11785, "Hide Coverage in Explorer")),
|
|
751
751
|
},
|
|
752
752
|
menu: [
|
|
753
753
|
{ id: MenuId.CommandPalette, when: TestingContextKeys.isTestCoverageOpen },
|
|
@@ -75,11 +75,11 @@ function getLabelForItem(result, testId, commonPrefixLen) {
|
|
|
75
75
|
}
|
|
76
76
|
var labels;
|
|
77
77
|
(function (labels) {
|
|
78
|
-
labels.showingFilterFor = (label) => ( localize(
|
|
79
|
-
labels.clickToChangeFiltering = ( localize(
|
|
80
|
-
labels.percentCoverage = (percent, precision) => ( localize(
|
|
81
|
-
labels.allTests = ( localize(
|
|
82
|
-
labels.pickShowCoverage = ( localize(
|
|
78
|
+
labels.showingFilterFor = (label) => ( localize(11786, "Showing \"{0}\"", label));
|
|
79
|
+
labels.clickToChangeFiltering = ( localize(11787, 'Click to view coverage for a single test'));
|
|
80
|
+
labels.percentCoverage = (percent, precision) => ( localize(11788, '{0} Coverage', displayPercent(percent, precision)));
|
|
81
|
+
labels.allTests = ( localize(11789, 'All tests'));
|
|
82
|
+
labels.pickShowCoverage = ( localize(11790, 'Pick a test to show coverage for'));
|
|
83
83
|
})(labels || (labels = {}));
|
|
84
84
|
|
|
85
85
|
export { calculateDisplayedStat, displayPercent, getCoverageColor, getLabelForItem, labels, percent };
|
|
@@ -7,37 +7,37 @@ 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(11791, 'View icon of the test view.')));
|
|
11
|
+
const testingResultsIcon = registerIcon('test-results-icon', Codicon.checklist, ( localize(11792, 'Icons for test results.')));
|
|
12
|
+
const testingRunIcon = registerIcon('testing-run-icon', Codicon.run, ( localize(11793, 'Icon of the "run test" action.')));
|
|
13
|
+
const testingRerunIcon = registerIcon('testing-rerun-icon', Codicon.debugRerun, ( localize(11794, 'Icon of the "rerun tests" action.')));
|
|
14
|
+
const testingRunAllIcon = registerIcon('testing-run-all-icon', Codicon.runAll, ( localize(11795, 'Icon of the "run all tests" action.')));
|
|
15
|
+
const testingDebugAllIcon = registerIcon('testing-debug-all-icon', Codicon.debugAltSmall, ( localize(11796, 'Icon of the "debug all tests" action.')));
|
|
16
|
+
const testingDebugIcon = registerIcon('testing-debug-icon', Codicon.debugAltSmall, ( localize(11797, 'Icon of the "debug test" action.')));
|
|
17
|
+
const testingCoverageIcon = registerIcon('testing-coverage-icon', Codicon.runCoverage, ( localize(11798, 'Icon of the "run test with coverage" action.')));
|
|
18
|
+
const testingCoverageAllIcon = registerIcon('testing-coverage-all-icon', Codicon.runAllCoverage, ( localize(11799, 'Icon of the "run all tests with coverage" action.')));
|
|
19
|
+
const testingCancelIcon = registerIcon('testing-cancel-icon', Codicon.debugStop, ( localize(11800, 'Icon to cancel ongoing test runs.')));
|
|
20
|
+
const testingFilterIcon = registerIcon('testing-filter', Codicon.filter, ( localize(11801, 'Icon for the \'Filter\' action in the testing view.')));
|
|
21
|
+
const testingHiddenIcon = registerIcon('testing-hidden', Codicon.eyeClosed, ( localize(11802, 'Icon shown beside hidden tests, when they\'ve been shown.')));
|
|
22
|
+
registerIcon('testing-show-as-list-icon', Codicon.listTree, ( localize(11803, 'Icon shown when the test explorer is disabled as a tree.')));
|
|
23
|
+
registerIcon('testing-show-as-list-icon', Codicon.listFlat, ( localize(11804, 'Icon shown when the test explorer is disabled as a list.')));
|
|
24
|
+
const testingUpdateProfiles = registerIcon('testing-update-profiles', Codicon.gear, ( localize(11805, 'Icon shown to update test profiles.')));
|
|
25
|
+
const testingRefreshTests = registerIcon('testing-refresh-tests', Codicon.refresh, ( localize(11806, 'Icon on the button to refresh tests.')));
|
|
26
|
+
const testingTurnContinuousRunOn = registerIcon('testing-turn-continuous-run-on', Codicon.eye, ( localize(11807, 'Icon to turn continuous test runs on.')));
|
|
27
|
+
const testingTurnContinuousRunOff = registerIcon('testing-turn-continuous-run-off', Codicon.eyeClosed, ( localize(11808, 'Icon to turn continuous test runs off.')));
|
|
28
|
+
const testingContinuousIsOn = registerIcon('testing-continuous-is-on', Codicon.eye, ( localize(11809, 'Icon when continuous run is on for a test ite,.')));
|
|
29
|
+
const testingCancelRefreshTests = registerIcon('testing-cancel-refresh-tests', Codicon.stop, ( localize(11810, 'Icon on the button to cancel refreshing tests.')));
|
|
30
|
+
const testingCoverageReport = registerIcon('testing-coverage', Codicon.coverage, ( localize(11811, 'Icon representing test coverage')));
|
|
31
|
+
const testingWasCovered = registerIcon('testing-was-covered', Codicon.check, ( localize(11812, 'Icon representing that an element was covered')));
|
|
32
|
+
const testingCoverageMissingBranch = registerIcon('testing-missing-branch', Codicon.question, ( localize(11813, 'Icon representing a uncovered block without a range')));
|
|
33
33
|
const testingStatesToIcons = ( new Map([
|
|
34
|
-
[TestResultState.Errored, registerIcon('testing-error-icon', Codicon.issues, ( localize(
|
|
35
|
-
[TestResultState.Failed, registerIcon('testing-failed-icon', Codicon.error, ( localize(
|
|
36
|
-
[TestResultState.Passed, registerIcon('testing-passed-icon', Codicon.pass, ( localize(
|
|
37
|
-
[TestResultState.Queued, registerIcon('testing-queued-icon', Codicon.history, ( localize(
|
|
34
|
+
[TestResultState.Errored, registerIcon('testing-error-icon', Codicon.issues, ( localize(11814, 'Icon shown for tests that have an error.')))],
|
|
35
|
+
[TestResultState.Failed, registerIcon('testing-failed-icon', Codicon.error, ( localize(11815, 'Icon shown for tests that failed.')))],
|
|
36
|
+
[TestResultState.Passed, registerIcon('testing-passed-icon', Codicon.pass, ( localize(11816, 'Icon shown for tests that passed.')))],
|
|
37
|
+
[TestResultState.Queued, registerIcon('testing-queued-icon', Codicon.history, ( localize(11817, 'Icon shown for tests that are queued.')))],
|
|
38
38
|
[TestResultState.Running, spinningLoading],
|
|
39
|
-
[TestResultState.Skipped, registerIcon('testing-skipped-icon', Codicon.debugStepOver, ( localize(
|
|
40
|
-
[TestResultState.Unset, registerIcon('testing-unset-icon', Codicon.circleOutline, ( localize(
|
|
39
|
+
[TestResultState.Skipped, registerIcon('testing-skipped-icon', Codicon.debugStepOver, ( localize(11818, 'Icon shown for tests that are skipped.')))],
|
|
40
|
+
[TestResultState.Unset, registerIcon('testing-unset-icon', Codicon.circleOutline, ( localize(11819, 'Icon shown for tests that are in an unset state.')))],
|
|
41
41
|
]));
|
|
42
42
|
registerThemingParticipant((theme, collector) => {
|
|
43
43
|
for (const [state, icon] of testingStatesToIcons.entries()) {
|
|
@@ -127,21 +127,21 @@ const renderBar = (bar, pct, isZero, thresholds) => {
|
|
|
127
127
|
};
|
|
128
128
|
const nf = safeIntl.NumberFormat();
|
|
129
129
|
const stmtCoverageText = (coverage) => ( localize(
|
|
130
|
-
|
|
130
|
+
11820,
|
|
131
131
|
'{0}/{1} statements covered ({2})',
|
|
132
132
|
nf.value.format(coverage.statement.covered),
|
|
133
133
|
nf.value.format(coverage.statement.total),
|
|
134
134
|
displayPercent(percent(coverage.statement))
|
|
135
135
|
));
|
|
136
136
|
const fnCoverageText = (coverage) => coverage.declaration && ( localize(
|
|
137
|
-
|
|
137
|
+
11821,
|
|
138
138
|
'{0}/{1} functions covered ({2})',
|
|
139
139
|
nf.value.format(coverage.declaration.covered),
|
|
140
140
|
nf.value.format(coverage.declaration.total),
|
|
141
141
|
displayPercent(percent(coverage.declaration))
|
|
142
142
|
));
|
|
143
143
|
const branchCoverageText = (coverage) => coverage.branch && ( localize(
|
|
144
|
-
|
|
144
|
+
11822,
|
|
145
145
|
'{0}/{1} branches covered ({2})',
|
|
146
146
|
nf.value.format(coverage.branch.covered),
|
|
147
147
|
nf.value.format(coverage.branch.total),
|
|
@@ -161,7 +161,7 @@ DeclarationCoverageNode.__decorator = ( __decorate([
|
|
|
161
161
|
], DeclarationCoverageNode.prototype, "attributableCoverage", null));
|
|
162
162
|
class RevealUncoveredDeclarations {
|
|
163
163
|
get label() {
|
|
164
|
-
return localize(
|
|
164
|
+
return localize(11823, "{0} declarations without coverage...", this.n);
|
|
165
165
|
}
|
|
166
166
|
constructor(n) {
|
|
167
167
|
this.n = n;
|
|
@@ -170,7 +170,7 @@ class RevealUncoveredDeclarations {
|
|
|
170
170
|
}
|
|
171
171
|
class CurrentlyFilteredTo {
|
|
172
172
|
get label() {
|
|
173
|
-
return localize(
|
|
173
|
+
return localize(11824, "Showing coverage for \"{0}\"", this.testItem.label);
|
|
174
174
|
}
|
|
175
175
|
constructor(testItem) {
|
|
176
176
|
this.testItem = testItem;
|
|
@@ -180,7 +180,7 @@ class CurrentlyFilteredTo {
|
|
|
180
180
|
class LoadingDetails {
|
|
181
181
|
constructor() {
|
|
182
182
|
this.id = String(fnNodeId++);
|
|
183
|
-
this.label = ( localize(
|
|
183
|
+
this.label = ( localize(11825, "Loading Coverage Details..."));
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
const isFileCoverage = (c) => typeof c === 'object' && 'value' in c;
|
|
@@ -213,14 +213,14 @@ let TestCoverageTree = class TestCoverageTree extends Disposable {
|
|
|
213
213
|
getAriaLabel(element) {
|
|
214
214
|
if (isFileCoverage(element)) {
|
|
215
215
|
const name = basenameOrAuthority(element.value.uri);
|
|
216
|
-
return localize(
|
|
216
|
+
return localize(11826, "{0} coverage: {0}%", name, (element.value.tpc * 100).toFixed(2));
|
|
217
217
|
}
|
|
218
218
|
else {
|
|
219
219
|
return element.label;
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
222
|
getWidgetAriaLabel() {
|
|
223
|
-
return localize(
|
|
223
|
+
return localize(11827, "Test Coverage Explorer");
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
226
|
identityProvider: ( new TestCoverageIdentityProvider()),
|
|
@@ -574,7 +574,7 @@ registerAction2(class TestCoverageChangePerTestFilterAction extends Action2 {
|
|
|
574
574
|
super({
|
|
575
575
|
id: TestCommandId.CoverageFilterToTest,
|
|
576
576
|
category: Categories.Test,
|
|
577
|
-
title: ( localize2(
|
|
577
|
+
title: ( localize2(11828, 'Filter Coverage by Test')),
|
|
578
578
|
icon: Codicon.filter,
|
|
579
579
|
toggled: {
|
|
580
580
|
icon: Codicon.filterFilled,
|
|
@@ -626,7 +626,7 @@ registerAction2(class TestCoverageChangeSortingAction extends ViewAction {
|
|
|
626
626
|
super({
|
|
627
627
|
id: TestCommandId.CoverageViewChangeSorting,
|
|
628
628
|
viewId: Testing.CoverageViewId,
|
|
629
|
-
title: ( localize2(
|
|
629
|
+
title: ( localize2(11829, 'Change Sort Order')),
|
|
630
630
|
icon: Codicon.sortPrecedence,
|
|
631
631
|
menu: {
|
|
632
632
|
id: MenuId.ViewTitle,
|
|
@@ -640,14 +640,14 @@ registerAction2(class TestCoverageChangeSortingAction extends ViewAction {
|
|
|
640
640
|
const disposables = ( new DisposableStore());
|
|
641
641
|
const quickInput = disposables.add(accessor.get(IQuickInputService).createQuickPick());
|
|
642
642
|
const items = [
|
|
643
|
-
{ label: ( localize(
|
|
644
|
-
|
|
643
|
+
{ label: ( localize(11830, 'Sort by Location')), value: CoverageSortOrder.Location, description: ( localize(
|
|
644
|
+
11831,
|
|
645
645
|
'Files are sorted alphabetically, declarations are sorted by position'
|
|
646
646
|
)) },
|
|
647
|
-
{ label: ( localize(
|
|
648
|
-
{ label: ( localize(
|
|
647
|
+
{ label: ( localize(11832, 'Sort by Coverage')), value: CoverageSortOrder.Coverage, description: ( localize(11833, 'Files and declarations are sorted by total coverage')) },
|
|
648
|
+
{ label: ( localize(11834, 'Sort by Name')), value: CoverageSortOrder.Name, description: ( localize(11835, 'Files and declarations are sorted alphabetically')) },
|
|
649
649
|
];
|
|
650
|
-
quickInput.placeholder = ( localize(
|
|
650
|
+
quickInput.placeholder = ( localize(11836, 'Sort the Test Coverage view...'));
|
|
651
651
|
quickInput.items = items;
|
|
652
652
|
quickInput.show();
|
|
653
653
|
disposables.add(quickInput.onDidHide(() => disposables.dispose()));
|
|
@@ -665,7 +665,7 @@ registerAction2(class TestCoverageCollapseAllAction extends ViewAction {
|
|
|
665
665
|
super({
|
|
666
666
|
id: TestCommandId.CoverageViewCollapseAll,
|
|
667
667
|
viewId: Testing.CoverageViewId,
|
|
668
|
-
title: ( localize2(
|
|
668
|
+
title: ( localize2(11837, 'Collapse All Coverage')),
|
|
669
669
|
icon: Codicon.collapseAll,
|
|
670
670
|
menu: {
|
|
671
671
|
id: MenuId.ViewTitle,
|