@codingame/monaco-vscode-testing-service-override 9.0.0 → 9.0.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 +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +17 -17
- 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 +11 -11
- package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +69 -69
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsOutput.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsTree.js +17 -17
- 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 +18 -18
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +13 -13
- package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/browser/testingProgressUiService.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/testingViewPaneContainer.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/theme.js +30 -30
- package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +34 -34
- package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +29 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-testing-service-override",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@9.0.
|
|
30
|
-
"@codingame/monaco-vscode-terminal-service-override": "9.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.3",
|
|
30
|
+
"@codingame/monaco-vscode-terminal-service-override": "9.0.3"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -167,7 +167,7 @@ let StackAccessibilityProvider = class StackAccessibilityProvider {
|
|
|
167
167
|
if (e instanceof CallStackFrame) {
|
|
168
168
|
if (e.source && e.line) {
|
|
169
169
|
return ( localize(
|
|
170
|
-
|
|
170
|
+
10784,
|
|
171
171
|
'{0}, line {1} in {2}',
|
|
172
172
|
e.name,
|
|
173
173
|
e.line,
|
|
@@ -179,7 +179,7 @@ let StackAccessibilityProvider = class StackAccessibilityProvider {
|
|
|
179
179
|
assertNever();
|
|
180
180
|
}
|
|
181
181
|
getWidgetAriaLabel() {
|
|
182
|
-
return ( localize(
|
|
182
|
+
return ( localize(10785, 'Stack Trace'));
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
StackAccessibilityProvider = ( (__decorate([
|
|
@@ -399,7 +399,7 @@ let MissingCodeRenderer = class MissingCodeRenderer {
|
|
|
399
399
|
const cast = element;
|
|
400
400
|
templateData.label.element.setResource({
|
|
401
401
|
name: cast.name,
|
|
402
|
-
description: ( localize(
|
|
402
|
+
description: ( localize(10786, 'Line {0} column {1}', cast.line, cast.column)),
|
|
403
403
|
range: { startLineNumber: cast.line, startColumn: cast.column, endColumn: cast.column, endLineNumber: cast.line },
|
|
404
404
|
}, {
|
|
405
405
|
icon: Codicon.fileBinary,
|
|
@@ -460,7 +460,7 @@ let SkippedRenderer = class SkippedRenderer {
|
|
|
460
460
|
}
|
|
461
461
|
button.enabled = false;
|
|
462
462
|
this.loadFrames(data.current).catch(e => {
|
|
463
|
-
this.notificationService.error(( localize(
|
|
463
|
+
this.notificationService.error(( localize(10787, 'Failed to load stack frames: {0}', e.message)));
|
|
464
464
|
});
|
|
465
465
|
}));
|
|
466
466
|
return data;
|
|
@@ -537,7 +537,7 @@ registerAction2(class extends Action2 {
|
|
|
537
537
|
constructor() {
|
|
538
538
|
super({
|
|
539
539
|
id: 'callStackWidget.goToFile',
|
|
540
|
-
title: ( localize2(
|
|
540
|
+
title: ( localize2(10788, 'Open File')),
|
|
541
541
|
icon: Codicon.goToFile,
|
|
542
542
|
menu: {
|
|
543
543
|
id: MenuId.DebugCallStackToolbar,
|
|
@@ -51,7 +51,7 @@ import { TestingContextKeys } from '../common/testingContextKeys.js';
|
|
|
51
51
|
|
|
52
52
|
const CLASS_HIT = 'coverage-deco-hit';
|
|
53
53
|
const CLASS_MISS = 'coverage-deco-miss';
|
|
54
|
-
const TOGGLE_INLINE_COMMAND_TEXT = ( localize(
|
|
54
|
+
const TOGGLE_INLINE_COMMAND_TEXT = ( localize(8209, 'Toggle Inline'));
|
|
55
55
|
const TOGGLE_INLINE_COMMAND_ID = 'testing.toggleInlineCoverage';
|
|
56
56
|
const BRANCH_MISS_INDICATOR_CHARS = 4;
|
|
57
57
|
let CodeCoverageDecorations = class CodeCoverageDecorations extends Disposable {
|
|
@@ -404,7 +404,7 @@ class CoverageDetailsModel {
|
|
|
404
404
|
if (detail.branches?.length) {
|
|
405
405
|
const covered = detail.branches.filter(b => !!b.count).length;
|
|
406
406
|
return ( (new MarkdownString())).appendMarkdown(( localize(
|
|
407
|
-
|
|
407
|
+
8210,
|
|
408
408
|
'{0} of {1} of branches in {2} were covered.',
|
|
409
409
|
covered,
|
|
410
410
|
detail.branches.length,
|
|
@@ -420,13 +420,13 @@ class CoverageDetailsModel {
|
|
|
420
420
|
const { count, label } = detail.detail.branches[detail.branch];
|
|
421
421
|
const label2 = label ? wrapInBackticks(label) : `#${detail.branch + 1}`;
|
|
422
422
|
if (!count) {
|
|
423
|
-
return ( (new MarkdownString())).appendMarkdown(( localize(
|
|
423
|
+
return ( (new MarkdownString())).appendMarkdown(( localize(8211, 'Branch {0} in {1} was not covered.', label2, text)));
|
|
424
424
|
}
|
|
425
425
|
else if (count === true) {
|
|
426
|
-
return ( (new MarkdownString())).appendMarkdown(( localize(
|
|
426
|
+
return ( (new MarkdownString())).appendMarkdown(( localize(8212, 'Branch {0} in {1} was executed.', label2, text)));
|
|
427
427
|
}
|
|
428
428
|
else {
|
|
429
|
-
return ( (new MarkdownString())).appendMarkdown(( localize(
|
|
429
|
+
return ( (new MarkdownString())).appendMarkdown(( localize(8213, 'Branch {0} in {1} was executed {2} time(s).', label2, text, count)));
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
assertNever();
|
|
@@ -434,10 +434,10 @@ class CoverageDetailsModel {
|
|
|
434
434
|
}
|
|
435
435
|
function namedDetailLabel(name, detail) {
|
|
436
436
|
return ( (new MarkdownString())).appendMarkdown(!detail.count
|
|
437
|
-
? ( localize(
|
|
437
|
+
? ( localize(8214, '`{0}` was not executed.', name))
|
|
438
438
|
: typeof detail.count === 'number'
|
|
439
|
-
? ( localize(
|
|
440
|
-
: ( localize(
|
|
439
|
+
? ( localize(8215, '`{0}` was executed {1} time(s).', name, detail.count))
|
|
440
|
+
: ( localize(8216, '`{0}` was executed.', name)));
|
|
441
441
|
}
|
|
442
442
|
function tidyLocation(location) {
|
|
443
443
|
if (location instanceof Position) {
|
|
@@ -534,8 +534,8 @@ let CoverageToolbarWidget = class CoverageToolbarWidget extends Disposable {
|
|
|
534
534
|
return;
|
|
535
535
|
}
|
|
536
536
|
const toggleAction = ( (new ActionWithIcon('toggleInline', this.coverage.showInline.get()
|
|
537
|
-
? ( localize(
|
|
538
|
-
: ( localize(
|
|
537
|
+
? ( localize(8217, 'Hide Inline Coverage'))
|
|
538
|
+
: ( localize(8218, 'Show Inline Coverage')), testingCoverageReport, undefined, () => this.coverage.showInline.set(!this.coverage.showInline.get(), undefined))));
|
|
539
539
|
const kb = this.keybindingService.lookupKeybinding(TOGGLE_INLINE_COMMAND_ID);
|
|
540
540
|
if (kb) {
|
|
541
541
|
toggleAction.tooltip = `${TOGGLE_INLINE_COMMAND_TEXT} (${kb.getLabel()})`;
|
|
@@ -554,12 +554,12 @@ let CoverageToolbarWidget = class CoverageToolbarWidget extends Disposable {
|
|
|
554
554
|
}
|
|
555
555
|
else if (current.coverage.perTestData?.size) {
|
|
556
556
|
this.actionBar.push(( (new ActionWithIcon('perTestFilter', ( localize(
|
|
557
|
-
|
|
557
|
+
8219,
|
|
558
558
|
"{0} test(s) ran code in this file",
|
|
559
559
|
current.coverage.perTestData.size
|
|
560
560
|
)), testingFilterIcon, undefined, () => this.commandService.executeCommand(TestCommandId.CoverageFilterToTestInEditor, this.current, this.editor)))));
|
|
561
561
|
}
|
|
562
|
-
this.actionBar.push(( (new ActionWithIcon('rerun', ( localize(
|
|
562
|
+
this.actionBar.push(( (new ActionWithIcon('rerun', ( localize(8220, 'Rerun')), testingRerunIcon, !this.isRunning, () => this.rerunTest()))));
|
|
563
563
|
}
|
|
564
564
|
show() {
|
|
565
565
|
if (this.registered) {
|
|
@@ -619,7 +619,7 @@ registerAction2(class ToggleInlineCoverage extends Action2 {
|
|
|
619
619
|
constructor() {
|
|
620
620
|
super({
|
|
621
621
|
id: TOGGLE_INLINE_COMMAND_ID,
|
|
622
|
-
title: ( localize2(
|
|
622
|
+
title: ( localize2(8221, "Toggle Inline Coverage")),
|
|
623
623
|
category: Categories.Test,
|
|
624
624
|
keybinding: {
|
|
625
625
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -627,7 +627,7 @@ registerAction2(class ToggleInlineCoverage extends Action2 {
|
|
|
627
627
|
},
|
|
628
628
|
toggled: {
|
|
629
629
|
condition: TestingContextKeys.inlineCoverageEnabled,
|
|
630
|
-
title: ( localize(
|
|
630
|
+
title: ( localize(8222, "Hide Inline Coverage")),
|
|
631
631
|
},
|
|
632
632
|
icon: testingCoverageReport,
|
|
633
633
|
menu: [
|
|
@@ -648,9 +648,9 @@ registerAction2(class ToggleCoverageToolbar extends Action2 {
|
|
|
648
648
|
constructor() {
|
|
649
649
|
super({
|
|
650
650
|
id: TestCommandId.CoverageToggleToolbar,
|
|
651
|
-
title: ( localize2(
|
|
651
|
+
title: ( localize2(8223, "Test Coverage Toolbar")),
|
|
652
652
|
metadata: {
|
|
653
|
-
description: ( localize2(
|
|
653
|
+
description: ( localize2(8224, 'Toggle the sticky coverage bar in the editor.'))
|
|
654
654
|
},
|
|
655
655
|
category: Categories.Test,
|
|
656
656
|
toggled: {
|
|
@@ -673,7 +673,7 @@ registerAction2(class FilterCoverageToTestInEditor extends Action2 {
|
|
|
673
673
|
constructor() {
|
|
674
674
|
super({
|
|
675
675
|
id: TestCommandId.CoverageFilterToTestInEditor,
|
|
676
|
-
title: ( localize2(
|
|
676
|
+
title: ( localize2(8225, "Filter Coverage to Test")),
|
|
677
677
|
category: Categories.Test,
|
|
678
678
|
icon: Codicon.filter,
|
|
679
679
|
toggled: {
|
|
@@ -74,11 +74,11 @@ function getLabelForItem(result, testId, commonPrefixLen) {
|
|
|
74
74
|
}
|
|
75
75
|
var labels;
|
|
76
76
|
( ((function(labels) {
|
|
77
|
-
labels.showingFilterFor = (label) => ( localize(
|
|
78
|
-
labels.clickToChangeFiltering = ( localize(
|
|
79
|
-
labels.percentCoverage = (percent, precision) => ( localize(
|
|
80
|
-
labels.allTests = ( localize(
|
|
81
|
-
labels.pickShowCoverage = ( localize(
|
|
77
|
+
labels.showingFilterFor = (label) => ( localize(10809, "Showing \"{0}\"", label));
|
|
78
|
+
labels.clickToChangeFiltering = ( localize(10810, 'Click to view coverage for a single test'));
|
|
79
|
+
labels.percentCoverage = (percent, precision) => ( localize(10811, '{0} Coverage', displayPercent(percent, precision)));
|
|
80
|
+
labels.allTests = ( localize(10812, 'All tests'));
|
|
81
|
+
labels.pickShowCoverage = ( localize(10813, 'Pick a test to show coverage for'));
|
|
82
82
|
})(labels || (labels = {}))));
|
|
83
83
|
|
|
84
84
|
export { calculateDisplayedStat, displayPercent, getCoverageColor, getLabelForItem, labels, percent };
|
|
@@ -6,37 +6,37 @@ import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
|
6
6
|
import { testStatesToIconColors, testStatesToRetiredIconColors, testingColorRunAction } from './theme.js';
|
|
7
7
|
import { TestResultState } from 'vscode/vscode/vs/workbench/contrib/testing/common/testTypes';
|
|
8
8
|
|
|
9
|
-
const testingViewIcon = registerIcon('test-view-icon', Codicon.beaker, ( localize(
|
|
10
|
-
const testingResultsIcon = registerIcon('test-results-icon', Codicon.checklist, ( localize(
|
|
11
|
-
const testingRunIcon = registerIcon('testing-run-icon', Codicon.run, ( localize(
|
|
12
|
-
const testingRerunIcon = registerIcon('testing-rerun-icon', Codicon.refresh, ( localize(
|
|
13
|
-
const testingRunAllIcon = registerIcon('testing-run-all-icon', Codicon.runAll, ( localize(
|
|
14
|
-
const testingDebugAllIcon = registerIcon('testing-debug-all-icon', Codicon.debugAltSmall, ( localize(
|
|
15
|
-
const testingDebugIcon = registerIcon('testing-debug-icon', Codicon.debugAltSmall, ( localize(
|
|
16
|
-
const testingCoverageIcon = registerIcon('testing-coverage-icon', Codicon.runCoverage, ( localize(
|
|
17
|
-
const testingCoverageAllIcon = registerIcon('testing-coverage-all-icon', Codicon.runAllCoverage, ( localize(
|
|
18
|
-
const testingCancelIcon = registerIcon('testing-cancel-icon', Codicon.debugStop, ( localize(
|
|
19
|
-
const testingFilterIcon = registerIcon('testing-filter', Codicon.filter, ( localize(
|
|
20
|
-
const testingHiddenIcon = registerIcon('testing-hidden', Codicon.eyeClosed, ( localize(
|
|
21
|
-
registerIcon('testing-show-as-list-icon', Codicon.listTree, ( localize(
|
|
22
|
-
registerIcon('testing-show-as-list-icon', Codicon.listFlat, ( localize(
|
|
23
|
-
const testingUpdateProfiles = registerIcon('testing-update-profiles', Codicon.gear, ( localize(
|
|
24
|
-
const testingRefreshTests = registerIcon('testing-refresh-tests', Codicon.refresh, ( localize(
|
|
25
|
-
const testingTurnContinuousRunOn = registerIcon('testing-turn-continuous-run-on', Codicon.eye, ( localize(
|
|
26
|
-
const testingTurnContinuousRunOff = registerIcon('testing-turn-continuous-run-off', Codicon.eyeClosed, ( localize(
|
|
27
|
-
const testingContinuousIsOn = registerIcon('testing-continuous-is-on', Codicon.eye, ( localize(
|
|
28
|
-
const testingCancelRefreshTests = registerIcon('testing-cancel-refresh-tests', Codicon.stop, ( localize(
|
|
29
|
-
const testingCoverageReport = registerIcon('testing-coverage', Codicon.coverage, ( localize(
|
|
30
|
-
const testingWasCovered = registerIcon('testing-was-covered', Codicon.check, ( localize(
|
|
31
|
-
const testingCoverageMissingBranch = registerIcon('testing-missing-branch', Codicon.question, ( localize(
|
|
9
|
+
const testingViewIcon = registerIcon('test-view-icon', Codicon.beaker, ( localize(8148, 'View icon of the test view.')));
|
|
10
|
+
const testingResultsIcon = registerIcon('test-results-icon', Codicon.checklist, ( localize(8149, 'Icons for test results.')));
|
|
11
|
+
const testingRunIcon = registerIcon('testing-run-icon', Codicon.run, ( localize(8150, 'Icon of the "run test" action.')));
|
|
12
|
+
const testingRerunIcon = registerIcon('testing-rerun-icon', Codicon.refresh, ( localize(8151, 'Icon of the "rerun tests" action.')));
|
|
13
|
+
const testingRunAllIcon = registerIcon('testing-run-all-icon', Codicon.runAll, ( localize(8152, 'Icon of the "run all tests" action.')));
|
|
14
|
+
const testingDebugAllIcon = registerIcon('testing-debug-all-icon', Codicon.debugAltSmall, ( localize(8153, 'Icon of the "debug all tests" action.')));
|
|
15
|
+
const testingDebugIcon = registerIcon('testing-debug-icon', Codicon.debugAltSmall, ( localize(8154, 'Icon of the "debug test" action.')));
|
|
16
|
+
const testingCoverageIcon = registerIcon('testing-coverage-icon', Codicon.runCoverage, ( localize(8155, 'Icon of the "run test with coverage" action.')));
|
|
17
|
+
const testingCoverageAllIcon = registerIcon('testing-coverage-all-icon', Codicon.runAllCoverage, ( localize(8156, 'Icon of the "run all tests with coverage" action.')));
|
|
18
|
+
const testingCancelIcon = registerIcon('testing-cancel-icon', Codicon.debugStop, ( localize(8157, 'Icon to cancel ongoing test runs.')));
|
|
19
|
+
const testingFilterIcon = registerIcon('testing-filter', Codicon.filter, ( localize(8158, 'Icon for the \'Filter\' action in the testing view.')));
|
|
20
|
+
const testingHiddenIcon = registerIcon('testing-hidden', Codicon.eyeClosed, ( localize(8159, 'Icon shown beside hidden tests, when they\'ve been shown.')));
|
|
21
|
+
registerIcon('testing-show-as-list-icon', Codicon.listTree, ( localize(8160, 'Icon shown when the test explorer is disabled as a tree.')));
|
|
22
|
+
registerIcon('testing-show-as-list-icon', Codicon.listFlat, ( localize(8161, 'Icon shown when the test explorer is disabled as a list.')));
|
|
23
|
+
const testingUpdateProfiles = registerIcon('testing-update-profiles', Codicon.gear, ( localize(8162, 'Icon shown to update test profiles.')));
|
|
24
|
+
const testingRefreshTests = registerIcon('testing-refresh-tests', Codicon.refresh, ( localize(8163, 'Icon on the button to refresh tests.')));
|
|
25
|
+
const testingTurnContinuousRunOn = registerIcon('testing-turn-continuous-run-on', Codicon.eye, ( localize(8164, 'Icon to turn continuous test runs on.')));
|
|
26
|
+
const testingTurnContinuousRunOff = registerIcon('testing-turn-continuous-run-off', Codicon.eyeClosed, ( localize(8165, 'Icon to turn continuous test runs off.')));
|
|
27
|
+
const testingContinuousIsOn = registerIcon('testing-continuous-is-on', Codicon.eye, ( localize(8166, 'Icon when continuous run is on for a test ite,.')));
|
|
28
|
+
const testingCancelRefreshTests = registerIcon('testing-cancel-refresh-tests', Codicon.stop, ( localize(8167, 'Icon on the button to cancel refreshing tests.')));
|
|
29
|
+
const testingCoverageReport = registerIcon('testing-coverage', Codicon.coverage, ( localize(8168, 'Icon representing test coverage')));
|
|
30
|
+
const testingWasCovered = registerIcon('testing-was-covered', Codicon.check, ( localize(8169, 'Icon representing that an element was covered')));
|
|
31
|
+
const testingCoverageMissingBranch = registerIcon('testing-missing-branch', Codicon.question, ( localize(8170, 'Icon representing a uncovered block without a range')));
|
|
32
32
|
const testingStatesToIcons = ( (new Map([
|
|
33
|
-
[TestResultState.Errored, registerIcon('testing-error-icon', Codicon.issues, ( localize(
|
|
34
|
-
[TestResultState.Failed, registerIcon('testing-failed-icon', Codicon.error, ( localize(
|
|
35
|
-
[TestResultState.Passed, registerIcon('testing-passed-icon', Codicon.pass, ( localize(
|
|
36
|
-
[TestResultState.Queued, registerIcon('testing-queued-icon', Codicon.history, ( localize(
|
|
33
|
+
[TestResultState.Errored, registerIcon('testing-error-icon', Codicon.issues, ( localize(8171, 'Icon shown for tests that have an error.')))],
|
|
34
|
+
[TestResultState.Failed, registerIcon('testing-failed-icon', Codicon.error, ( localize(8172, 'Icon shown for tests that failed.')))],
|
|
35
|
+
[TestResultState.Passed, registerIcon('testing-passed-icon', Codicon.pass, ( localize(8173, 'Icon shown for tests that passed.')))],
|
|
36
|
+
[TestResultState.Queued, registerIcon('testing-queued-icon', Codicon.history, ( localize(8174, 'Icon shown for tests that are queued.')))],
|
|
37
37
|
[TestResultState.Running, spinningLoading],
|
|
38
|
-
[TestResultState.Skipped, registerIcon('testing-skipped-icon', Codicon.debugStepOver, ( localize(
|
|
39
|
-
[TestResultState.Unset, registerIcon('testing-unset-icon', Codicon.circleOutline, ( localize(
|
|
38
|
+
[TestResultState.Skipped, registerIcon('testing-skipped-icon', Codicon.debugStepOver, ( localize(8175, 'Icon shown for tests that are skipped.')))],
|
|
39
|
+
[TestResultState.Unset, registerIcon('testing-unset-icon', Codicon.circleOutline, ( localize(8176, 'Icon shown for tests that are in an unset state.')))],
|
|
40
40
|
])));
|
|
41
41
|
registerThemingParticipant((theme, collector) => {
|
|
42
42
|
for (const [state, icon] of testingStatesToIcons.entries()) {
|
|
@@ -128,21 +128,21 @@ const renderBar = (bar, pct, isZero, thresholds) => {
|
|
|
128
128
|
};
|
|
129
129
|
const nf = new Intl.NumberFormat();
|
|
130
130
|
const stmtCoverageText = (coverage) => ( localize(
|
|
131
|
-
|
|
131
|
+
10814,
|
|
132
132
|
'{0}/{1} statements covered ({2})',
|
|
133
133
|
nf.format(coverage.statement.covered),
|
|
134
134
|
nf.format(coverage.statement.total),
|
|
135
135
|
displayPercent(percent(coverage.statement))
|
|
136
136
|
));
|
|
137
137
|
const fnCoverageText = (coverage) => coverage.declaration && ( localize(
|
|
138
|
-
|
|
138
|
+
10815,
|
|
139
139
|
'{0}/{1} functions covered ({2})',
|
|
140
140
|
nf.format(coverage.declaration.covered),
|
|
141
141
|
nf.format(coverage.declaration.total),
|
|
142
142
|
displayPercent(percent(coverage.declaration))
|
|
143
143
|
));
|
|
144
144
|
const branchCoverageText = (coverage) => coverage.branch && ( localize(
|
|
145
|
-
|
|
145
|
+
10816,
|
|
146
146
|
'{0}/{1} branches covered ({2})',
|
|
147
147
|
nf.format(coverage.branch.covered),
|
|
148
148
|
nf.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(8226, "{0} declarations without coverage...", this.n));
|
|
165
165
|
}
|
|
166
166
|
constructor(n) {
|
|
167
167
|
this.n = n;
|
|
@@ -171,7 +171,7 @@ class RevealUncoveredDeclarations {
|
|
|
171
171
|
class LoadingDetails {
|
|
172
172
|
constructor() {
|
|
173
173
|
this.id = String(fnNodeId++);
|
|
174
|
-
this.label = ( localize(
|
|
174
|
+
this.label = ( localize(8227, "Loading Coverage Details..."));
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
const isFileCoverage = (c) => typeof c === 'object' && 'value' in c;
|
|
@@ -202,14 +202,14 @@ let TestCoverageTree = class TestCoverageTree extends Disposable {
|
|
|
202
202
|
getAriaLabel(element) {
|
|
203
203
|
if (isFileCoverage(element)) {
|
|
204
204
|
const name = basenameOrAuthority(element.value.uri);
|
|
205
|
-
return ( localize(
|
|
205
|
+
return ( localize(8228, "{0} coverage: {0}%", name, (element.value.tpc * 100).toFixed(2)));
|
|
206
206
|
}
|
|
207
207
|
else {
|
|
208
208
|
return element.label;
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
211
|
getWidgetAriaLabel() {
|
|
212
|
-
return ( localize(
|
|
212
|
+
return ( localize(8229, "Test Coverage Explorer"));
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
identityProvider: ( (new TestCoverageIdentityProvider())),
|
|
@@ -508,7 +508,7 @@ registerAction2(class TestCoverageChangePerTestFilterAction extends Action2 {
|
|
|
508
508
|
super({
|
|
509
509
|
id: TestCommandId.CoverageFilterToTest,
|
|
510
510
|
category: Categories.Test,
|
|
511
|
-
title: ( localize2(
|
|
511
|
+
title: ( localize2(8230, 'Filter Coverage by Test')),
|
|
512
512
|
icon: Codicon.filter,
|
|
513
513
|
toggled: {
|
|
514
514
|
icon: Codicon.filterFilled,
|
|
@@ -562,7 +562,7 @@ registerAction2(class TestCoverageChangeSortingAction extends ViewAction {
|
|
|
562
562
|
super({
|
|
563
563
|
id: TestCommandId.CoverageViewChangeSorting,
|
|
564
564
|
viewId: Testing.CoverageViewId,
|
|
565
|
-
title: ( localize2(
|
|
565
|
+
title: ( localize2(8231, 'Change Sort Order')),
|
|
566
566
|
icon: Codicon.sortPrecedence,
|
|
567
567
|
menu: {
|
|
568
568
|
id: MenuId.ViewTitle,
|
|
@@ -575,14 +575,14 @@ registerAction2(class TestCoverageChangeSortingAction extends ViewAction {
|
|
|
575
575
|
const disposables = ( (new DisposableStore()));
|
|
576
576
|
const quickInput = disposables.add(accessor.get(IQuickInputService).createQuickPick());
|
|
577
577
|
const items = [
|
|
578
|
-
{ label: ( localize(
|
|
579
|
-
|
|
578
|
+
{ label: ( localize(8232, 'Sort by Location')), value: CoverageSortOrder.Location, description: ( localize(
|
|
579
|
+
8233,
|
|
580
580
|
'Files are sorted alphabetically, declarations are sorted by position'
|
|
581
581
|
)) },
|
|
582
|
-
{ label: ( localize(
|
|
583
|
-
{ label: ( localize(
|
|
582
|
+
{ label: ( localize(8234, 'Sort by Coverage')), value: CoverageSortOrder.Coverage, description: ( localize(8235, 'Files and declarations are sorted by total coverage')) },
|
|
583
|
+
{ label: ( localize(8236, 'Sort by Name')), value: CoverageSortOrder.Name, description: ( localize(8237, 'Files and declarations are sorted alphabetically')) },
|
|
584
584
|
];
|
|
585
|
-
quickInput.placeholder = ( localize(
|
|
585
|
+
quickInput.placeholder = ( localize(8238, 'Sort the Test Coverage view...'));
|
|
586
586
|
quickInput.items = items;
|
|
587
587
|
quickInput.show();
|
|
588
588
|
disposables.add(quickInput.onDidHide(() => disposables.dispose()));
|