@codingame/monaco-vscode-testing-service-override 26.2.2 → 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.
- package/package.json +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +21 -21
- package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDisplayUtils.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/listProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/treeProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/icons.js +29 -29
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageView.js +16 -16
- package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +72 -72
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsOutput.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsTree.js +22 -22
- package/vscode/src/vs/workbench/contrib/testing/browser/testResultsView/testResultsViewContent.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/browser/testing.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/testing/browser/testingConfigurationUi.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/browser/testingDecorations.js +20 -20
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +13 -12
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +27 -22
- package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +12 -12
- package/vscode/src/vs/workbench/contrib/testing/browser/testingViewPaneContainer.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/browser/theme.js +32 -32
- package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +24 -24
- package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testResultService.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +7 -7
- package/vscode/src/vs/workbench/contrib/testing/common/testingChatAgentTool.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +31 -31
- package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testingProgressMessages.js +5 -5
|
@@ -10,120 +10,120 @@ var TestingContextKeys;
|
|
|
10
10
|
TestingContextKeys.canRefreshTests = ( new RawContextKey("testing.canRefresh", false, {
|
|
11
11
|
type: "boolean",
|
|
12
12
|
description: ( localize(
|
|
13
|
-
|
|
13
|
+
14136,
|
|
14
14
|
"Indicates whether any test controller has an attached refresh handler."
|
|
15
15
|
))
|
|
16
16
|
}));
|
|
17
17
|
TestingContextKeys.isRefreshingTests = ( new RawContextKey("testing.isRefreshing", false, {
|
|
18
18
|
type: "boolean",
|
|
19
19
|
description: ( localize(
|
|
20
|
-
|
|
20
|
+
14137,
|
|
21
21
|
"Indicates whether any test controller is currently refreshing tests."
|
|
22
22
|
))
|
|
23
23
|
}));
|
|
24
24
|
TestingContextKeys.isContinuousModeOn = ( new RawContextKey("testing.isContinuousModeOn", false, {
|
|
25
25
|
type: "boolean",
|
|
26
|
-
description: ( localize(
|
|
26
|
+
description: ( localize(14138, "Indicates whether continuous test mode is on."))
|
|
27
27
|
}));
|
|
28
28
|
TestingContextKeys.hasDebuggableTests = ( new RawContextKey("testing.hasDebuggableTests", false, {
|
|
29
29
|
type: "boolean",
|
|
30
30
|
description: ( localize(
|
|
31
|
-
|
|
31
|
+
14139,
|
|
32
32
|
"Indicates whether any test controller has registered a debug configuration"
|
|
33
33
|
))
|
|
34
34
|
}));
|
|
35
35
|
TestingContextKeys.hasRunnableTests = ( new RawContextKey("testing.hasRunnableTests", false, {
|
|
36
36
|
type: "boolean",
|
|
37
37
|
description: ( localize(
|
|
38
|
-
|
|
38
|
+
14140,
|
|
39
39
|
"Indicates whether any test controller has registered a run configuration"
|
|
40
40
|
))
|
|
41
41
|
}));
|
|
42
42
|
TestingContextKeys.hasCoverableTests = ( new RawContextKey("testing.hasCoverableTests", false, {
|
|
43
43
|
type: "boolean",
|
|
44
44
|
description: ( localize(
|
|
45
|
-
|
|
45
|
+
14141,
|
|
46
46
|
"Indicates whether any test controller has registered a coverage configuration"
|
|
47
47
|
))
|
|
48
48
|
}));
|
|
49
49
|
TestingContextKeys.hasNonDefaultProfile = ( new RawContextKey("testing.hasNonDefaultProfile", false, {
|
|
50
50
|
type: "boolean",
|
|
51
51
|
description: ( localize(
|
|
52
|
-
|
|
52
|
+
14142,
|
|
53
53
|
"Indicates whether any test controller has registered a non-default configuration"
|
|
54
54
|
))
|
|
55
55
|
}));
|
|
56
56
|
TestingContextKeys.hasConfigurableProfile = ( new RawContextKey("testing.hasConfigurableProfile", false, {
|
|
57
57
|
type: "boolean",
|
|
58
|
-
description: ( localize(
|
|
58
|
+
description: ( localize(14143, "Indicates whether any test configuration can be configured"))
|
|
59
59
|
}));
|
|
60
60
|
TestingContextKeys.supportsContinuousRun = ( new RawContextKey("testing.supportsContinuousRun", false, {
|
|
61
61
|
type: "boolean",
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(14144, "Indicates whether continous test running is supported"))
|
|
63
63
|
}));
|
|
64
64
|
TestingContextKeys.isParentRunningContinuously = ( new RawContextKey("testing.isParentRunningContinuously", false, {
|
|
65
65
|
type: "boolean",
|
|
66
66
|
description: ( localize(
|
|
67
|
-
|
|
67
|
+
14145,
|
|
68
68
|
"Indicates whether the parent of a test is continuously running, set in the menu context of test items"
|
|
69
69
|
))
|
|
70
70
|
}));
|
|
71
71
|
TestingContextKeys.activeEditorHasTests = ( new RawContextKey("testing.activeEditorHasTests", false, {
|
|
72
72
|
type: "boolean",
|
|
73
|
-
description: ( localize(
|
|
73
|
+
description: ( localize(14146, "Indicates whether any tests are present in the current editor"))
|
|
74
74
|
}));
|
|
75
75
|
TestingContextKeys.cursorInsideTestRange = ( new RawContextKey("testing.cursorInsideTestRange", false, {
|
|
76
76
|
type: "boolean",
|
|
77
|
-
description: ( localize(
|
|
77
|
+
description: ( localize(14147, "Whether the cursor is currently inside a test range"))
|
|
78
78
|
}));
|
|
79
79
|
TestingContextKeys.isTestCoverageOpen = ( new RawContextKey("testing.isTestCoverageOpen", false, {
|
|
80
80
|
type: "boolean",
|
|
81
|
-
description: ( localize(
|
|
81
|
+
description: ( localize(14148, "Indicates whether a test coverage report is open"))
|
|
82
82
|
}));
|
|
83
83
|
TestingContextKeys.hasCoverageInFile = ( new RawContextKey("testing.hasCoverageInFile", false, {
|
|
84
84
|
type: "boolean",
|
|
85
|
-
description: ( localize(
|
|
85
|
+
description: ( localize(14149, "Indicates coverage has been reported in the curent editor."))
|
|
86
86
|
}));
|
|
87
87
|
TestingContextKeys.hasPerTestCoverage = ( new RawContextKey("testing.hasPerTestCoverage", false, {
|
|
88
88
|
type: "boolean",
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(14150, "Indicates whether per-test coverage is available"))
|
|
90
90
|
}));
|
|
91
91
|
TestingContextKeys.hasInlineCoverageDetails = ( new RawContextKey("testing.hasInlineCoverageDetails", false, {
|
|
92
92
|
type: "boolean",
|
|
93
93
|
description: ( localize(
|
|
94
|
-
|
|
94
|
+
14151,
|
|
95
95
|
"Indicates whether detailed per-line coverage is available for inline display"
|
|
96
96
|
))
|
|
97
97
|
}));
|
|
98
98
|
TestingContextKeys.isCoverageFilteredToTest = ( new RawContextKey("testing.isCoverageFilteredToTest", false, {
|
|
99
99
|
type: "boolean",
|
|
100
|
-
description: ( localize(
|
|
100
|
+
description: ( localize(14152, "Indicates whether coverage has been filterd to a single test"))
|
|
101
101
|
}));
|
|
102
102
|
TestingContextKeys.coverageToolbarEnabled = ( new RawContextKey("testing.coverageToolbarEnabled", true, {
|
|
103
103
|
type: "boolean",
|
|
104
|
-
description: ( localize(
|
|
104
|
+
description: ( localize(14153, "Indicates whether the coverage toolbar is enabled"))
|
|
105
105
|
}));
|
|
106
106
|
TestingContextKeys.inlineCoverageEnabled = ( new RawContextKey("testing.inlineCoverageEnabled", false, {
|
|
107
107
|
type: "boolean",
|
|
108
|
-
description: ( localize(
|
|
108
|
+
description: ( localize(14154, "Indicates whether inline coverage is shown"))
|
|
109
109
|
}));
|
|
110
110
|
TestingContextKeys.canGoToRelatedCode = ( new RawContextKey("testing.canGoToRelatedCode", false, {
|
|
111
111
|
type: "boolean",
|
|
112
112
|
description: ( localize(
|
|
113
|
-
|
|
113
|
+
14155,
|
|
114
114
|
"Whether a controller implements a capability to find code related to a test"
|
|
115
115
|
))
|
|
116
116
|
}));
|
|
117
117
|
TestingContextKeys.canGoToRelatedTest = ( new RawContextKey("testing.canGoToRelatedTest", false, {
|
|
118
118
|
type: "boolean",
|
|
119
119
|
description: ( localize(
|
|
120
|
-
|
|
120
|
+
14156,
|
|
121
121
|
"Whether a controller implements a capability to find tests related to code"
|
|
122
122
|
))
|
|
123
123
|
}));
|
|
124
124
|
TestingContextKeys.peekHasStack = ( new RawContextKey("testing.peekHasStack", false, {
|
|
125
125
|
type: "boolean",
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(14157, "Whether the message shown in a peek view has a stack trace"))
|
|
127
127
|
}));
|
|
128
128
|
TestingContextKeys.capabilityToContextKey = {
|
|
129
129
|
[TestRunProfileBitset.Run]: TestingContextKeys.hasRunnableTests,
|
|
@@ -142,54 +142,54 @@ var TestingContextKeys;
|
|
|
142
142
|
TestingContextKeys.peekItemType = ( new RawContextKey("peekItemType", undefined, {
|
|
143
143
|
type: "string",
|
|
144
144
|
description: ( localize(
|
|
145
|
-
|
|
145
|
+
14158,
|
|
146
146
|
"Type of the item in the output peek view. Either a \"test\", \"message\", \"task\", or \"result\"."
|
|
147
147
|
))
|
|
148
148
|
}));
|
|
149
149
|
TestingContextKeys.controllerId = ( new RawContextKey("controllerId", undefined, {
|
|
150
150
|
type: "string",
|
|
151
|
-
description: ( localize(
|
|
151
|
+
description: ( localize(14159, "Controller ID of the current test item"))
|
|
152
152
|
}));
|
|
153
153
|
TestingContextKeys.testItemExtId = ( new RawContextKey("testId", undefined, {
|
|
154
154
|
type: "string",
|
|
155
155
|
description: ( localize(
|
|
156
|
-
|
|
156
|
+
14160,
|
|
157
157
|
"ID of the current test item, set when creating or opening menus on test items"
|
|
158
158
|
))
|
|
159
159
|
}));
|
|
160
160
|
TestingContextKeys.testItemHasUri = ( new RawContextKey("testing.testItemHasUri", false, {
|
|
161
161
|
type: "boolean",
|
|
162
|
-
description: ( localize(
|
|
162
|
+
description: ( localize(14161, "Boolean indicating whether the test item has a URI defined"))
|
|
163
163
|
}));
|
|
164
164
|
TestingContextKeys.testItemIsHidden = ( new RawContextKey("testing.testItemIsHidden", false, {
|
|
165
165
|
type: "boolean",
|
|
166
|
-
description: ( localize(
|
|
166
|
+
description: ( localize(14162, "Boolean indicating whether the test item is hidden"))
|
|
167
167
|
}));
|
|
168
168
|
TestingContextKeys.testMessageContext = ( new RawContextKey("testMessage", undefined, {
|
|
169
169
|
type: "string",
|
|
170
170
|
description: ( localize(
|
|
171
|
-
|
|
171
|
+
14163,
|
|
172
172
|
"Value set in `testMessage.contextValue`, available in editor/content and testing/message/context"
|
|
173
173
|
))
|
|
174
174
|
}));
|
|
175
175
|
TestingContextKeys.testResultOutdated = ( new RawContextKey("testResultOutdated", undefined, {
|
|
176
176
|
type: "boolean",
|
|
177
177
|
description: ( localize(
|
|
178
|
-
|
|
178
|
+
14164,
|
|
179
179
|
"Value available in editor/content and testing/message/context when the result is outdated"
|
|
180
180
|
))
|
|
181
181
|
}));
|
|
182
182
|
TestingContextKeys.testResultState = ( new RawContextKey("testResultState", undefined, {
|
|
183
183
|
type: "string",
|
|
184
184
|
description: ( localize(
|
|
185
|
-
|
|
185
|
+
14165,
|
|
186
186
|
"Value available testing/item/result indicating the state of the item."
|
|
187
187
|
))
|
|
188
188
|
}));
|
|
189
189
|
TestingContextKeys.testProfileContextGroup = ( new RawContextKey("testing.profile.context.group", undefined, {
|
|
190
190
|
type: "string",
|
|
191
191
|
description: ( localize(
|
|
192
|
-
|
|
192
|
+
14166,
|
|
193
193
|
"Type of menu where the configure testing profile submenu exists. Either \"run\", \"debug\", or \"coverage\""
|
|
194
194
|
))
|
|
195
195
|
}));
|
|
@@ -25,7 +25,7 @@ let TestingContinuousRunService = class TestingContinuousRunService extends Disp
|
|
|
25
25
|
super();
|
|
26
26
|
this.testService = testService;
|
|
27
27
|
this.testProfileService = testProfileService;
|
|
28
|
-
this.changeEmitter = ( new Emitter());
|
|
28
|
+
this.changeEmitter = this._register(( new Emitter()));
|
|
29
29
|
this.running = ( new WellDefinedPrefixTree());
|
|
30
30
|
this.onDidChange = this.changeEmitter.event;
|
|
31
31
|
const isGloballyOn = TestingContextKeys.isContinuousModeOn.bindTo(contextKeyService);
|
|
@@ -43,10 +43,10 @@ const getTestProgressText = (
|
|
|
43
43
|
}
|
|
44
44
|
if (isRunning) {
|
|
45
45
|
if (runSoFar === 0) {
|
|
46
|
-
return localize(
|
|
46
|
+
return localize(14167, "Running tests...");
|
|
47
47
|
} else if (skipped === 0) {
|
|
48
48
|
return localize(
|
|
49
|
-
|
|
49
|
+
14168,
|
|
50
50
|
"Running tests, {0}/{1} passed ({2}%)",
|
|
51
51
|
passed,
|
|
52
52
|
totalWillBeRun,
|
|
@@ -54,7 +54,7 @@ const getTestProgressText = (
|
|
|
54
54
|
);
|
|
55
55
|
} else {
|
|
56
56
|
return localize(
|
|
57
|
-
|
|
57
|
+
14169,
|
|
58
58
|
"Running tests, {0}/{1} tests passed ({2}%, {3} skipped)",
|
|
59
59
|
passed,
|
|
60
60
|
totalWillBeRun,
|
|
@@ -65,7 +65,7 @@ const getTestProgressText = (
|
|
|
65
65
|
} else {
|
|
66
66
|
if (skipped === 0) {
|
|
67
67
|
return localize(
|
|
68
|
-
|
|
68
|
+
14170,
|
|
69
69
|
"{0}/{1} tests passed ({2}%)",
|
|
70
70
|
passed,
|
|
71
71
|
runSoFar,
|
|
@@ -73,7 +73,7 @@ const getTestProgressText = (
|
|
|
73
73
|
);
|
|
74
74
|
} else {
|
|
75
75
|
return localize(
|
|
76
|
-
|
|
76
|
+
14171,
|
|
77
77
|
"{0}/{1} tests passed ({2}%, {3} skipped)",
|
|
78
78
|
passed,
|
|
79
79
|
runSoFar,
|