@codingame/monaco-vscode-testing-service-override 16.1.0 → 17.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.
Files changed (36) hide show
  1. package/package.json +16 -16
  2. package/vscode/src/vs/workbench/contrib/debug/browser/callStackWidget.js +6 -6
  3. package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +18 -18
  4. package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDisplayUtils.js +5 -5
  5. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/index.js +1 -1
  6. package/vscode/src/vs/workbench/contrib/testing/browser/icons.js +29 -29
  7. package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.d.ts +1 -1
  8. package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.js +4 -4
  9. package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageView.js +13 -13
  10. package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.d.ts +5 -2
  11. package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +90 -72
  12. package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsOutput.js +6 -6
  13. package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsTree.js +46 -27
  14. package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsViewContent.js +3 -3
  15. package/vscode/src/vs/workbench/contrib/testing/browser/testing.contribution.js +8 -8
  16. package/vscode/src/vs/workbench/contrib/testing/browser/testingConfigurationUi.js +2 -2
  17. package/vscode/src/vs/workbench/contrib/testing/browser/testingDecorations.js +18 -18
  18. package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +12 -12
  19. package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +33 -25
  20. package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.d.ts +0 -1
  21. package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +13 -14
  22. package/vscode/src/vs/workbench/contrib/testing/browser/testingProgressUiService.js +5 -5
  23. package/vscode/src/vs/workbench/contrib/testing/browser/testingViewPaneContainer.js +1 -1
  24. package/vscode/src/vs/workbench/contrib/testing/browser/theme.js +32 -32
  25. package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +33 -33
  26. package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.d.ts +0 -1
  27. package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.js +5 -6
  28. package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.d.ts +2 -3
  29. package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +1 -2
  30. package/vscode/src/vs/workbench/contrib/testing/common/testService.d.ts +1 -1
  31. package/vscode/src/vs/workbench/contrib/testing/common/testService.js +4 -1
  32. package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.d.ts +0 -2
  33. package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +6 -8
  34. package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +1 -1
  35. package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +29 -29
  36. package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-testing-service-override",
3
- "version": "16.1.0",
3
+ "version": "17.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - testing service-override",
6
6
  "keywords": [],
@@ -15,21 +15,21 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "16.1.0",
19
- "@codingame/monaco-vscode-10418ae3-ee63-5700-a757-89cbe6564ee4-common": "16.1.0",
20
- "@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "16.1.0",
21
- "@codingame/monaco-vscode-3e369455-cc41-54c6-86fb-8b7cd999a5da-common": "16.1.0",
22
- "@codingame/monaco-vscode-4893679b-56e5-52c5-a8fb-c366cce9660f-common": "16.1.0",
23
- "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "16.1.0",
24
- "@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common": "16.1.0",
25
- "@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common": "16.1.0",
26
- "@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "16.1.0",
27
- "@codingame/monaco-vscode-api": "16.1.0",
28
- "@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common": "16.1.0",
29
- "@codingame/monaco-vscode-e67a0dae-5b2c-54e6-8d61-90102c78362d-common": "16.1.0",
30
- "@codingame/monaco-vscode-f6ab89b2-83b0-5a43-8772-cb0eafa650b5-common": "16.1.0",
31
- "@codingame/monaco-vscode-fdf643f9-94dd-5510-b97a-408abf26ad92-common": "16.1.0",
32
- "@codingame/monaco-vscode-terminal-service-override": "16.1.0"
18
+ "@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "17.0.0",
19
+ "@codingame/monaco-vscode-10418ae3-ee63-5700-a757-89cbe6564ee4-common": "17.0.0",
20
+ "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "17.0.0",
21
+ "@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common": "17.0.0",
22
+ "@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common": "17.0.0",
23
+ "@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common": "17.0.0",
24
+ "@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "17.0.0",
25
+ "@codingame/monaco-vscode-api": "17.0.0",
26
+ "@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common": "17.0.0",
27
+ "@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common": "17.0.0",
28
+ "@codingame/monaco-vscode-bed2b49f-41ae-5ed2-b61a-1105500a3f8a-common": "17.0.0",
29
+ "@codingame/monaco-vscode-c8227507-8e59-53d6-b50b-71c0ab384cf4-common": "17.0.0",
30
+ "@codingame/monaco-vscode-e67a0dae-5b2c-54e6-8d61-90102c78362d-common": "17.0.0",
31
+ "@codingame/monaco-vscode-f6ab89b2-83b0-5a43-8772-cb0eafa650b5-common": "17.0.0",
32
+ "@codingame/monaco-vscode-terminal-service-override": "17.0.0"
33
33
  },
34
34
  "main": "index.js",
35
35
  "module": "index.js",
@@ -28,7 +28,7 @@ import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/l
28
28
  import { WorkbenchList } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
29
29
  import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
30
30
  import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
31
- import { ResourceLabel } from '@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common/vscode/vs/workbench/browser/labels';
31
+ import { ResourceLabel } from '@codingame/monaco-vscode-bed2b49f-41ae-5ed2-b61a-1105500a3f8a-common/vscode/vs/workbench/browser/labels';
32
32
  import { SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
33
33
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
34
34
  import { makeStackFrameColumnDecoration, TOP_STACK_FRAME_DECORATION } from '@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
@@ -179,7 +179,7 @@ let StackAccessibilityProvider = class StackAccessibilityProvider {
179
179
  if (e instanceof CallStackFrame) {
180
180
  if (e.source && e.line) {
181
181
  return localize(
182
- 5462,
182
+ 5547,
183
183
  '{0}, line {1} in {2}',
184
184
  e.name,
185
185
  e.line,
@@ -191,7 +191,7 @@ let StackAccessibilityProvider = class StackAccessibilityProvider {
191
191
  assertNever();
192
192
  }
193
193
  getWidgetAriaLabel() {
194
- return localize(5463, 'Stack Trace');
194
+ return localize(5548, 'Stack Trace');
195
195
  }
196
196
  };
197
197
  StackAccessibilityProvider = ( __decorate([
@@ -411,7 +411,7 @@ let MissingCodeRenderer = class MissingCodeRenderer {
411
411
  const cast = element;
412
412
  templateData.label.element.setResource({
413
413
  name: cast.name,
414
- description: ( localize(5464, 'Line {0} column {1}', cast.line, cast.column)),
414
+ description: ( localize(5549, 'Line {0} column {1}', cast.line, cast.column)),
415
415
  range: { startLineNumber: cast.line, startColumn: cast.column, endColumn: cast.column, endLineNumber: cast.line },
416
416
  }, {
417
417
  icon: Codicon.fileBinary,
@@ -472,7 +472,7 @@ let SkippedRenderer = class SkippedRenderer {
472
472
  }
473
473
  button.enabled = false;
474
474
  this.loadFrames(data.current).catch(e => {
475
- this.notificationService.error(( localize(5465, 'Failed to load stack frames: {0}', e.message)));
475
+ this.notificationService.error(( localize(5550, 'Failed to load stack frames: {0}', e.message)));
476
476
  });
477
477
  }));
478
478
  return data;
@@ -549,7 +549,7 @@ registerAction2(class extends Action2 {
549
549
  constructor() {
550
550
  super({
551
551
  id: 'callStackWidget.goToFile',
552
- title: ( localize2(5466, 'Open File')),
552
+ title: ( localize2(5551, 'Open File')),
553
553
  icon: Codicon.goToFile,
554
554
  menu: {
555
555
  id: MenuId.DebugCallStackToolbar,
@@ -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-68b3311c-eb96-5711-8f72-f5f4b2e31932-common/vscode/vs/workbench/contrib/files/common/files';
40
+ import { TEXT_FILE_EDITOR_ID } from '@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-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(10643, 'Toggle Inline'));
58
+ const TOGGLE_INLINE_COMMAND_TEXT = ( localize(10749, '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
- 10644,
382
+ 10750,
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(10645, 'Branch {0} in {1} was not covered.', label2, text)));
398
+ return ( new MarkdownString()).appendMarkdown(( localize(10751, 'Branch {0} in {1} was not covered.', label2, text)));
399
399
  }
400
400
  else if (count === true) {
401
- return ( new MarkdownString()).appendMarkdown(( localize(10646, 'Branch {0} in {1} was executed.', label2, text)));
401
+ return ( new MarkdownString()).appendMarkdown(( localize(10752, 'Branch {0} in {1} was executed.', label2, text)));
402
402
  }
403
403
  else {
404
- return ( new MarkdownString()).appendMarkdown(( localize(10647, 'Branch {0} in {1} was executed {2} time(s).', label2, text, count)));
404
+ return ( new MarkdownString()).appendMarkdown(( localize(10753, '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(10648, '`{0}` was not executed.', name))
412
+ ? ( localize(10754, '`{0}` was not executed.', name))
413
413
  : typeof detail.count === 'number'
414
- ? ( localize(10649, '`{0}` was executed {1} time(s).', name, detail.count))
415
- : ( localize(10650, '`{0}` was executed.', name)));
414
+ ? ( localize(10755, '`{0}` was executed {1} time(s).', name, detail.count))
415
+ : ( localize(10756, '`{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(10651, 'Hide Inline Coverage'))
513
- : ( localize(10652, 'Show Inline Coverage')), testingCoverageReport, undefined, () => this.coverage.showInline.set(!this.coverage.showInline.get(), undefined)));
512
+ ? ( localize(10757, 'Hide Inline Coverage'))
513
+ : ( localize(10758, '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
- 10653,
532
+ 10759,
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(10654, 'Rerun')), testingRerunIcon, !this.isRunning, () => this.rerunTest())));
537
+ this.actionBar.push(( new ActionWithIcon('rerun', ( localize(10760, '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(10655, "Toggle Inline Coverage")),
597
+ title: ( localize2(10761, "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(10656, "Hide Inline Coverage")),
605
+ title: ( localize(10762, "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(10657, "Test Coverage Toolbar")),
623
+ title: ( localize2(10763, "Test Coverage Toolbar")),
624
624
  metadata: {
625
- description: ( localize2(10658, 'Toggle the sticky coverage bar in the editor.'))
625
+ description: ( localize2(10764, '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(10659, "Filter Coverage to Test")),
648
+ title: ( localize2(10765, "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(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'));
78
+ labels.showingFilterFor = (label) => ( localize(10766, "Showing \"{0}\"", label));
79
+ labels.clickToChangeFiltering = ( localize(10767, 'Click to view coverage for a single test'));
80
+ labels.percentCoverage = (percent, precision) => ( localize(10768, '{0} Coverage', displayPercent(percent, precision)));
81
+ labels.allTests = ( localize(10769, 'All tests'));
82
+ labels.pickShowCoverage = ( localize(10770, 'Pick a test to show coverage for'));
83
83
  })(labels || (labels = {}));
84
84
 
85
85
  export { calculateDisplayedStat, displayPercent, getCoverageColor, getLabelForItem, labels, percent };
@@ -17,9 +17,9 @@ class TestItemTreeElement {
17
17
  this.onChange = this.changeEmitter.event;
18
18
  this.children = ( new Set());
19
19
  this.treeId = getId();
20
- this.depth = this.parent ? this.parent.depth + 1 : 0;
21
20
  this.retired = false;
22
21
  this.state = TestResultState.Unset;
22
+ this.depth = parent ? parent.depth + 1 : 0;
23
23
  }
24
24
  toJSON() {
25
25
  if (this.depth === 0) {
@@ -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(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')));
10
+ const testingViewIcon = registerIcon('test-view-icon', Codicon.beaker, ( localize(10771, 'View icon of the test view.')));
11
+ const testingResultsIcon = registerIcon('test-results-icon', Codicon.checklist, ( localize(10772, 'Icons for test results.')));
12
+ const testingRunIcon = registerIcon('testing-run-icon', Codicon.run, ( localize(10773, 'Icon of the "run test" action.')));
13
+ const testingRerunIcon = registerIcon('testing-rerun-icon', Codicon.debugRerun, ( localize(10774, 'Icon of the "rerun tests" action.')));
14
+ const testingRunAllIcon = registerIcon('testing-run-all-icon', Codicon.runAll, ( localize(10775, 'Icon of the "run all tests" action.')));
15
+ const testingDebugAllIcon = registerIcon('testing-debug-all-icon', Codicon.debugAltSmall, ( localize(10776, 'Icon of the "debug all tests" action.')));
16
+ const testingDebugIcon = registerIcon('testing-debug-icon', Codicon.debugAltSmall, ( localize(10777, 'Icon of the "debug test" action.')));
17
+ const testingCoverageIcon = registerIcon('testing-coverage-icon', Codicon.runCoverage, ( localize(10778, 'Icon of the "run test with coverage" action.')));
18
+ const testingCoverageAllIcon = registerIcon('testing-coverage-all-icon', Codicon.runAllCoverage, ( localize(10779, 'Icon of the "run all tests with coverage" action.')));
19
+ const testingCancelIcon = registerIcon('testing-cancel-icon', Codicon.debugStop, ( localize(10780, 'Icon to cancel ongoing test runs.')));
20
+ const testingFilterIcon = registerIcon('testing-filter', Codicon.filter, ( localize(10781, 'Icon for the \'Filter\' action in the testing view.')));
21
+ const testingHiddenIcon = registerIcon('testing-hidden', Codicon.eyeClosed, ( localize(10782, 'Icon shown beside hidden tests, when they\'ve been shown.')));
22
+ registerIcon('testing-show-as-list-icon', Codicon.listTree, ( localize(10783, 'Icon shown when the test explorer is disabled as a tree.')));
23
+ registerIcon('testing-show-as-list-icon', Codicon.listFlat, ( localize(10784, 'Icon shown when the test explorer is disabled as a list.')));
24
+ const testingUpdateProfiles = registerIcon('testing-update-profiles', Codicon.gear, ( localize(10785, 'Icon shown to update test profiles.')));
25
+ const testingRefreshTests = registerIcon('testing-refresh-tests', Codicon.refresh, ( localize(10786, 'Icon on the button to refresh tests.')));
26
+ const testingTurnContinuousRunOn = registerIcon('testing-turn-continuous-run-on', Codicon.eye, ( localize(10787, 'Icon to turn continuous test runs on.')));
27
+ const testingTurnContinuousRunOff = registerIcon('testing-turn-continuous-run-off', Codicon.eyeClosed, ( localize(10788, 'Icon to turn continuous test runs off.')));
28
+ const testingContinuousIsOn = registerIcon('testing-continuous-is-on', Codicon.eye, ( localize(10789, 'Icon when continuous run is on for a test ite,.')));
29
+ const testingCancelRefreshTests = registerIcon('testing-cancel-refresh-tests', Codicon.stop, ( localize(10790, 'Icon on the button to cancel refreshing tests.')));
30
+ const testingCoverageReport = registerIcon('testing-coverage', Codicon.coverage, ( localize(10791, 'Icon representing test coverage')));
31
+ const testingWasCovered = registerIcon('testing-was-covered', Codicon.check, ( localize(10792, 'Icon representing that an element was covered')));
32
+ const testingCoverageMissingBranch = registerIcon('testing-missing-branch', Codicon.question, ( localize(10793, 'Icon representing a uncovered block without a range')));
33
33
  const testingStatesToIcons = ( new Map([
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.')))],
34
+ [TestResultState.Errored, registerIcon('testing-error-icon', Codicon.issues, ( localize(10794, 'Icon shown for tests that have an error.')))],
35
+ [TestResultState.Failed, registerIcon('testing-failed-icon', Codicon.error, ( localize(10795, 'Icon shown for tests that failed.')))],
36
+ [TestResultState.Passed, registerIcon('testing-passed-icon', Codicon.pass, ( localize(10796, 'Icon shown for tests that passed.')))],
37
+ [TestResultState.Queued, registerIcon('testing-queued-icon', Codicon.history, ( localize(10797, 'Icon shown for tests that are queued.')))],
38
38
  [TestResultState.Running, spinningLoading],
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.')))],
39
+ [TestResultState.Skipped, registerIcon('testing-skipped-icon', Codicon.debugStepOver, ( localize(10798, 'Icon shown for tests that are skipped.')))],
40
+ [TestResultState.Unset, registerIcon('testing-unset-icon', Codicon.circleOutline, ( localize(10799, '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()) {
@@ -3,7 +3,7 @@ import { ITransaction } from "@codingame/monaco-vscode-api/vscode/vs/base/common
3
3
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
4
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
5
5
  import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
6
- import { IExplorerFileContribution } from "@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common/vscode/vs/workbench/contrib/files/browser/explorerFileContrib";
6
+ import { IExplorerFileContribution } from "@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common/vscode/vs/workbench/contrib/files/browser/explorerFileContrib";
7
7
  import { AbstractFileCoverage } from "@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common/vscode/vs/workbench/contrib/testing/common/testCoverage";
8
8
  import { ITestCoverageService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testCoverageService.service";
9
9
  export interface TestCoverageBarsOptions {
@@ -11,7 +11,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
11
11
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
12
12
  import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
13
13
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
14
- import { ExplorerExtensions } from '@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common/vscode/vs/workbench/contrib/files/browser/explorerFileContrib';
14
+ import { ExplorerExtensions } from '@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common/vscode/vs/workbench/contrib/files/browser/explorerFileContrib';
15
15
  import { calculateDisplayedStat, displayPercent, percent, getCoverageColor } from './codeCoverageDisplayUtils.js';
16
16
  import { TestingConfigKeys, getTestingConfiguration, observeTestingConfiguration } from '../common/configuration.js';
17
17
  import { ITestCoverageService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testCoverageService.service';
@@ -126,21 +126,21 @@ const renderBar = (bar, pct, isZero, thresholds) => {
126
126
  };
127
127
  const nf = new Intl.NumberFormat();
128
128
  const stmtCoverageText = (coverage) => ( localize(
129
- 10694,
129
+ 10800,
130
130
  '{0}/{1} statements covered ({2})',
131
131
  nf.format(coverage.statement.covered),
132
132
  nf.format(coverage.statement.total),
133
133
  displayPercent(percent(coverage.statement))
134
134
  ));
135
135
  const fnCoverageText = (coverage) => coverage.declaration && ( localize(
136
- 10695,
136
+ 10801,
137
137
  '{0}/{1} functions covered ({2})',
138
138
  nf.format(coverage.declaration.covered),
139
139
  nf.format(coverage.declaration.total),
140
140
  displayPercent(percent(coverage.declaration))
141
141
  ));
142
142
  const branchCoverageText = (coverage) => coverage.branch && ( localize(
143
- 10696,
143
+ 10802,
144
144
  '{0}/{1} branches covered ({2})',
145
145
  nf.format(coverage.branch.covered),
146
146
  nf.format(coverage.branch.total),
@@ -34,7 +34,7 @@ import { WorkbenchCompressibleObjectTree } from '@codingame/monaco-vscode-api/vs
34
34
  import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
35
35
  import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
36
36
  import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
37
- import { ResourceLabels } from '@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common/vscode/vs/workbench/browser/labels';
37
+ import { ResourceLabels } from '@codingame/monaco-vscode-bed2b49f-41ae-5ed2-b61a-1105500a3f8a-common/vscode/vs/workbench/browser/labels';
38
38
  import { ViewPane, ViewAction } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
39
39
  import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
40
40
  import { SIDE_GROUP, ACTIVE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
@@ -158,7 +158,7 @@ DeclarationCoverageNode.__decorator = ( __decorate([
158
158
  ], DeclarationCoverageNode.prototype, "attributableCoverage", null));
159
159
  class RevealUncoveredDeclarations {
160
160
  get label() {
161
- return localize(10697, "{0} declarations without coverage...", this.n);
161
+ return localize(10803, "{0} declarations without coverage...", this.n);
162
162
  }
163
163
  constructor(n) {
164
164
  this.n = n;
@@ -167,7 +167,7 @@ class RevealUncoveredDeclarations {
167
167
  }
168
168
  class CurrentlyFilteredTo {
169
169
  get label() {
170
- return localize(10698, "Showing coverage for \"{0}\"", this.testItem.label);
170
+ return localize(10804, "Showing coverage for \"{0}\"", this.testItem.label);
171
171
  }
172
172
  constructor(testItem) {
173
173
  this.testItem = testItem;
@@ -177,7 +177,7 @@ class CurrentlyFilteredTo {
177
177
  class LoadingDetails {
178
178
  constructor() {
179
179
  this.id = String(fnNodeId++);
180
- this.label = ( localize(10699, "Loading Coverage Details..."));
180
+ this.label = ( localize(10805, "Loading Coverage Details..."));
181
181
  }
182
182
  }
183
183
  const isFileCoverage = (c) => typeof c === 'object' && 'value' in c;
@@ -210,14 +210,14 @@ let TestCoverageTree = class TestCoverageTree extends Disposable {
210
210
  getAriaLabel(element) {
211
211
  if (isFileCoverage(element)) {
212
212
  const name = basenameOrAuthority(element.value.uri);
213
- return localize(10700, "{0} coverage: {0}%", name, (element.value.tpc * 100).toFixed(2));
213
+ return localize(10806, "{0} coverage: {0}%", name, (element.value.tpc * 100).toFixed(2));
214
214
  }
215
215
  else {
216
216
  return element.label;
217
217
  }
218
218
  },
219
219
  getWidgetAriaLabel() {
220
- return localize(10701, "Test Coverage Explorer");
220
+ return localize(10807, "Test Coverage Explorer");
221
221
  }
222
222
  },
223
223
  identityProvider: ( new TestCoverageIdentityProvider()),
@@ -568,7 +568,7 @@ registerAction2(class TestCoverageChangePerTestFilterAction extends Action2 {
568
568
  super({
569
569
  id: TestCommandId.CoverageFilterToTest,
570
570
  category: Categories.Test,
571
- title: ( localize2(10702, 'Filter Coverage by Test')),
571
+ title: ( localize2(10808, 'Filter Coverage by Test')),
572
572
  icon: Codicon.filter,
573
573
  toggled: {
574
574
  icon: Codicon.filterFilled,
@@ -620,7 +620,7 @@ registerAction2(class TestCoverageChangeSortingAction extends ViewAction {
620
620
  super({
621
621
  id: TestCommandId.CoverageViewChangeSorting,
622
622
  viewId: Testing.CoverageViewId,
623
- title: ( localize2(10703, 'Change Sort Order')),
623
+ title: ( localize2(10809, 'Change Sort Order')),
624
624
  icon: Codicon.sortPrecedence,
625
625
  menu: {
626
626
  id: MenuId.ViewTitle,
@@ -633,14 +633,14 @@ registerAction2(class TestCoverageChangeSortingAction extends ViewAction {
633
633
  const disposables = ( new DisposableStore());
634
634
  const quickInput = disposables.add(accessor.get(IQuickInputService).createQuickPick());
635
635
  const items = [
636
- { label: ( localize(10704, 'Sort by Location')), value: CoverageSortOrder.Location, description: ( localize(
637
- 10705,
636
+ { label: ( localize(10810, 'Sort by Location')), value: CoverageSortOrder.Location, description: ( localize(
637
+ 10811,
638
638
  'Files are sorted alphabetically, declarations are sorted by position'
639
639
  )) },
640
- { label: ( localize(10706, 'Sort by Coverage')), value: CoverageSortOrder.Coverage, description: ( localize(10707, 'Files and declarations are sorted by total coverage')) },
641
- { label: ( localize(10708, 'Sort by Name')), value: CoverageSortOrder.Name, description: ( localize(10709, 'Files and declarations are sorted alphabetically')) },
640
+ { label: ( localize(10812, 'Sort by Coverage')), value: CoverageSortOrder.Coverage, description: ( localize(10813, 'Files and declarations are sorted by total coverage')) },
641
+ { label: ( localize(10814, 'Sort by Name')), value: CoverageSortOrder.Name, description: ( localize(10815, 'Files and declarations are sorted alphabetically')) },
642
642
  ];
643
- quickInput.placeholder = ( localize(10710, 'Sort the Test Coverage view...'));
643
+ quickInput.placeholder = ( localize(10816, 'Sort the Test Coverage view...'));
644
644
  quickInput.items = items;
645
645
  quickInput.show();
646
646
  disposables.add(quickInput.onDidHide(() => disposables.dispose()));
@@ -176,7 +176,10 @@ declare class RunTestsUnderUri extends ExecuteTestsUnderUriAction {
176
176
  declare abstract class ExecuteTestsInCurrentFile extends Action2 {
177
177
  protected readonly group: TestRunProfileBitset;
178
178
  constructor(options: IAction2Options, group: TestRunProfileBitset);
179
- run(accessor: ServicesAccessor): Promise<ITestResult> | undefined;
179
+ private _runByUris;
180
+ run(accessor: ServicesAccessor, files?: URI[]): Promise<ITestResult> | Promise<{
181
+ completedAt: number | undefined;
182
+ }> | undefined;
180
183
  }
181
184
  export declare class RunCurrentFile extends ExecuteTestsInCurrentFile {
182
185
  constructor();
@@ -272,5 +275,5 @@ declare abstract class GoToRelatedCodeAction extends TestNavigationAction {
272
275
  declare class GoToRelatedCode extends GoToRelatedCodeAction {
273
276
  constructor();
274
277
  }
275
- export declare const allTestActions: (typeof UnhideTestAction | typeof DebugAction | typeof RunUsingProfileAction | typeof SelectDefaultTestProfiles | typeof StopContinuousRunAction | typeof CancelTestRunAction | typeof TestingViewAsListAction | typeof GoToTest | typeof RunTestsUnderUri | typeof GoToRelatedTest | typeof GoToRelatedCode)[];
278
+ export declare const allTestActions: (typeof UnhideTestAction | typeof DebugAction | typeof RunUsingProfileAction | typeof SelectDefaultTestProfiles | typeof StopContinuousRunAction | typeof CancelTestRunAction | typeof TestingViewAsListAction | typeof GoToTest | typeof RunTestsUnderUri | typeof RunCurrentFile | typeof GoToRelatedTest | typeof GoToRelatedCode)[];
276
279
  export {};