@codingame/monaco-vscode-testing-service-override 15.0.2 → 16.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 +18 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackWidget.css +55 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +18 -18
- 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/media/testMessageColorizer.css +46 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/media/testing.css +571 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageView.js +12 -12
- package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +69 -69
- package/vscode/src/vs/workbench/contrib/testing/browser/testMessageColorizer.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsOutput.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsTree.js +19 -19
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsViewContent.css +14 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsViewContent.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/browser/testing.contribution.js +9 -9
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +17 -17
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/testingViewPaneContainer.js +2 -2
- 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/testingContentProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackWidget.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/testing/browser/media/testMessageColorizer.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/testing/browser/media/testing.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsViewContent.css.js +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-testing-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - testing service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,19 +15,20 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "
|
|
19
|
-
"@codingame/monaco-vscode-10418ae3-ee63-5700-a757-89cbe6564ee4-common": "
|
|
20
|
-
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "
|
|
23
|
-
"@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common": "
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "
|
|
26
|
-
"@codingame/monaco-vscode-aff8bc9b-c6f8-578f-9c8a-f70d14f9c13c-common": "
|
|
27
|
-
"@codingame/monaco-vscode-api": "
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
18
|
+
"@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "16.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-10418ae3-ee63-5700-a757-89cbe6564ee4-common": "16.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "16.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-3e369455-cc41-54c6-86fb-8b7cd999a5da-common": "16.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "16.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common": "16.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common": "16.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "16.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-aff8bc9b-c6f8-578f-9c8a-f70d14f9c13c-common": "16.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-api": "16.0.0",
|
|
28
|
+
"@codingame/monaco-vscode-b1110435-a331-5549-ab1e-aa3d763c3a1f-common": "16.0.0",
|
|
29
|
+
"@codingame/monaco-vscode-f6ab89b2-83b0-5a43-8772-cb0eafa650b5-common": "16.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-fdf643f9-94dd-5510-b97a-408abf26ad92-common": "16.0.0",
|
|
31
|
+
"@codingame/monaco-vscode-terminal-service-override": "16.0.0"
|
|
31
32
|
},
|
|
32
33
|
"main": "index.js",
|
|
33
34
|
"module": "index.js",
|
|
@@ -36,6 +37,9 @@
|
|
|
36
37
|
".": {
|
|
37
38
|
"default": "./index.js"
|
|
38
39
|
},
|
|
40
|
+
"./vscode/*.css": {
|
|
41
|
+
"default": "./vscode/src/*.css"
|
|
42
|
+
},
|
|
39
43
|
"./vscode/*": {
|
|
40
44
|
"types": "./vscode/src/*.d.ts",
|
|
41
45
|
"default": "./vscode/src/*.js"
|
|
@@ -31,7 +31,7 @@ import { ResourceLabel } from '@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-
|
|
|
31
31
|
import { SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
32
32
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
33
33
|
import { makeStackFrameColumnDecoration, TOP_STACK_FRAME_DECORATION } from '@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
|
|
34
|
-
import './media/callStackWidget.css
|
|
34
|
+
import './media/callStackWidget.css';
|
|
35
35
|
import { autorun, autorunWithStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/autorun';
|
|
36
36
|
import { observableValue, transaction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/base';
|
|
37
37
|
import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/derived';
|
|
@@ -177,7 +177,7 @@ let StackAccessibilityProvider = class StackAccessibilityProvider {
|
|
|
177
177
|
if (e instanceof CallStackFrame) {
|
|
178
178
|
if (e.source && e.line) {
|
|
179
179
|
return localize(
|
|
180
|
-
|
|
180
|
+
5462,
|
|
181
181
|
'{0}, line {1} in {2}',
|
|
182
182
|
e.name,
|
|
183
183
|
e.line,
|
|
@@ -189,7 +189,7 @@ let StackAccessibilityProvider = class StackAccessibilityProvider {
|
|
|
189
189
|
assertNever();
|
|
190
190
|
}
|
|
191
191
|
getWidgetAriaLabel() {
|
|
192
|
-
return localize(
|
|
192
|
+
return localize(5463, 'Stack Trace');
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
StackAccessibilityProvider = ( __decorate([
|
|
@@ -409,7 +409,7 @@ let MissingCodeRenderer = class MissingCodeRenderer {
|
|
|
409
409
|
const cast = element;
|
|
410
410
|
templateData.label.element.setResource({
|
|
411
411
|
name: cast.name,
|
|
412
|
-
description: ( localize(
|
|
412
|
+
description: ( localize(5464, 'Line {0} column {1}', cast.line, cast.column)),
|
|
413
413
|
range: { startLineNumber: cast.line, startColumn: cast.column, endColumn: cast.column, endLineNumber: cast.line },
|
|
414
414
|
}, {
|
|
415
415
|
icon: Codicon.fileBinary,
|
|
@@ -470,7 +470,7 @@ let SkippedRenderer = class SkippedRenderer {
|
|
|
470
470
|
}
|
|
471
471
|
button.enabled = false;
|
|
472
472
|
this.loadFrames(data.current).catch(e => {
|
|
473
|
-
this.notificationService.error(( localize(
|
|
473
|
+
this.notificationService.error(( localize(5465, 'Failed to load stack frames: {0}', e.message)));
|
|
474
474
|
});
|
|
475
475
|
}));
|
|
476
476
|
return data;
|
|
@@ -547,7 +547,7 @@ registerAction2(class extends Action2 {
|
|
|
547
547
|
constructor() {
|
|
548
548
|
super({
|
|
549
549
|
id: 'callStackWidget.goToFile',
|
|
550
|
-
title: ( localize2(
|
|
550
|
+
title: ( localize2(5466, 'Open File')),
|
|
551
551
|
icon: Codicon.goToFile,
|
|
552
552
|
menu: {
|
|
553
553
|
id: MenuId.DebugCallStackToolbar,
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.multiCallStackFrame {
|
|
2
|
+
.header {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
height: 24px;
|
|
6
|
+
background: var(--vscode-multiDiffEditor-headerBackground);
|
|
7
|
+
border-top: 1px solid var(--vscode-multiDiffEditor-border);
|
|
8
|
+
color: var(--vscode-foreground);
|
|
9
|
+
padding: 0 5px;
|
|
10
|
+
}
|
|
11
|
+
.title {
|
|
12
|
+
flex-grow: 1;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
&[role="link"] {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
.monaco-icon-label::before {
|
|
20
|
+
height: auto;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
&.collapsed {
|
|
24
|
+
.header {
|
|
25
|
+
border-bottom: 1px solid var(--vscode-multiDiffEditor-border);
|
|
26
|
+
}
|
|
27
|
+
.editorParent {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.collapse-button {
|
|
32
|
+
width: 16px;
|
|
33
|
+
min-height: 1px;
|
|
34
|
+
line-height: 0;
|
|
35
|
+
a {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.actions {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 8px;
|
|
43
|
+
margin-right: 12px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.multiCallStackWidget {
|
|
47
|
+
.multiCallStackFrameContainer {
|
|
48
|
+
background: none !important;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.monaco-editor .call-stack-go-to-file-link {
|
|
52
|
+
text-decoration: underline;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
color: var(--vscode-editorLink-activeForeground) !important;
|
|
55
|
+
}
|
|
@@ -37,7 +37,7 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
37
37
|
import { bindContextKey, observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
|
|
38
38
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
39
39
|
import { ActiveEditorContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
40
|
-
import { TEXT_FILE_EDITOR_ID } from '@codingame/monaco-vscode-
|
|
40
|
+
import { TEXT_FILE_EDITOR_ID } from '@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common/vscode/vs/workbench/contrib/files/common/files';
|
|
41
41
|
import { TestingConfigKeys, getTestingConfiguration } from '../common/configuration.js';
|
|
42
42
|
import { TestCommandId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/constants';
|
|
43
43
|
import { FileCoverage } from '@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common/vscode/vs/workbench/contrib/testing/common/testCoverage';
|
|
@@ -55,7 +55,7 @@ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/obse
|
|
|
55
55
|
|
|
56
56
|
const CLASS_HIT = 'coverage-deco-hit';
|
|
57
57
|
const CLASS_MISS = 'coverage-deco-miss';
|
|
58
|
-
const TOGGLE_INLINE_COMMAND_TEXT = ( localize(
|
|
58
|
+
const TOGGLE_INLINE_COMMAND_TEXT = ( localize(10643, 'Toggle Inline'));
|
|
59
59
|
const TOGGLE_INLINE_COMMAND_ID = 'testing.toggleInlineCoverage';
|
|
60
60
|
const BRANCH_MISS_INDICATOR_CHARS = 4;
|
|
61
61
|
let CodeCoverageDecorations = class CodeCoverageDecorations extends Disposable {
|
|
@@ -379,7 +379,7 @@ class CoverageDetailsModel {
|
|
|
379
379
|
if (detail.branches?.length) {
|
|
380
380
|
const covered = detail.branches.filter(b => !!b.count).length;
|
|
381
381
|
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
382
|
-
|
|
382
|
+
10644,
|
|
383
383
|
'{0} of {1} of branches in {2} were covered.',
|
|
384
384
|
covered,
|
|
385
385
|
detail.branches.length,
|
|
@@ -395,13 +395,13 @@ class CoverageDetailsModel {
|
|
|
395
395
|
const { count, label } = detail.detail.branches[detail.branch];
|
|
396
396
|
const label2 = label ? wrapInBackticks(label) : `#${detail.branch + 1}`;
|
|
397
397
|
if (!count) {
|
|
398
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
398
|
+
return ( new MarkdownString()).appendMarkdown(( localize(10645, 'Branch {0} in {1} was not covered.', label2, text)));
|
|
399
399
|
}
|
|
400
400
|
else if (count === true) {
|
|
401
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
401
|
+
return ( new MarkdownString()).appendMarkdown(( localize(10646, 'Branch {0} in {1} was executed.', label2, text)));
|
|
402
402
|
}
|
|
403
403
|
else {
|
|
404
|
-
return ( new MarkdownString()).appendMarkdown(( localize(
|
|
404
|
+
return ( new MarkdownString()).appendMarkdown(( localize(10647, 'Branch {0} in {1} was executed {2} time(s).', label2, text, count)));
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
assertNever();
|
|
@@ -409,10 +409,10 @@ class CoverageDetailsModel {
|
|
|
409
409
|
}
|
|
410
410
|
function namedDetailLabel(name, detail) {
|
|
411
411
|
return ( new MarkdownString()).appendMarkdown(!detail.count
|
|
412
|
-
? ( localize(
|
|
412
|
+
? ( localize(10648, '`{0}` was not executed.', name))
|
|
413
413
|
: typeof detail.count === 'number'
|
|
414
|
-
? ( localize(
|
|
415
|
-
: ( localize(
|
|
414
|
+
? ( localize(10649, '`{0}` was executed {1} time(s).', name, detail.count))
|
|
415
|
+
: ( localize(10650, '`{0}` was executed.', name)));
|
|
416
416
|
}
|
|
417
417
|
function tidyLocation(location) {
|
|
418
418
|
if (location instanceof Position) {
|
|
@@ -509,8 +509,8 @@ let CoverageToolbarWidget = class CoverageToolbarWidget extends Disposable {
|
|
|
509
509
|
return;
|
|
510
510
|
}
|
|
511
511
|
const toggleAction = ( new ActionWithIcon('toggleInline', this.coverage.showInline.get()
|
|
512
|
-
? ( localize(
|
|
513
|
-
: ( localize(
|
|
512
|
+
? ( localize(10651, 'Hide Inline Coverage'))
|
|
513
|
+
: ( localize(10652, 'Show Inline Coverage')), testingCoverageReport, undefined, () => this.coverage.showInline.set(!this.coverage.showInline.get(), undefined)));
|
|
514
514
|
const kb = this.keybindingService.lookupKeybinding(TOGGLE_INLINE_COMMAND_ID);
|
|
515
515
|
if (kb) {
|
|
516
516
|
toggleAction.tooltip = `${TOGGLE_INLINE_COMMAND_TEXT} (${kb.getLabel()})`;
|
|
@@ -529,12 +529,12 @@ let CoverageToolbarWidget = class CoverageToolbarWidget extends Disposable {
|
|
|
529
529
|
}
|
|
530
530
|
else if (current.coverage.perTestData?.size) {
|
|
531
531
|
this.actionBar.push(( new ActionWithIcon('perTestFilter', ( localize(
|
|
532
|
-
|
|
532
|
+
10653,
|
|
533
533
|
"{0} test(s) ran code in this file",
|
|
534
534
|
current.coverage.perTestData.size
|
|
535
535
|
)), testingFilterIcon, undefined, () => this.commandService.executeCommand(TestCommandId.CoverageFilterToTestInEditor, this.current, this.editor))));
|
|
536
536
|
}
|
|
537
|
-
this.actionBar.push(( new ActionWithIcon('rerun', ( localize(
|
|
537
|
+
this.actionBar.push(( new ActionWithIcon('rerun', ( localize(10654, 'Rerun')), testingRerunIcon, !this.isRunning, () => this.rerunTest())));
|
|
538
538
|
}
|
|
539
539
|
show() {
|
|
540
540
|
if (this.registered) {
|
|
@@ -594,7 +594,7 @@ registerAction2(class ToggleInlineCoverage extends Action2 {
|
|
|
594
594
|
constructor() {
|
|
595
595
|
super({
|
|
596
596
|
id: TOGGLE_INLINE_COMMAND_ID,
|
|
597
|
-
title: ( localize2(
|
|
597
|
+
title: ( localize2(10655, "Toggle Inline Coverage")),
|
|
598
598
|
category: Categories.Test,
|
|
599
599
|
keybinding: {
|
|
600
600
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -602,7 +602,7 @@ registerAction2(class ToggleInlineCoverage extends Action2 {
|
|
|
602
602
|
},
|
|
603
603
|
toggled: {
|
|
604
604
|
condition: TestingContextKeys.inlineCoverageEnabled,
|
|
605
|
-
title: ( localize(
|
|
605
|
+
title: ( localize(10656, "Hide Inline Coverage")),
|
|
606
606
|
},
|
|
607
607
|
icon: testingCoverageReport,
|
|
608
608
|
menu: [
|
|
@@ -620,9 +620,9 @@ registerAction2(class ToggleCoverageToolbar extends Action2 {
|
|
|
620
620
|
constructor() {
|
|
621
621
|
super({
|
|
622
622
|
id: TestCommandId.CoverageToggleToolbar,
|
|
623
|
-
title: ( localize2(
|
|
623
|
+
title: ( localize2(10657, "Test Coverage Toolbar")),
|
|
624
624
|
metadata: {
|
|
625
|
-
description: ( localize2(
|
|
625
|
+
description: ( localize2(10658, 'Toggle the sticky coverage bar in the editor.'))
|
|
626
626
|
},
|
|
627
627
|
category: Categories.Test,
|
|
628
628
|
toggled: {
|
|
@@ -645,7 +645,7 @@ registerAction2(class FilterCoverageToTestInEditor extends Action2 {
|
|
|
645
645
|
constructor() {
|
|
646
646
|
super({
|
|
647
647
|
id: TestCommandId.CoverageFilterToTestInEditor,
|
|
648
|
-
title: ( localize2(
|
|
648
|
+
title: ( localize2(10659, "Filter Coverage to Test")),
|
|
649
649
|
category: Categories.Test,
|
|
650
650
|
icon: Codicon.filter,
|
|
651
651
|
toggled: {
|
|
@@ -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(10660, "Showing \"{0}\"", label));
|
|
79
|
+
labels.clickToChangeFiltering = ( localize(10661, 'Click to view coverage for a single test'));
|
|
80
|
+
labels.percentCoverage = (percent, precision) => ( localize(10662, '{0} Coverage', displayPercent(percent, precision)));
|
|
81
|
+
labels.allTests = ( localize(10663, 'All tests'));
|
|
82
|
+
labels.pickShowCoverage = ( localize(10664, '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(10665, 'View icon of the test view.')));
|
|
11
|
+
const testingResultsIcon = registerIcon('test-results-icon', Codicon.checklist, ( localize(10666, 'Icons for test results.')));
|
|
12
|
+
const testingRunIcon = registerIcon('testing-run-icon', Codicon.run, ( localize(10667, 'Icon of the "run test" action.')));
|
|
13
|
+
const testingRerunIcon = registerIcon('testing-rerun-icon', Codicon.debugRerun, ( localize(10668, 'Icon of the "rerun tests" action.')));
|
|
14
|
+
const testingRunAllIcon = registerIcon('testing-run-all-icon', Codicon.runAll, ( localize(10669, 'Icon of the "run all tests" action.')));
|
|
15
|
+
const testingDebugAllIcon = registerIcon('testing-debug-all-icon', Codicon.debugAltSmall, ( localize(10670, 'Icon of the "debug all tests" action.')));
|
|
16
|
+
const testingDebugIcon = registerIcon('testing-debug-icon', Codicon.debugAltSmall, ( localize(10671, 'Icon of the "debug test" action.')));
|
|
17
|
+
const testingCoverageIcon = registerIcon('testing-coverage-icon', Codicon.runCoverage, ( localize(10672, 'Icon of the "run test with coverage" action.')));
|
|
18
|
+
const testingCoverageAllIcon = registerIcon('testing-coverage-all-icon', Codicon.runAllCoverage, ( localize(10673, 'Icon of the "run all tests with coverage" action.')));
|
|
19
|
+
const testingCancelIcon = registerIcon('testing-cancel-icon', Codicon.debugStop, ( localize(10674, 'Icon to cancel ongoing test runs.')));
|
|
20
|
+
const testingFilterIcon = registerIcon('testing-filter', Codicon.filter, ( localize(10675, 'Icon for the \'Filter\' action in the testing view.')));
|
|
21
|
+
const testingHiddenIcon = registerIcon('testing-hidden', Codicon.eyeClosed, ( localize(10676, 'Icon shown beside hidden tests, when they\'ve been shown.')));
|
|
22
|
+
registerIcon('testing-show-as-list-icon', Codicon.listTree, ( localize(10677, 'Icon shown when the test explorer is disabled as a tree.')));
|
|
23
|
+
registerIcon('testing-show-as-list-icon', Codicon.listFlat, ( localize(10678, 'Icon shown when the test explorer is disabled as a list.')));
|
|
24
|
+
const testingUpdateProfiles = registerIcon('testing-update-profiles', Codicon.gear, ( localize(10679, 'Icon shown to update test profiles.')));
|
|
25
|
+
const testingRefreshTests = registerIcon('testing-refresh-tests', Codicon.refresh, ( localize(10680, 'Icon on the button to refresh tests.')));
|
|
26
|
+
const testingTurnContinuousRunOn = registerIcon('testing-turn-continuous-run-on', Codicon.eye, ( localize(10681, 'Icon to turn continuous test runs on.')));
|
|
27
|
+
const testingTurnContinuousRunOff = registerIcon('testing-turn-continuous-run-off', Codicon.eyeClosed, ( localize(10682, 'Icon to turn continuous test runs off.')));
|
|
28
|
+
const testingContinuousIsOn = registerIcon('testing-continuous-is-on', Codicon.eye, ( localize(10683, 'Icon when continuous run is on for a test ite,.')));
|
|
29
|
+
const testingCancelRefreshTests = registerIcon('testing-cancel-refresh-tests', Codicon.stop, ( localize(10684, 'Icon on the button to cancel refreshing tests.')));
|
|
30
|
+
const testingCoverageReport = registerIcon('testing-coverage', Codicon.coverage, ( localize(10685, 'Icon representing test coverage')));
|
|
31
|
+
const testingWasCovered = registerIcon('testing-was-covered', Codicon.check, ( localize(10686, 'Icon representing that an element was covered')));
|
|
32
|
+
const testingCoverageMissingBranch = registerIcon('testing-missing-branch', Codicon.question, ( localize(10687, '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(10688, 'Icon shown for tests that have an error.')))],
|
|
35
|
+
[TestResultState.Failed, registerIcon('testing-failed-icon', Codicon.error, ( localize(10689, 'Icon shown for tests that failed.')))],
|
|
36
|
+
[TestResultState.Passed, registerIcon('testing-passed-icon', Codicon.pass, ( localize(10690, 'Icon shown for tests that passed.')))],
|
|
37
|
+
[TestResultState.Queued, registerIcon('testing-queued-icon', Codicon.history, ( localize(10691, '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(10692, 'Icon shown for tests that are skipped.')))],
|
|
40
|
+
[TestResultState.Unset, registerIcon('testing-unset-icon', Codicon.circleOutline, ( localize(10693, '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()) {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.test-output-peek-message-container {
|
|
2
|
+
.tstm-ansidec-1 {
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
}
|
|
5
|
+
.tstm-ansidec-2 {
|
|
6
|
+
opacity: 0.7
|
|
7
|
+
}
|
|
8
|
+
.tstm-ansidec-3 {
|
|
9
|
+
font-style: italic;
|
|
10
|
+
}
|
|
11
|
+
.tstm-ansidec-4 {
|
|
12
|
+
text-decoration: underline;
|
|
13
|
+
}
|
|
14
|
+
.tstm-ansidec-fg30 { color: var(--vscode-terminal-ansiBlack); }
|
|
15
|
+
.tstm-ansidec-fg31 { color: var(--vscode-terminal-ansiRed); }
|
|
16
|
+
.tstm-ansidec-fg32 { color: var(--vscode-terminal-ansiGreen); }
|
|
17
|
+
.tstm-ansidec-fg33 { color: var(--vscode-terminal-ansiYellow); }
|
|
18
|
+
.tstm-ansidec-fg34 { color: var(--vscode-terminal-ansiBlue); }
|
|
19
|
+
.tstm-ansidec-fg35 { color: var(--vscode-terminal-ansiMagenta); }
|
|
20
|
+
.tstm-ansidec-fg36 { color: var(--vscode-terminal-ansiCyan); }
|
|
21
|
+
.tstm-ansidec-fg37 { color: var(--vscode-terminal-ansiWhite); }
|
|
22
|
+
.tstm-ansidec-fg90 { color: var(--vscode-terminal-ansiBrightBlack); }
|
|
23
|
+
.tstm-ansidec-fg91 { color: var(--vscode-terminal-ansiBrightRed); }
|
|
24
|
+
.tstm-ansidec-fg92 { color: var(--vscode-terminal-ansiBrightGreen); }
|
|
25
|
+
.tstm-ansidec-fg93 { color: var(--vscode-terminal-ansiBrightYellow); }
|
|
26
|
+
.tstm-ansidec-fg94 { color: var(--vscode-terminal-ansiBrightBlue); }
|
|
27
|
+
.tstm-ansidec-fg95 { color: var(--vscode-terminal-ansiBrightMagenta); }
|
|
28
|
+
.tstm-ansidec-fg96 { color: var(--vscode-terminal-ansiBrightCyan); }
|
|
29
|
+
.tstm-ansidec-fg97 { color: var(--vscode-terminal-ansiBrightWhite); }
|
|
30
|
+
.tstm-ansidec-bg30 { background-color: var(--vscode-terminal-ansiBlack); }
|
|
31
|
+
.tstm-ansidec-bg31 { background-color: var(--vscode-terminal-ansiRed); }
|
|
32
|
+
.tstm-ansidec-bg32 { background-color: var(--vscode-terminal-ansiGreen); }
|
|
33
|
+
.tstm-ansidec-bg33 { background-color: var(--vscode-terminal-ansiYellow); }
|
|
34
|
+
.tstm-ansidec-bg34 { background-color: var(--vscode-terminal-ansiBlue); }
|
|
35
|
+
.tstm-ansidec-bg35 { background-color: var(--vscode-terminal-ansiMagenta); }
|
|
36
|
+
.tstm-ansidec-bg36 { background-color: var(--vscode-terminal-ansiCyan); }
|
|
37
|
+
.tstm-ansidec-bg37 { background-color: var(--vscode-terminal-ansiWhite); }
|
|
38
|
+
.tstm-ansidec-bg100 { background-color: var(--vscode-terminal-ansiBrightBlack); }
|
|
39
|
+
.tstm-ansidec-bg101 { background-color: var(--vscode-terminal-ansiBrightRed); }
|
|
40
|
+
.tstm-ansidec-bg102 { background-color: var(--vscode-terminal-ansiBrightGreen); }
|
|
41
|
+
.tstm-ansidec-bg103 { background-color: var(--vscode-terminal-ansiBrightYellow); }
|
|
42
|
+
.tstm-ansidec-bg104 { background-color: var(--vscode-terminal-ansiBrightBlue); }
|
|
43
|
+
.tstm-ansidec-bg105 { background-color: var(--vscode-terminal-ansiBrightMagenta); }
|
|
44
|
+
.tstm-ansidec-bg106 { background-color: var(--vscode-terminal-ansiBrightCyan); }
|
|
45
|
+
.tstm-ansidec-bg107 { background-color: var(--vscode-terminal-ansiBrightWhite); }
|
|
46
|
+
}
|