@codingame/monaco-vscode-testing-service-override 3.2.3 → 4.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 +8 -8
- package/testing.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +48 -24
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/treeProjection.js +8 -9
- package/vscode/src/vs/workbench/contrib/testing/browser/icons.js +11 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/media/testMessageColorizer.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/media/testing.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.js +18 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageView.js +21 -2
- package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +23 -12
- package/vscode/src/vs/workbench/contrib/testing/browser/testMessageColorizer.js +73 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testing.contribution.js +6 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testingConfigurationUi.js +120 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testingDecorations.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +10 -10
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +33 -19
- package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +50 -31
- package/vscode/src/vs/workbench/contrib/testing/browser/theme.js +80 -2
- package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +4 -1
- package/vscode/src/vs/workbench/contrib/testing/common/observableUtils.js +20 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +1 -1
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { Color, RGBA } from 'vscode/vscode/vs/base/common/color';
|
|
2
2
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { registerColor,
|
|
3
|
+
import { registerColor, transparent, opaque } from 'vscode/vscode/vs/platform/theme/common/colorUtils';
|
|
4
|
+
import { contrastBorder } from 'vscode/vscode/vs/platform/theme/common/colors/baseColors';
|
|
5
|
+
import { chartsGreen, chartsRed } from 'vscode/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
6
|
+
import { editorErrorForeground, editorInfoForeground, diffInserted, diffRemoved, editorBackground, editorForeground } from 'vscode/vscode/vs/platform/theme/common/colors/editorColors';
|
|
7
|
+
import 'vscode/vscode/vs/platform/theme/common/colors/inputColors';
|
|
8
|
+
import 'vscode/vscode/vs/platform/theme/common/colors/listColors';
|
|
9
|
+
import 'vscode/vscode/vs/platform/theme/common/colors/menuColors';
|
|
10
|
+
import 'vscode/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
11
|
+
import { badgeBackground, badgeForeground } from 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
|
|
12
|
+
import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
13
|
+
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
4
14
|
import { registerThemingParticipant } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
5
15
|
|
|
6
16
|
const testingColorIconFailed = registerColor('testing.iconFailed', {
|
|
@@ -237,6 +247,74 @@ const testStatesToIconColors = {
|
|
|
237
247
|
[0 ]: testingColorIconUnset,
|
|
238
248
|
[5 ]: testingColorIconSkipped,
|
|
239
249
|
};
|
|
250
|
+
const testingRetiredColorIconErrored = registerColor('testing.iconErrored.retired', {
|
|
251
|
+
dark: ( transparent(testingColorIconErrored, 0.7)),
|
|
252
|
+
light: ( transparent(testingColorIconErrored, 0.7)),
|
|
253
|
+
hcDark: ( transparent(testingColorIconErrored, 0.7)),
|
|
254
|
+
hcLight: ( transparent(testingColorIconErrored, 0.7))
|
|
255
|
+
}, ( localizeWithPath(
|
|
256
|
+
'vs/workbench/contrib/testing/browser/theme',
|
|
257
|
+
'testing.iconErrored.retired',
|
|
258
|
+
"Retired color for the 'Errored' icon in the test explorer."
|
|
259
|
+
)));
|
|
260
|
+
const testingRetiredColorIconFailed = registerColor('testing.iconFailed.retired', {
|
|
261
|
+
dark: ( transparent(testingColorIconFailed, 0.7)),
|
|
262
|
+
light: ( transparent(testingColorIconFailed, 0.7)),
|
|
263
|
+
hcDark: ( transparent(testingColorIconFailed, 0.7)),
|
|
264
|
+
hcLight: ( transparent(testingColorIconFailed, 0.7))
|
|
265
|
+
}, ( localizeWithPath(
|
|
266
|
+
'vs/workbench/contrib/testing/browser/theme',
|
|
267
|
+
'testing.iconFailed.retired',
|
|
268
|
+
"Retired color for the 'failed' icon in the test explorer."
|
|
269
|
+
)));
|
|
270
|
+
const testingRetiredColorIconPassed = registerColor('testing.iconPassed.retired', {
|
|
271
|
+
dark: ( transparent(testingColorIconPassed, 0.7)),
|
|
272
|
+
light: ( transparent(testingColorIconPassed, 0.7)),
|
|
273
|
+
hcDark: ( transparent(testingColorIconPassed, 0.7)),
|
|
274
|
+
hcLight: ( transparent(testingColorIconPassed, 0.7))
|
|
275
|
+
}, ( localizeWithPath(
|
|
276
|
+
'vs/workbench/contrib/testing/browser/theme',
|
|
277
|
+
'testing.iconPassed.retired',
|
|
278
|
+
"Retired color for the 'passed' icon in the test explorer."
|
|
279
|
+
)));
|
|
280
|
+
const testingRetiredColorIconQueued = registerColor('testing.iconQueued.retired', {
|
|
281
|
+
dark: ( transparent(testingColorIconQueued, 0.7)),
|
|
282
|
+
light: ( transparent(testingColorIconQueued, 0.7)),
|
|
283
|
+
hcDark: ( transparent(testingColorIconQueued, 0.7)),
|
|
284
|
+
hcLight: ( transparent(testingColorIconQueued, 0.7))
|
|
285
|
+
}, ( localizeWithPath(
|
|
286
|
+
'vs/workbench/contrib/testing/browser/theme',
|
|
287
|
+
'testing.iconQueued.retired',
|
|
288
|
+
"Retired color for the 'Queued' icon in the test explorer."
|
|
289
|
+
)));
|
|
290
|
+
const testingRetiredColorIconUnset = registerColor('testing.iconUnset.retired', {
|
|
291
|
+
dark: ( transparent(testingColorIconUnset, 0.7)),
|
|
292
|
+
light: ( transparent(testingColorIconUnset, 0.7)),
|
|
293
|
+
hcDark: ( transparent(testingColorIconUnset, 0.7)),
|
|
294
|
+
hcLight: ( transparent(testingColorIconUnset, 0.7))
|
|
295
|
+
}, ( localizeWithPath(
|
|
296
|
+
'vs/workbench/contrib/testing/browser/theme',
|
|
297
|
+
'testing.iconUnset.retired',
|
|
298
|
+
"Retired color for the 'Unset' icon in the test explorer."
|
|
299
|
+
)));
|
|
300
|
+
const testingRetiredColorIconSkipped = registerColor('testing.iconSkipped.retired', {
|
|
301
|
+
dark: ( transparent(testingColorIconSkipped, 0.7)),
|
|
302
|
+
light: ( transparent(testingColorIconSkipped, 0.7)),
|
|
303
|
+
hcDark: ( transparent(testingColorIconSkipped, 0.7)),
|
|
304
|
+
hcLight: ( transparent(testingColorIconSkipped, 0.7))
|
|
305
|
+
}, ( localizeWithPath(
|
|
306
|
+
'vs/workbench/contrib/testing/browser/theme',
|
|
307
|
+
'testing.iconSkipped.retired',
|
|
308
|
+
"Retired color for the 'Skipped' icon in the test explorer."
|
|
309
|
+
)));
|
|
310
|
+
const testStatesToRetiredIconColors = {
|
|
311
|
+
[6 ]: testingRetiredColorIconErrored,
|
|
312
|
+
[4 ]: testingRetiredColorIconFailed,
|
|
313
|
+
[3 ]: testingRetiredColorIconPassed,
|
|
314
|
+
[1 ]: testingRetiredColorIconQueued,
|
|
315
|
+
[0 ]: testingRetiredColorIconUnset,
|
|
316
|
+
[5 ]: testingRetiredColorIconSkipped,
|
|
317
|
+
};
|
|
240
318
|
registerThemingParticipant((theme, collector) => {
|
|
241
319
|
const editorBg = theme.getColor(editorBackground);
|
|
242
320
|
const missBadgeBackground = editorBg && theme.getColor(testingUncoveredBackground)?.transparent(2).makeOpaque(editorBg);
|
|
@@ -256,4 +334,4 @@ registerThemingParticipant((theme, collector) => {
|
|
|
256
334
|
`);
|
|
257
335
|
});
|
|
258
336
|
|
|
259
|
-
export { testStatesToIconColors, testingColorIconErrored, testingColorIconFailed, testingColorIconPassed, testingColorIconQueued, testingColorIconSkipped, testingColorIconUnset, testingColorRunAction, testingCoveredBackground, testingCoveredBorder, testingMessagePeekBorder, testingPeekBorder, testingPeekHeaderBackground, testingPeekMessageHeaderBackground, testingUncoveredBackground, testingUncoveredBorder };
|
|
337
|
+
export { testStatesToIconColors, testStatesToRetiredIconColors, testingColorIconErrored, testingColorIconFailed, testingColorIconPassed, testingColorIconQueued, testingColorIconSkipped, testingColorIconUnset, testingColorRunAction, testingCoveredBackground, testingCoveredBorder, testingMessagePeekBorder, testingPeekBorder, testingPeekHeaderBackground, testingPeekMessageHeaderBackground, testingRetiredColorIconErrored, testingRetiredColorIconFailed, testingRetiredColorIconPassed, testingRetiredColorIconQueued, testingRetiredColorIconSkipped, testingRetiredColorIconUnset, testingUncoveredBackground, testingUncoveredBorder };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'vscode/vscode/vs/base/common/observableInternal/derived';
|
|
2
|
+
import 'vscode/vscode/vs/base/common/observableInternal/autorun';
|
|
2
3
|
import { observableFromEvent } from 'vscode/vscode/vs/base/common/observableInternal/utils';
|
|
4
|
+
import 'vscode/vscode/vs/base/common/cancellation';
|
|
5
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
6
|
|
|
4
7
|
const testingConfiguration = {
|
|
5
8
|
id: 'testing',
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
function onObservableChange(observable, callback) {
|
|
2
|
+
const o = {
|
|
3
|
+
beginUpdate() { },
|
|
4
|
+
endUpdate() { },
|
|
5
|
+
handlePossibleChange(observable) {
|
|
6
|
+
observable.reportChanges();
|
|
7
|
+
},
|
|
8
|
+
handleChange(_observable, change) {
|
|
9
|
+
callback(change);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
observable.addObserver(o);
|
|
13
|
+
return {
|
|
14
|
+
dispose() {
|
|
15
|
+
observable.removeObserver(o);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { onObservableChange };
|
|
@@ -101,7 +101,7 @@ let TestingContentProvider = class TestingContentProvider {
|
|
|
101
101
|
text = removeAnsiEscapeCodes(( content.toString()));
|
|
102
102
|
}
|
|
103
103
|
else if (typeof message.message === 'string') {
|
|
104
|
-
text = message.message;
|
|
104
|
+
text = removeAnsiEscapeCodes(message.message);
|
|
105
105
|
}
|
|
106
106
|
else {
|
|
107
107
|
text = message.message.value;
|