@codingame/monaco-vscode-testing-service-override 26.2.1 → 27.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 (30) hide show
  1. package/package.json +4 -4
  2. package/vscode/src/vs/workbench/contrib/debug/browser/callStackWidget.js +5 -5
  3. package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +21 -21
  4. package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDisplayUtils.js +5 -5
  5. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/listProjection.js +1 -1
  6. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/treeProjection.js +1 -1
  7. package/vscode/src/vs/workbench/contrib/testing/browser/icons.js +29 -29
  8. package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.js +3 -3
  9. package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageView.js +16 -16
  10. package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +72 -72
  11. package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsOutput.js +5 -5
  12. package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsTree.js +22 -22
  13. package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsViewContent.js +3 -3
  14. package/vscode/src/vs/workbench/contrib/testing/browser/testing.contribution.js +8 -8
  15. package/vscode/src/vs/workbench/contrib/testing/browser/testingConfigurationUi.js +2 -2
  16. package/vscode/src/vs/workbench/contrib/testing/browser/testingDecorations.js +20 -20
  17. package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +13 -12
  18. package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +27 -22
  19. package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +12 -12
  20. package/vscode/src/vs/workbench/contrib/testing/browser/testingViewPaneContainer.js +1 -1
  21. package/vscode/src/vs/workbench/contrib/testing/browser/theme.js +32 -32
  22. package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +24 -24
  23. package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.js +1 -1
  24. package/vscode/src/vs/workbench/contrib/testing/common/testResultService.js +1 -1
  25. package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +7 -7
  26. package/vscode/src/vs/workbench/contrib/testing/common/testingChatAgentTool.js +11 -11
  27. package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +2 -2
  28. package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +31 -31
  29. package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +1 -1
  30. package/vscode/src/vs/workbench/contrib/testing/common/testingProgressMessages.js +5 -5
@@ -261,7 +261,7 @@ let TestingPeekOpener = class TestingPeekOpener extends Disposable {
261
261
  } else {
262
262
  this.commandService.executeCommand("markdown.showPreview", current.messageUri).catch(err => {
263
263
  this.notificationService.error(( localize(
264
- 13177,
264
+ 14027,
265
265
  "Could not open markdown preview: {0}.\n\nPlease make sure the markdown extension is enabled.",
266
266
  err.message
267
267
  )));
@@ -438,7 +438,7 @@ let TestingOutputPeekController = TestingOutputPeekController_1 = class TestingO
438
438
  if (!this.peek.get()) {
439
439
  const peek = this.instantiationService.createInstance(TestResultsPeek, this.editor);
440
440
  this.peek.set(peek, undefined);
441
- peek.onDidClose(() => {
441
+ Event.once(peek.onDidClose)(() => {
442
442
  this.visible.set(false);
443
443
  this.peek.set(undefined, undefined);
444
444
  });
@@ -756,7 +756,7 @@ let TestResultsPeek = class TestResultsPeek extends PeekViewWidget {
756
756
  stripIcons(subject.test.label)
757
757
  );
758
758
  } else {
759
- this.setTitle(( localize(13178, "Test Output")));
759
+ this.setTitle(( localize(14028, "Test Output")));
760
760
  }
761
761
  this.applyTheme();
762
762
  await this.content.reveal({
@@ -873,7 +873,7 @@ class CloseTestPeek extends EditorAction2 {
873
873
  constructor() {
874
874
  super({
875
875
  id: "editor.closeTestPeek",
876
- title: ( localize2(13179, "Close")),
876
+ title: ( localize2(14029, "Close")),
877
877
  icon: Codicon.close,
878
878
  precondition: ( ContextKeyExpr.or(TestingContextKeys.isInPeek, TestingContextKeys.isPeekVisible)),
879
879
  keybinding: {
@@ -914,9 +914,9 @@ class GoToNextMessageAction extends Action2 {
914
914
  super({
915
915
  id: GoToNextMessageAction.ID,
916
916
  f1: true,
917
- title: ( localize2(13180, "Go to Next Test Failure")),
917
+ title: ( localize2(14030, "Go to Next Test Failure")),
918
918
  metadata: {
919
- description: ( localize2(13181, "Shows the next failure message in your file"))
919
+ description: ( localize2(14031, "Shows the next failure message in your file"))
920
920
  },
921
921
  icon: Codicon.arrowDown,
922
922
  category: Categories.Test,
@@ -950,9 +950,9 @@ class GoToPreviousMessageAction extends Action2 {
950
950
  super({
951
951
  id: GoToPreviousMessageAction.ID,
952
952
  f1: true,
953
- title: ( localize2(13182, "Go to Previous Test Failure")),
953
+ title: ( localize2(14032, "Go to Previous Test Failure")),
954
954
  metadata: {
955
- description: ( localize2(13183, "Shows the previous failure message in your file"))
955
+ description: ( localize2(14033, "Shows the previous failure message in your file"))
956
956
  },
957
957
  icon: Codicon.arrowUp,
958
958
  category: Categories.Test,
@@ -985,7 +985,7 @@ class CollapsePeekStack extends Action2 {
985
985
  constructor() {
986
986
  super({
987
987
  id: CollapsePeekStack.ID,
988
- title: ( localize2(13184, "Collapse Stack Frames")),
988
+ title: ( localize2(14034, "Collapse Stack Frames")),
989
989
  icon: Codicon.collapseAll,
990
990
  category: Categories.Test,
991
991
  menu: [{
@@ -1011,7 +1011,7 @@ class OpenMessageInEditorAction extends Action2 {
1011
1011
  super({
1012
1012
  id: OpenMessageInEditorAction.ID,
1013
1013
  f1: false,
1014
- title: ( localize2(13185, "Open in Editor")),
1014
+ title: ( localize2(14035, "Open in Editor")),
1015
1015
  icon: Codicon.goToFile,
1016
1016
  category: Categories.Test,
1017
1017
  menu: [{
@@ -1031,9 +1031,9 @@ class ToggleTestingPeekHistory extends Action2 {
1031
1031
  super({
1032
1032
  id: ToggleTestingPeekHistory.ID,
1033
1033
  f1: true,
1034
- title: ( localize2(13186, "Toggle Test History in Peek")),
1034
+ title: ( localize2(14036, "Toggle Test History in Peek")),
1035
1035
  metadata: {
1036
- description: ( localize2(13187, "Shows or hides the history of test runs in the peek view"))
1036
+ description: ( localize2(14037, "Shows or hides the history of test runs in the peek view"))
1037
1037
  },
1038
1038
  icon: Codicon.history,
1039
1039
  category: Categories.Test,
@@ -41,7 +41,7 @@ let TestingViewPaneContainer = class TestingViewPaneContainer extends ViewPaneCo
41
41
  return 400;
42
42
  }
43
43
  getTitle() {
44
- return localize(13188, "Testing");
44
+ return localize(14038, "Testing");
45
45
  }
46
46
  };
47
47
  TestingViewPaneContainer = ( __decorate([( __param(0, IWorkbenchLayoutService)), ( __param(1, ITelemetryService)), ( __param(2, IInstantiationService)), ( __param(3, IContextMenuService)), ( __param(4, IThemeService)), ( __param(5, IStorageService)), ( __param(6, IConfigurationService)), ( __param(7, IExtensionService)), ( __param(8, IWorkspaceContextService)), ( __param(9, IViewDescriptorService)), ( __param(10, ILogService))], TestingViewPaneContainer));
@@ -19,36 +19,36 @@ const testingColorIconFailed = registerColor("testing.iconFailed", {
19
19
  light: "#f14c4c",
20
20
  hcDark: "#f14c4c",
21
21
  hcLight: "#B5200D"
22
- }, ( localize(13189, "Color for the 'failed' icon in the test explorer.")));
22
+ }, ( localize(14039, "Color for the 'failed' icon in the test explorer.")));
23
23
  const testingColorIconErrored = registerColor("testing.iconErrored", {
24
24
  dark: "#f14c4c",
25
25
  light: "#f14c4c",
26
26
  hcDark: "#f14c4c",
27
27
  hcLight: "#B5200D"
28
- }, ( localize(13190, "Color for the 'Errored' icon in the test explorer.")));
28
+ }, ( localize(14040, "Color for the 'Errored' icon in the test explorer.")));
29
29
  const testingColorIconPassed = registerColor("testing.iconPassed", {
30
30
  dark: "#73c991",
31
31
  light: "#73c991",
32
32
  hcDark: "#73c991",
33
33
  hcLight: "#007100"
34
- }, ( localize(13191, "Color for the 'passed' icon in the test explorer.")));
35
- const testingColorRunAction = registerColor("testing.runAction", testingColorIconPassed, ( localize(13192, "Color for 'run' icons in the editor.")));
36
- const testingColorIconQueued = registerColor("testing.iconQueued", "#cca700", ( localize(13193, "Color for the 'Queued' icon in the test explorer.")));
37
- const testingColorIconUnset = registerColor("testing.iconUnset", "#848484", ( localize(13194, "Color for the 'Unset' icon in the test explorer.")));
38
- const testingColorIconSkipped = registerColor("testing.iconSkipped", "#848484", ( localize(13195, "Color for the 'Skipped' icon in the test explorer.")));
34
+ }, ( localize(14041, "Color for the 'passed' icon in the test explorer.")));
35
+ const testingColorRunAction = registerColor("testing.runAction", testingColorIconPassed, ( localize(14042, "Color for 'run' icons in the editor.")));
36
+ const testingColorIconQueued = registerColor("testing.iconQueued", "#cca700", ( localize(14043, "Color for the 'Queued' icon in the test explorer.")));
37
+ const testingColorIconUnset = registerColor("testing.iconUnset", "#848484", ( localize(14044, "Color for the 'Unset' icon in the test explorer.")));
38
+ const testingColorIconSkipped = registerColor("testing.iconSkipped", "#848484", ( localize(14045, "Color for the 'Skipped' icon in the test explorer.")));
39
39
  const testingPeekBorder = registerColor("testing.peekBorder", {
40
40
  dark: editorErrorForeground,
41
41
  light: editorErrorForeground,
42
42
  hcDark: contrastBorder,
43
43
  hcLight: contrastBorder
44
- }, ( localize(13196, "Color of the peek view borders and arrow.")));
44
+ }, ( localize(14046, "Color of the peek view borders and arrow.")));
45
45
  const testingMessagePeekBorder = registerColor("testing.messagePeekBorder", {
46
46
  dark: editorInfoForeground,
47
47
  light: editorInfoForeground,
48
48
  hcDark: contrastBorder,
49
49
  hcLight: contrastBorder
50
50
  }, ( localize(
51
- 13197,
51
+ 14047,
52
52
  "Color of the peek view borders and arrow when peeking a logged message."
53
53
  )));
54
54
  const testingPeekHeaderBackground = registerColor("testing.peekHeaderBackground", {
@@ -56,14 +56,14 @@ const testingPeekHeaderBackground = registerColor("testing.peekHeaderBackground"
56
56
  light: ( transparent(editorErrorForeground, 0.1)),
57
57
  hcDark: null,
58
58
  hcLight: null
59
- }, ( localize(13196, "Color of the peek view borders and arrow.")));
59
+ }, ( localize(14046, "Color of the peek view borders and arrow.")));
60
60
  const testingPeekMessageHeaderBackground = registerColor("testing.messagePeekHeaderBackground", {
61
61
  dark: ( transparent(editorInfoForeground, 0.1)),
62
62
  light: ( transparent(editorInfoForeground, 0.1)),
63
63
  hcDark: null,
64
64
  hcLight: null
65
65
  }, ( localize(
66
- 13198,
66
+ 14048,
67
67
  "Color of the peek view borders and arrow when peeking a logged message."
68
68
  )));
69
69
  const testingCoveredBackground = registerColor("testing.coveredBackground", {
@@ -71,66 +71,66 @@ const testingCoveredBackground = registerColor("testing.coveredBackground", {
71
71
  light: diffInserted,
72
72
  hcDark: null,
73
73
  hcLight: null
74
- }, ( localize(13199, "Background color of text that was covered.")));
74
+ }, ( localize(14049, "Background color of text that was covered.")));
75
75
  const testingCoveredBorder = registerColor("testing.coveredBorder", {
76
76
  dark: ( transparent(testingCoveredBackground, 0.75)),
77
77
  light: ( transparent(testingCoveredBackground, 0.75)),
78
78
  hcDark: contrastBorder,
79
79
  hcLight: contrastBorder
80
- }, ( localize(13200, "Border color of text that was covered.")));
80
+ }, ( localize(14050, "Border color of text that was covered.")));
81
81
  registerColor("testing.coveredGutterBackground", {
82
82
  dark: ( transparent(diffInserted, 0.6)),
83
83
  light: ( transparent(diffInserted, 0.6)),
84
84
  hcDark: chartsGreen,
85
85
  hcLight: chartsGreen
86
- }, ( localize(13201, "Gutter color of regions where code was covered.")));
86
+ }, ( localize(14051, "Gutter color of regions where code was covered.")));
87
87
  registerColor("testing.uncoveredBranchBackground", {
88
88
  dark: opaque(( transparent(diffRemoved, 2)), editorBackground),
89
89
  light: opaque(( transparent(diffRemoved, 2)), editorBackground),
90
90
  hcDark: null,
91
91
  hcLight: null
92
- }, ( localize(13202, "Background of the widget shown for an uncovered branch.")));
92
+ }, ( localize(14052, "Background of the widget shown for an uncovered branch.")));
93
93
  const testingUncoveredBackground = registerColor("testing.uncoveredBackground", {
94
94
  dark: diffRemoved,
95
95
  light: diffRemoved,
96
96
  hcDark: null,
97
97
  hcLight: null
98
- }, ( localize(13203, "Background color of text that was not covered.")));
98
+ }, ( localize(14053, "Background color of text that was not covered.")));
99
99
  const testingUncoveredBorder = registerColor("testing.uncoveredBorder", {
100
100
  dark: ( transparent(testingUncoveredBackground, 0.75)),
101
101
  light: ( transparent(testingUncoveredBackground, 0.75)),
102
102
  hcDark: contrastBorder,
103
103
  hcLight: contrastBorder
104
- }, ( localize(13204, "Border color of text that was not covered.")));
104
+ }, ( localize(14054, "Border color of text that was not covered.")));
105
105
  registerColor("testing.uncoveredGutterBackground", {
106
106
  dark: ( transparent(diffRemoved, 1.5)),
107
107
  light: ( transparent(diffRemoved, 1.5)),
108
108
  hcDark: chartsRed,
109
109
  hcLight: chartsRed
110
- }, ( localize(13205, "Gutter color of regions where code not covered.")));
111
- registerColor("testing.coverCountBadgeBackground", badgeBackground, ( localize(13206, "Background for the badge indicating execution count")));
112
- registerColor("testing.coverCountBadgeForeground", badgeForeground, ( localize(13207, "Foreground for the badge indicating execution count")));
110
+ }, ( localize(14055, "Gutter color of regions where code not covered.")));
111
+ registerColor("testing.coverCountBadgeBackground", badgeBackground, ( localize(14056, "Background for the badge indicating execution count")));
112
+ registerColor("testing.coverCountBadgeForeground", badgeForeground, ( localize(14057, "Foreground for the badge indicating execution count")));
113
113
  const messageBadgeBackground = registerColor(
114
114
  "testing.message.error.badgeBackground",
115
115
  activityErrorBadgeBackground,
116
116
  ( localize(
117
- 13208,
117
+ 14058,
118
118
  "Background color of test error messages shown inline in the editor."
119
119
  ))
120
120
  );
121
121
  registerColor(
122
122
  "testing.message.error.badgeBorder",
123
123
  messageBadgeBackground,
124
- ( localize(13209, "Border color of test error messages shown inline in the editor."))
124
+ ( localize(14059, "Border color of test error messages shown inline in the editor."))
125
125
  );
126
126
  registerColor(
127
127
  "testing.message.error.badgeForeground",
128
128
  activityErrorBadgeForeground,
129
- ( localize(13210, "Text color of test error messages shown inline in the editor."))
129
+ ( localize(14060, "Text color of test error messages shown inline in the editor."))
130
130
  );
131
- registerColor("testing.message.error.lineBackground", null, ( localize(13211, "Margin color beside error messages shown inline in the editor.")));
132
- registerColor("testing.message.info.decorationForeground", ( transparent(editorForeground, 0.5)), ( localize(13212, "Text color of test info messages shown inline in the editor.")));
133
- registerColor("testing.message.info.lineBackground", null, ( localize(13213, "Margin color beside info messages shown inline in the editor.")));
131
+ registerColor("testing.message.error.lineBackground", null, ( localize(14061, "Margin color beside error messages shown inline in the editor.")));
132
+ registerColor("testing.message.info.decorationForeground", ( transparent(editorForeground, 0.5)), ( localize(14062, "Text color of test info messages shown inline in the editor.")));
133
+ registerColor("testing.message.info.lineBackground", null, ( localize(14063, "Margin color beside info messages shown inline in the editor.")));
134
134
  const testStatesToIconColors = {
135
135
  [TestResultState.Errored]: testingColorIconErrored,
136
136
  [TestResultState.Failed]: testingColorIconFailed,
@@ -139,12 +139,12 @@ const testStatesToIconColors = {
139
139
  [TestResultState.Unset]: testingColorIconUnset,
140
140
  [TestResultState.Skipped]: testingColorIconSkipped
141
141
  };
142
- const testingRetiredColorIconErrored = registerColor("testing.iconErrored.retired", ( transparent(testingColorIconErrored, 0.7)), ( localize(13214, "Retired color for the 'Errored' icon in the test explorer.")));
143
- const testingRetiredColorIconFailed = registerColor("testing.iconFailed.retired", ( transparent(testingColorIconFailed, 0.7)), ( localize(13215, "Retired color for the 'failed' icon in the test explorer.")));
144
- const testingRetiredColorIconPassed = registerColor("testing.iconPassed.retired", ( transparent(testingColorIconPassed, 0.7)), ( localize(13216, "Retired color for the 'passed' icon in the test explorer.")));
145
- const testingRetiredColorIconQueued = registerColor("testing.iconQueued.retired", ( transparent(testingColorIconQueued, 0.7)), ( localize(13217, "Retired color for the 'Queued' icon in the test explorer.")));
146
- const testingRetiredColorIconUnset = registerColor("testing.iconUnset.retired", ( transparent(testingColorIconUnset, 0.7)), ( localize(13218, "Retired color for the 'Unset' icon in the test explorer.")));
147
- const testingRetiredColorIconSkipped = registerColor("testing.iconSkipped.retired", ( transparent(testingColorIconSkipped, 0.7)), ( localize(13219, "Retired color for the 'Skipped' icon in the test explorer.")));
142
+ const testingRetiredColorIconErrored = registerColor("testing.iconErrored.retired", ( transparent(testingColorIconErrored, 0.7)), ( localize(14064, "Retired color for the 'Errored' icon in the test explorer.")));
143
+ const testingRetiredColorIconFailed = registerColor("testing.iconFailed.retired", ( transparent(testingColorIconFailed, 0.7)), ( localize(14065, "Retired color for the 'failed' icon in the test explorer.")));
144
+ const testingRetiredColorIconPassed = registerColor("testing.iconPassed.retired", ( transparent(testingColorIconPassed, 0.7)), ( localize(14066, "Retired color for the 'passed' icon in the test explorer.")));
145
+ const testingRetiredColorIconQueued = registerColor("testing.iconQueued.retired", ( transparent(testingColorIconQueued, 0.7)), ( localize(14067, "Retired color for the 'Queued' icon in the test explorer.")));
146
+ const testingRetiredColorIconUnset = registerColor("testing.iconUnset.retired", ( transparent(testingColorIconUnset, 0.7)), ( localize(14068, "Retired color for the 'Unset' icon in the test explorer.")));
147
+ const testingRetiredColorIconSkipped = registerColor("testing.iconSkipped.retired", ( transparent(testingColorIconSkipped, 0.7)), ( localize(14069, "Retired color for the 'Skipped' icon in the test explorer.")));
148
148
  const testStatesToRetiredIconColors = {
149
149
  [TestResultState.Errored]: testingRetiredColorIconErrored,
150
150
  [TestResultState.Failed]: testingRetiredColorIconFailed,
@@ -64,46 +64,46 @@ var TestingResultsViewLayout;
64
64
  const testingConfiguration = {
65
65
  id: "testing",
66
66
  order: 21,
67
- title: ( localize(13220, "Testing")),
67
+ title: ( localize(14070, "Testing")),
68
68
  type: "object",
69
69
  properties: {
70
70
  [TestingConfigKeys.AutoOpenPeekView]: {
71
- description: ( localize(13221, "Configures when the error Peek view is automatically opened.")),
71
+ description: ( localize(14071, "Configures when the error Peek view is automatically opened.")),
72
72
  enum: [
73
73
  AutoOpenPeekViewWhen.FailureAnywhere,
74
74
  AutoOpenPeekViewWhen.FailureVisible,
75
75
  AutoOpenPeekViewWhen.Never
76
76
  ],
77
77
  default: AutoOpenPeekViewWhen.Never,
78
- enumDescriptions: [( localize(13222, "Open automatically no matter where the failure is.")), ( localize(13223, "Open automatically when a test fails in a visible document.")), ( localize(13224, "Never automatically open."))]
78
+ enumDescriptions: [( localize(14072, "Open automatically no matter where the failure is.")), ( localize(14073, "Open automatically when a test fails in a visible document.")), ( localize(14074, "Never automatically open."))]
79
79
  },
80
80
  [TestingConfigKeys.ShowAllMessages]: {
81
- description: ( localize(13225, "Controls whether to show messages from all test runs.")),
81
+ description: ( localize(14075, "Controls whether to show messages from all test runs.")),
82
82
  type: "boolean",
83
83
  default: false
84
84
  },
85
85
  [TestingConfigKeys.AutoOpenPeekViewDuringContinuousRun]: {
86
86
  description: ( localize(
87
- 13226,
87
+ 14076,
88
88
  "Controls whether to automatically open the Peek view during continuous run mode."
89
89
  )),
90
90
  type: "boolean",
91
91
  default: false
92
92
  },
93
93
  [TestingConfigKeys.CountBadge]: {
94
- description: ( localize(13227, "Controls the count badge on the Testing icon on the Activity Bar.")),
94
+ description: ( localize(14077, "Controls the count badge on the Testing icon on the Activity Bar.")),
95
95
  enum: [
96
96
  TestingCountBadge.Failed,
97
97
  TestingCountBadge.Off,
98
98
  TestingCountBadge.Passed,
99
99
  TestingCountBadge.Skipped
100
100
  ],
101
- enumDescriptions: [( localize(13228, "Show the number of failed tests")), ( localize(13229, "Disable the testing count badge")), ( localize(13230, "Show the number of passed tests")), ( localize(13231, "Show the number of skipped tests"))],
101
+ enumDescriptions: [( localize(14078, "Show the number of failed tests")), ( localize(14079, "Disable the testing count badge")), ( localize(14080, "Show the number of passed tests")), ( localize(14081, "Show the number of skipped tests"))],
102
102
  default: TestingCountBadge.Failed
103
103
  },
104
104
  [TestingConfigKeys.FollowRunningTest]: {
105
105
  description: ( localize(
106
- 13232,
106
+ 14082,
107
107
  "Controls whether the running test should be followed in the Test Explorer view."
108
108
  )),
109
109
  type: "boolean",
@@ -111,7 +111,7 @@ const testingConfiguration = {
111
111
  },
112
112
  [TestingConfigKeys.DefaultGutterClickAction]: {
113
113
  description: ( localize(
114
- 13233,
114
+ 14083,
115
115
  "Controls the action to take when left-clicking on a test decoration in the gutter."
116
116
  )),
117
117
  enum: [
@@ -120,16 +120,16 @@ const testingConfiguration = {
120
120
  DefaultGutterClickAction.Coverage,
121
121
  DefaultGutterClickAction.ContextMenu
122
122
  ],
123
- enumDescriptions: [( localize(13234, "Run the test.")), ( localize(13235, "Debug the test.")), ( localize(13236, "Run the test with coverage.")), ( localize(13237, "Open the context menu for more options."))],
123
+ enumDescriptions: [( localize(14084, "Run the test.")), ( localize(14085, "Debug the test.")), ( localize(14086, "Run the test with coverage.")), ( localize(14087, "Open the context menu for more options."))],
124
124
  default: DefaultGutterClickAction.Run
125
125
  },
126
126
  [TestingConfigKeys.GutterEnabled]: {
127
- description: ( localize(13238, "Controls whether test decorations are shown in the editor gutter.")),
127
+ description: ( localize(14088, "Controls whether test decorations are shown in the editor gutter.")),
128
128
  type: "boolean",
129
129
  default: true
130
130
  },
131
131
  [TestingConfigKeys.SaveBeforeTest]: {
132
- description: ( localize(13239, "Control whether save all dirty editors before running a test.")),
132
+ description: ( localize(14089, "Control whether save all dirty editors before running a test.")),
133
133
  type: "boolean",
134
134
  default: true
135
135
  },
@@ -140,13 +140,13 @@ const testingConfiguration = {
140
140
  AutoOpenTesting.OpenOnTestFailure,
141
141
  AutoOpenTesting.OpenExplorerOnTestStart
142
142
  ],
143
- enumDescriptions: [( localize(13240, "Never automatically open the testing views")), ( localize(13241, "Open the test results view when tests start")), ( localize(13242, "Open the test result view on any test failure")), ( localize(13243, "Open the test explorer when tests start"))],
143
+ enumDescriptions: [( localize(14090, "Never automatically open the testing views")), ( localize(14091, "Open the test results view when tests start")), ( localize(14092, "Open the test result view on any test failure")), ( localize(14093, "Open the test explorer when tests start"))],
144
144
  default: "openOnTestStart",
145
- description: ( localize(13244, "Controls when the testing view should open."))
145
+ description: ( localize(14094, "Controls when the testing view should open."))
146
146
  },
147
147
  [TestingConfigKeys.AlwaysRevealTestOnStateChange]: {
148
148
  markdownDescription: ( localize(
149
- 13245,
149
+ 14095,
150
150
  "Always reveal the executed test when {0} is on. If this setting is turned off, only failed tests will be revealed.",
151
151
  "`#testing.followRunningTest#`"
152
152
  )),
@@ -154,13 +154,13 @@ const testingConfiguration = {
154
154
  default: false
155
155
  },
156
156
  [TestingConfigKeys.ShowCoverageInExplorer]: {
157
- description: ( localize(13246, "Whether test coverage should be down in the File Explorer view.")),
157
+ description: ( localize(14096, "Whether test coverage should be down in the File Explorer view.")),
158
158
  type: "boolean",
159
159
  default: true
160
160
  },
161
161
  [TestingConfigKeys.CoveragePercent]: {
162
162
  markdownDescription: ( localize(
163
- 13247,
163
+ 14097,
164
164
  "Configures what percentage is displayed by default for test coverage."
165
165
  )),
166
166
  default: TestingDisplayedCoveragePercent.TotalCoverage,
@@ -170,12 +170,12 @@ const testingConfiguration = {
170
170
  TestingDisplayedCoveragePercent.Minimum
171
171
  ],
172
172
  enumDescriptions: [( localize(
173
- 13248,
173
+ 14098,
174
174
  "A calculation of the combined statement, function, and branch coverage."
175
- )), ( localize(13249, "The statement coverage.")), ( localize(13250, "The minimum of statement, function, and branch coverage."))]
175
+ )), ( localize(14099, "The statement coverage.")), ( localize(14100, "The minimum of statement, function, and branch coverage."))]
176
176
  },
177
177
  [TestingConfigKeys.CoverageBarThresholds]: {
178
- markdownDescription: ( localize(13251, "Configures the colors used for percentages in test coverage bars.")),
178
+ markdownDescription: ( localize(14101, "Configures the colors used for percentages in test coverage bars.")),
179
179
  default: {
180
180
  red: 0,
181
181
  yellow: 60,
@@ -203,18 +203,18 @@ const testingConfiguration = {
203
203
  }
204
204
  },
205
205
  [TestingConfigKeys.CoverageToolbarEnabled]: {
206
- description: ( localize(13252, "Controls whether the coverage toolbar is shown in the editor.")),
206
+ description: ( localize(14102, "Controls whether the coverage toolbar is shown in the editor.")),
207
207
  type: "boolean",
208
208
  default: false
209
209
  },
210
210
  [TestingConfigKeys.ResultsViewLayout]: {
211
- description: ( localize(13253, "Controls the layout of the Test Results view.")),
211
+ description: ( localize(14103, "Controls the layout of the Test Results view.")),
212
212
  enum: [TestingResultsViewLayout.TreeRight, TestingResultsViewLayout.TreeLeft],
213
213
  enumDescriptions: [( localize(
214
- 13254,
214
+ 14104,
215
215
  "Show the test run tree on the right side with details on the left."
216
216
  )), ( localize(
217
- 13255,
217
+ 14105,
218
218
  "Show the test run tree on the left side with details on the right."
219
219
  ))],
220
220
  default: TestingResultsViewLayout.TreeRight
@@ -16,7 +16,7 @@ const trimExtraWhitespace = str => str.replace(/\s\s+/g, " ").trim();
16
16
  let TestExplorerFilterState = class TestExplorerFilterState extends Disposable {
17
17
  constructor(storageService) {
18
18
  super();
19
- this.focusEmitter = ( new Emitter());
19
+ this.focusEmitter = this._register(( new Emitter()));
20
20
  this.termFilterState = {};
21
21
  this.globList = [];
22
22
  this.includeTags = ( new Set());
@@ -38,7 +38,7 @@ let TestResultService = class TestResultService extends Disposable {
38
38
  this.push(loaded[i]);
39
39
  }
40
40
  }));
41
- this.persistScheduler = ( new RunOnceScheduler(() => this.persistImmediately(), 500));
41
+ this.persistScheduler = this._register(( new RunOnceScheduler(() => this.persistImmediately(), 500)));
42
42
  this._register(toDisposable(() => dispose(this._resultsDisposables)));
43
43
  this.isRunning = TestingContextKeys.isRunning.bindTo(contextKeyService);
44
44
  this.hasAnyResults = TestingContextKeys.hasAnyResults.bindTo(contextKeyService);
@@ -53,9 +53,9 @@ let TestService = class TestService extends Disposable {
53
53
  this.workspaceTrustRequestService = workspaceTrustRequestService;
54
54
  this.testControllers = observableValue("testControllers", ( new Map()));
55
55
  this.testExtHosts = ( new Set());
56
- this.cancelExtensionTestRunEmitter = ( new Emitter());
57
- this.willProcessDiffEmitter = ( new Emitter());
58
- this.didProcessDiffEmitter = ( new Emitter());
56
+ this.cancelExtensionTestRunEmitter = this._register(( new Emitter()));
57
+ this.willProcessDiffEmitter = this._register(( new Emitter()));
58
+ this.didProcessDiffEmitter = this._register(( new Emitter()));
59
59
  this.testRefreshCancellations = ( new Set());
60
60
  this.uiRunningTests = ( new Map());
61
61
  this.onWillProcessDiff = this.willProcessDiffEmitter.event;
@@ -164,7 +164,7 @@ let TestService = class TestService extends Disposable {
164
164
  req.exclude = [...this.excluded.all];
165
165
  }
166
166
  const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({
167
- message: ( localize(13269, "Running tests may execute code in your workspace."))
167
+ message: ( localize(14119, "Running tests may execute code in your workspace."))
168
168
  });
169
169
  if (!trust) {
170
170
  return;
@@ -179,7 +179,7 @@ let TestService = class TestService extends Disposable {
179
179
  }))), token).then(result => {
180
180
  const errs = ( result.map(r => r.error)).filter(isDefined);
181
181
  if (errs.length) {
182
- this.notificationService.error(( localize(13270, "An error occurred attempting to run tests: {0}", errs.join(" "))));
182
+ this.notificationService.error(( localize(14120, "An error occurred attempting to run tests: {0}", errs.join(" "))));
183
183
  }
184
184
  })
185
185
  ));
@@ -191,7 +191,7 @@ let TestService = class TestService extends Disposable {
191
191
  }
192
192
  const result = this.testResults.createLiveResult(req);
193
193
  const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({
194
- message: ( localize(13269, "Running tests may execute code in your workspace."))
194
+ message: ( localize(14119, "Running tests may execute code in your workspace."))
195
195
  });
196
196
  if (!trust) {
197
197
  result.markComplete();
@@ -211,7 +211,7 @@ let TestService = class TestService extends Disposable {
211
211
  }))), cancelSource.token).then(result => {
212
212
  const errs = ( result.map(r => r.error)).filter(isDefined);
213
213
  if (errs.length) {
214
- this.notificationService.error(( localize(13270, "An error occurred attempting to run tests: {0}", errs.join(" "))));
214
+ this.notificationService.error(( localize(14120, "An error occurred attempting to run tests: {0}", errs.join(" "))));
215
215
  }
216
216
  })
217
217
  ));
@@ -84,7 +84,7 @@ let RunTestTool = class RunTestTool {
84
84
  }
85
85
  }
86
86
  },
87
- userDescription: ( localize(13274, "Run unit tests (optionally with coverage)")),
87
+ userDescription: ( localize(14124, "Run unit tests (optionally with coverage)")),
88
88
  source: ToolDataSource.Internal,
89
89
  tags: [
90
90
  "vscode_editing_with_tests",
@@ -123,11 +123,11 @@ let RunTestTool = class RunTestTool {
123
123
  kind: "text",
124
124
  value: "No tests found in the files. Ensure the correct absolute paths are passed to the tool."
125
125
  }],
126
- toolResultError: ( localize(13275, "No tests found in the files"))
126
+ toolResultError: ( localize(14125, "No tests found in the files"))
127
127
  };
128
128
  }
129
129
  progress.report({
130
- message: ( localize(13276, "Starting test run..."))
130
+ message: ( localize(14126, "Starting test run..."))
131
131
  });
132
132
  if (group === TestRunProfileBitset.Coverage) {
133
133
  if (!( testCases.some(
@@ -144,7 +144,7 @@ let RunTestTool = class RunTestTool {
144
144
  value: "No test run was started. Instruct the user to ensure their test runner is correctly configured"
145
145
  }],
146
146
  toolResultError: ( localize(
147
- 13277,
147
+ 14127,
148
148
  "No test run was started. This may be an issue with your test runner or extension."
149
149
  ))
150
150
  };
@@ -155,9 +155,9 @@ let RunTestTool = class RunTestTool {
155
155
  return {
156
156
  content: [{
157
157
  kind: "text",
158
- value: ( localize(13278, "Test run was cancelled."))
158
+ value: ( localize(14128, "Test run was cancelled."))
159
159
  }],
160
- toolResultMessage: ( localize(13278, "Test run was cancelled."))
160
+ toolResultMessage: ( localize(14128, "Test run was cancelled."))
161
161
  };
162
162
  }
163
163
  const summary = await this._buildSummary(result, mode, coverageFiles);
@@ -339,7 +339,7 @@ let RunTestTool = class RunTestTool {
339
339
  return tests;
340
340
  }
341
341
  progress.report({
342
- message: ( localize(13279, "Filtering tests..."))
342
+ message: ( localize(14129, "Filtering tests..."))
343
343
  });
344
344
  const testNames = ( params.testNames.map(t => t.toLowerCase().trim()));
345
345
  const filtered = [];
@@ -368,7 +368,7 @@ let RunTestTool = class RunTestTool {
368
368
  return [...this._testService.collection.rootItems];
369
369
  }
370
370
  progress.report({
371
- message: ( localize(13280, "Discovering tests..."))
371
+ message: ( localize(14130, "Discovering tests..."))
372
372
  });
373
373
  const firstWorkspaceFolder = this._workspaceContextService.getWorkspace().folders.at(0)?.uri;
374
374
  const uris = ( params.files.map(f => {
@@ -392,13 +392,13 @@ let RunTestTool = class RunTestTool {
392
392
  }
393
393
  prepareToolInvocation(context, token) {
394
394
  const params = context.parameters;
395
- const title = ( localize(13281, "Allow test run?"));
395
+ const title = ( localize(14131, "Allow test run?"));
396
396
  const inFiles = params.files?.map(f => "`" + basename(f) + "`");
397
397
  return Promise.resolve({
398
- invocationMessage: ( localize(13282, "Running tests...")),
398
+ invocationMessage: ( localize(14132, "Running tests...")),
399
399
  confirmationMessages: {
400
400
  title,
401
- message: inFiles?.length ? ( new MarkdownString()).appendMarkdown(( localize(13283, "The model wants to run tests in {0}.", inFiles.join(", ")))) : ( localize(13284, "The model wants to run all tests.")),
401
+ message: inFiles?.length ? ( new MarkdownString()).appendMarkdown(( localize(14133, "The model wants to run tests in {0}.", inFiles.join(", ")))) : ( localize(14134, "The model wants to run all tests.")),
402
402
  allowAutoConfirm: true
403
403
  }
404
404
  });
@@ -59,11 +59,11 @@ let TestingContentProvider = class TestingContentProvider {
59
59
  return;
60
60
  }
61
61
  if (!hadContent) {
62
- append(( localize(13285, "The test run did not record any output.")));
62
+ append(( localize(14135, "The test run did not record any output.")));
63
63
  dispose.dispose();
64
64
  }
65
65
  });
66
- model.onWillDispose(() => dispose.dispose());
66
+ dispose.add(model.onWillDispose(() => dispose.dispose()));
67
67
  return model;
68
68
  }
69
69
  const test = result?.getStateById(parsed.testExtId);