@codingame/monaco-vscode-testing-service-override 1.83.16

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.
Files changed (33) hide show
  1. package/external/rollup-plugin-styles/dist/runtime/inject-css.js +3 -0
  2. package/external/tslib/tslib.es6.js +11 -0
  3. package/index.d.ts +1 -0
  4. package/index.js +1 -0
  5. package/package.json +30 -0
  6. package/testing.d.ts +5 -0
  7. package/testing.js +28 -0
  8. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/display.js +3 -0
  9. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/index.js +76 -0
  10. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/listProjection.js +186 -0
  11. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testItemContextOverlay.js +18 -0
  12. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testingObjectTree.js +46 -0
  13. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testingViewState.js +17 -0
  14. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/treeProjection.js +220 -0
  15. package/vscode/src/vs/workbench/contrib/testing/browser/icons.js +149 -0
  16. package/vscode/src/vs/workbench/contrib/testing/browser/media/testing.css.js +6 -0
  17. package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +1427 -0
  18. package/vscode/src/vs/workbench/contrib/testing/browser/testing.contribution.js +178 -0
  19. package/vscode/src/vs/workbench/contrib/testing/browser/testingDecorations.js +879 -0
  20. package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +237 -0
  21. package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +1225 -0
  22. package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.css.js +6 -0
  23. package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +1991 -0
  24. package/vscode/src/vs/workbench/contrib/testing/browser/testingProgressUiService.js +142 -0
  25. package/vscode/src/vs/workbench/contrib/testing/browser/testingViewPaneContainer.js +47 -0
  26. package/vscode/src/vs/workbench/contrib/testing/browser/theme.js +130 -0
  27. package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +213 -0
  28. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +59 -0
  29. package/vscode/src/vs/workbench/contrib/testing/common/mainThreadTestCollection.js +129 -0
  30. package/vscode/src/vs/workbench/contrib/testing/common/testExclusions.js +48 -0
  31. package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +293 -0
  32. package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +125 -0
  33. package/vscode/src/vs/workbench/contrib/testing/common/testingUri.js +67 -0
@@ -0,0 +1,149 @@
1
+ import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
2
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
3
+ import { registerIcon, spinningLoading } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
4
+ import { registerThemingParticipant } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
5
+ import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
6
+ import { testingColorRunAction, testStatesToIconColors } from './theme.js';
7
+
8
+ const testingViewIcon = registerIcon('test-view-icon', Codicon.beaker, ( localizeWithPath(
9
+ 'vs/workbench/contrib/testing/browser/icons',
10
+ 'testViewIcon',
11
+ 'View icon of the test view.'
12
+ )));
13
+ const testingResultsIcon = registerIcon('test-results-icon', Codicon.checklist, ( localizeWithPath(
14
+ 'vs/workbench/contrib/testing/browser/icons',
15
+ 'testingResultsIcon',
16
+ 'Icons for test results.'
17
+ )));
18
+ const testingRunIcon = registerIcon('testing-run-icon', Codicon.run, ( localizeWithPath(
19
+ 'vs/workbench/contrib/testing/browser/icons',
20
+ 'testingRunIcon',
21
+ 'Icon of the "run test" action.'
22
+ )));
23
+ const testingRerunIcon = registerIcon('testing-rerun-icon', Codicon.refresh, ( localizeWithPath(
24
+ 'vs/workbench/contrib/testing/browser/icons',
25
+ 'testingRerunIcon',
26
+ 'Icon of the "rerun tests" action.'
27
+ )));
28
+ const testingRunAllIcon = registerIcon('testing-run-all-icon', Codicon.runAll, ( localizeWithPath(
29
+ 'vs/workbench/contrib/testing/browser/icons',
30
+ 'testingRunAllIcon',
31
+ 'Icon of the "run all tests" action.'
32
+ )));
33
+ const testingDebugAllIcon = registerIcon('testing-debug-all-icon', Codicon.debugAltSmall, ( localizeWithPath(
34
+ 'vs/workbench/contrib/testing/browser/icons',
35
+ 'testingDebugAllIcon',
36
+ 'Icon of the "debug all tests" action.'
37
+ )));
38
+ const testingDebugIcon = registerIcon('testing-debug-icon', Codicon.debugAltSmall, ( localizeWithPath(
39
+ 'vs/workbench/contrib/testing/browser/icons',
40
+ 'testingDebugIcon',
41
+ 'Icon of the "debug test" action.'
42
+ )));
43
+ const testingCancelIcon = registerIcon('testing-cancel-icon', Codicon.debugStop, ( localizeWithPath(
44
+ 'vs/workbench/contrib/testing/browser/icons',
45
+ 'testingCancelIcon',
46
+ 'Icon to cancel ongoing test runs.'
47
+ )));
48
+ const testingFilterIcon = registerIcon('testing-filter', Codicon.filter, ( localizeWithPath(
49
+ 'vs/workbench/contrib/testing/browser/icons',
50
+ 'filterIcon',
51
+ 'Icon for the \'Filter\' action in the testing view.'
52
+ )));
53
+ const testingHiddenIcon = registerIcon('testing-hidden', Codicon.eyeClosed, ( localizeWithPath(
54
+ 'vs/workbench/contrib/testing/browser/icons',
55
+ 'hiddenIcon',
56
+ 'Icon shown beside hidden tests, when they\'ve been shown.'
57
+ )));
58
+ registerIcon('testing-show-as-list-icon', Codicon.listTree, ( localizeWithPath(
59
+ 'vs/workbench/contrib/testing/browser/icons',
60
+ 'testingShowAsList',
61
+ 'Icon shown when the test explorer is disabled as a tree.'
62
+ )));
63
+ registerIcon('testing-show-as-list-icon', Codicon.listFlat, ( localizeWithPath(
64
+ 'vs/workbench/contrib/testing/browser/icons',
65
+ 'testingShowAsTree',
66
+ 'Icon shown when the test explorer is disabled as a list.'
67
+ )));
68
+ const testingUpdateProfiles = registerIcon('testing-update-profiles', Codicon.gear, ( localizeWithPath(
69
+ 'vs/workbench/contrib/testing/browser/icons',
70
+ 'testingUpdateProfiles',
71
+ 'Icon shown to update test profiles.'
72
+ )));
73
+ const testingRefreshTests = registerIcon('testing-refresh-tests', Codicon.refresh, ( localizeWithPath(
74
+ 'vs/workbench/contrib/testing/browser/icons',
75
+ 'testingRefreshTests',
76
+ 'Icon on the button to refresh tests.'
77
+ )));
78
+ const testingTurnContinuousRunOn = registerIcon('testing-turn-continuous-run-on', Codicon.eye, ( localizeWithPath(
79
+ 'vs/workbench/contrib/testing/browser/icons',
80
+ 'testingTurnContinuousRunOn',
81
+ 'Icon to turn continuous test runs on.'
82
+ )));
83
+ const testingTurnContinuousRunOff = registerIcon('testing-turn-continuous-run-off', Codicon.eyeClosed, ( localizeWithPath(
84
+ 'vs/workbench/contrib/testing/browser/icons',
85
+ 'testingTurnContinuousRunOff',
86
+ 'Icon to turn continuous test runs off.'
87
+ )));
88
+ const testingContinuousIsOn = registerIcon('testing-continuous-is-on', Codicon.eye, ( localizeWithPath(
89
+ 'vs/workbench/contrib/testing/browser/icons',
90
+ 'testingTurnContinuousRunIsOn',
91
+ 'Icon when continuous run is on for a test ite,.'
92
+ )));
93
+ const testingCancelRefreshTests = registerIcon('testing-cancel-refresh-tests', Codicon.stop, ( localizeWithPath(
94
+ 'vs/workbench/contrib/testing/browser/icons',
95
+ 'testingCancelRefreshTests',
96
+ 'Icon on the button to cancel refreshing tests.'
97
+ )));
98
+ const testingStatesToIcons = ( new Map([
99
+ [6 , registerIcon('testing-error-icon', Codicon.issues, ( localizeWithPath(
100
+ 'vs/workbench/contrib/testing/browser/icons',
101
+ 'testingErrorIcon',
102
+ 'Icon shown for tests that have an error.'
103
+ )))],
104
+ [4 , registerIcon('testing-failed-icon', Codicon.error, ( localizeWithPath(
105
+ 'vs/workbench/contrib/testing/browser/icons',
106
+ 'testingFailedIcon',
107
+ 'Icon shown for tests that failed.'
108
+ )))],
109
+ [3 , registerIcon('testing-passed-icon', Codicon.pass, ( localizeWithPath(
110
+ 'vs/workbench/contrib/testing/browser/icons',
111
+ 'testingPassedIcon',
112
+ 'Icon shown for tests that passed.'
113
+ )))],
114
+ [1 , registerIcon('testing-queued-icon', Codicon.history, ( localizeWithPath(
115
+ 'vs/workbench/contrib/testing/browser/icons',
116
+ 'testingQueuedIcon',
117
+ 'Icon shown for tests that are queued.'
118
+ )))],
119
+ [2 , spinningLoading],
120
+ [5 , registerIcon('testing-skipped-icon', Codicon.debugStepOver, ( localizeWithPath(
121
+ 'vs/workbench/contrib/testing/browser/icons',
122
+ 'testingSkippedIcon',
123
+ 'Icon shown for tests that are skipped.'
124
+ )))],
125
+ [0 , registerIcon('testing-unset-icon', Codicon.circleOutline, ( localizeWithPath(
126
+ 'vs/workbench/contrib/testing/browser/icons',
127
+ 'testingUnsetIcon',
128
+ 'Icon shown for tests that are in an unset state.'
129
+ )))],
130
+ ]));
131
+ registerThemingParticipant((theme, collector) => {
132
+ for (const [state, icon] of testingStatesToIcons.entries()) {
133
+ const color = testStatesToIconColors[state];
134
+ if (!color) {
135
+ continue;
136
+ }
137
+ collector.addRule(`.monaco-workbench ${ThemeIcon.asCSSSelector(icon)} {
138
+ color: ${theme.getColor(color)} !important;
139
+ }`);
140
+ }
141
+ collector.addRule(`
142
+ .monaco-editor ${ThemeIcon.asCSSSelector(testingRunIcon)},
143
+ .monaco-editor ${ThemeIcon.asCSSSelector(testingRunAllIcon)} {
144
+ color: ${theme.getColor(testingColorRunAction)};
145
+ }
146
+ `);
147
+ });
148
+
149
+ export { testingCancelIcon, testingCancelRefreshTests, testingContinuousIsOn, testingDebugAllIcon, testingDebugIcon, testingFilterIcon, testingHiddenIcon, testingRefreshTests, testingRerunIcon, testingResultsIcon, testingRunAllIcon, testingRunIcon, testingStatesToIcons, testingTurnContinuousRunOff, testingTurnContinuousRunOn, testingUpdateProfiles, testingViewIcon };
@@ -0,0 +1,6 @@
1
+ import n from '../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
2
+
3
+ var css = ".monaco-workbench .codicon-testing-error-icon{color:var(--vscode-testing-iconErrored)}.monaco-workbench .codicon-testing-failed-icon{color:var(--vscode-testing-iconFailed)}.monaco-workbench .codicon-testing-passed-icon{color:var(--vscode-testing-iconPassed)}.monaco-workbench .codicon-testing-queued-icon{color:var(--vscode-testing-iconQueued)}.monaco-workbench .codicon-testing-skipped-icon{color:var(--vscode-testing-iconSkipped)}.monaco-workbench .codicon-testing-unset-icon{color:var(--vscode-testing-iconUnset)}.test-explorer{display:flex;flex-direction:column}.test-explorer>.test-explorer-tree{flex-grow:1;height:0;position:relative}.test-explorer .test-item .label,.test-output-peek-tree .test-peek-item .name{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:0}.test-explorer .test-item .label .codicon,.test-output-peek-tree .test-peek-item .name .codicon{font-size:1em;margin:0 .125em;transform:scale(1.25);vertical-align:middle}.test-explorer .test-item,.test-output-peek-tree .test-peek-item{align-items:center;display:flex}.test-output-peek-tree{border-left:1px solid var(--vscode-panelSection-border);color:var(--vscode-editor-foreground)}.test-explorer .monaco-list-row .codicon-testing-hidden,.test-explorer .monaco-list-row .monaco-action-bar,.test-output-peek-tree .monaco-list-row .monaco-action-bar{display:none;flex-shrink:0;margin-right:.8em}.test-explorer .monaco-list-row .monaco-action-bar .codicon-testing-continuous-is-on{background:var(--vscode-inputOption-activeBackground);border-color:var(--vscode-inputOption-activeBorder);border:1px solid var(--vscode-inputOption-activeBorder);border-radius:3px;color:var(--vscode-inputOption-activeForeground)}.test-explorer .monaco-list-row:not(.focused,:hover) .monaco-action-bar.testing-is-continuous-run .action-item{display:none}.test-explorer .monaco-list-row .monaco-action-bar.testing-is-continuous-run .action-item:last-child{display:block!important}.test-explorer .monaco-list-row .monaco-action-bar.testing-is-continuous-run,.test-explorer .monaco-list-row.focused .monaco-action-bar,.test-explorer .monaco-list-row:hover .monaco-action-bar,.test-output-peek-tree .monaco-list-row.focused .monaco-action-bar,.test-output-peek-tree .monaco-list-row:hover .monaco-action-bar{display:initial}.test-explorer .monaco-list-row .test-is-hidden .codicon-testing-hidden{display:block;margin-right:9px}.test-explorer .monaco-list-row.focused .codicon-testing-hidden,.test-explorer .monaco-list-row:hover .codicon-testing-hidden{display:none}.test-explorer .monaco-list-row .error p{margin:0}.test-explorer .computed-state,.test-output-peek-tree .computed-state{margin-right:.25em}.test-explorer .computed-state.retired,.testing-run-glyph.retired{opacity:.7!important}.test-explorer .test-is-hidden{opacity:.8}.test-explorer .result-summary-container{box-sizing:border-box;font-variant-numeric:tabular-nums;height:27px;padding:0 12px 8px}.test-explorer .result-summary{align-items:center;display:flex;gap:2px}.test-explorer .result-summary>span{flex-grow:1}.monaco-workbench\n\t.test-explorer\n\t.monaco-action-bar\n\t.action-item>.action-label{margin-right:2px;padding:1px 2px}.monaco-workbench .part>.title>.title-actions .action-label.codicon-testing-autorun:after{border-radius:100%;content:\"\";display:none;height:.4em;left:50%;margin:.1em 0 0 .05em;position:absolute;top:50%;width:.4em}.monaco-workbench .part>.title>.title-actions .action-label.codicon-testing-autorun.checked:after{display:block}.codicon-testing-loading-icon:before{animation:codicon-spin 1.25s steps(30) infinite}.testing-no-test-placeholder{display:none;left:0;padding:0 20px;position:absolute;right:0;top:0;z-index:1}.testing-no-test-placeholder.visible{display:block}.monaco-editor .zone-widget.test-output-peek .zone-widget-container.peekview-widget{border-bottom-width:2px;border-top-width:2px}.test-output-peek-message-container{overflow:hidden}.test-output-peek-message-container .floating-click-widget{bottom:10px;position:absolute;right:20px}.test-output-peek-message-container,.test-output-peek-tree{height:100%}.test-output-peek-message-container .preview-text{height:calc(100% - 16px);padding:8px 12px 8px 20px}.test-output-peek-message-container .preview-text p:first-child{margin-top:0}.test-output-peek-message-container .preview-text p:last-child{margin-bottom:0}.test-output-peek-message-container .preview-text a{cursor:pointer}.monaco-action-bar.testing-filter-action-bar{flex-shrink:0;height:auto;margin:4px 12px}.testing-filter-action-item{align-items:center;display:flex!important;flex-grow:1;max-width:400px}.testing-filter-action-item>.monaco-action-bar .testing-filter-button.checked{background-color:var(--vscode-inputOption-activeBackground);border-color:var(--vscode-inputOption-activeBorder);color:var(--vscode-inputOption-activeForeground)}.testing-filter-action-bar .testing-filter-action-item{max-width:none}.testing-filter-action-item .testing-filter-wrapper{flex-grow:1}.testing-filter-action-item .testing-filter-wrapper input{padding-right:30px!important}.testing-filter-action-item .monaco-action-bar{align-items:center;bottom:0;display:flex;position:absolute;right:3px;top:0}.monaco-editor .testing-run-glyph{cursor:pointer}.testing-diff-title-widget{display:inline-block;font-size:12px;line-height:19px;overflow:hidden;padding-right:6px;text-overflow:ellipsis;white-space:nowrap}.test-message-inline-content{font-family:var(--testMessageDecorationFontFamily);font-size:var(--testMessageDecorationFontSize)}.test-message-inline-content-clickable{cursor:pointer}.test-label-description{font-size:.9em;margin-left:.5em;opacity:.7;white-space:pre}.testing-diff-lens-widget{color:var(--vscode-editorCodeLens-foreground)}.test-message-inline-content-s0{color:var(--vscode-testing-message-error-decorationForeground)!important}.test-message-inline-content-s1{color:var(--vscode-testing-message-info-decorationForeground)!important}.monaco-editor .testing-inline-message-severity-0{color:var(--vscode-testing-message-error-decorationForeground)!important}.monaco-editor .testing-inline-message-severity-1{color:var(--vscode-testing-message-info-decorationForeground)!important}";
4
+ n(css,{});
5
+
6
+ export { css, css as default };