@codingame/monaco-vscode-rollup-vsix-plugin 3.2.2 → 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 +4 -4
- package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +261 -0
- package/vscode-dts/vscode.proposed.authLearnMore.d.ts +16 -0
- package/vscode-dts/vscode.proposed.chatParticipant.d.ts +49 -78
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +13 -16
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +1 -1
- package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +32 -0
- package/vscode-dts/vscode.proposed.commentingRangeHint.d.ts +16 -0
- package/vscode-dts/vscode.proposed.contribCommentsViewThreadMenus.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribDiffEditorGutterToolBarMenus.d.ts +6 -0
- package/vscode-dts/vscode.proposed.debugFocus.d.ts +15 -23
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +10 -0
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +115 -30
- package/vscode-dts/vscode.proposed.dropMetadata.d.ts +19 -14
- package/vscode-dts/vscode.proposed.fileComments.d.ts +2 -4
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +18 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +0 -16
- package/vscode-dts/vscode.proposed.languageModels.d.ts +115 -53
- package/vscode-dts/vscode.proposed.notebookCellExecution.d.ts +44 -0
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +3 -0
- package/vscode-dts/vscode.proposed.tabInputMultiDiff.d.ts +22 -0
- package/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts +2 -0
- package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +207 -0
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +0 -222
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
// https://github.com/microsoft/vscode/issues/123713
|
|
9
|
-
|
|
10
|
-
export interface TestRun {
|
|
11
|
-
/**
|
|
12
|
-
* Test coverage provider for this result. An extension can defer setting
|
|
13
|
-
* this until after a run is complete and coverage is available.
|
|
14
|
-
*/
|
|
15
|
-
coverageProvider?: TestCoverageProvider;
|
|
16
|
-
// ...
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Provides information about test coverage for a test result.
|
|
21
|
-
* Methods on the provider will not be called until the test run is complete
|
|
22
|
-
*/
|
|
23
|
-
export interface TestCoverageProvider<T extends FileCoverage = FileCoverage> {
|
|
24
|
-
/**
|
|
25
|
-
* Returns coverage information for all files involved in the test run.
|
|
26
|
-
* @param token A cancellation token.
|
|
27
|
-
* @return Coverage metadata for all files involved in the test.
|
|
28
|
-
*/
|
|
29
|
-
// @API - pass something into the provide method:
|
|
30
|
-
// (1) have TestController#coverageProvider: TestCoverageProvider
|
|
31
|
-
// (2) pass TestRun into this method
|
|
32
|
-
provideFileCoverage(token: CancellationToken): ProviderResult<T[]>;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Give a FileCoverage to fill in more data, namely {@link FileCoverage.detailedCoverage}.
|
|
36
|
-
* The editor will only resolve a FileCoverage once, and only if detailedCoverage
|
|
37
|
-
* is undefined.
|
|
38
|
-
*
|
|
39
|
-
* @param coverage A coverage object obtained from {@link provideFileCoverage}
|
|
40
|
-
* @param token A cancellation token.
|
|
41
|
-
* @return The resolved file coverage, or a thenable that resolves to one. It
|
|
42
|
-
* is OK to return the given `coverage`. When no result is returned, the
|
|
43
|
-
* given `coverage` will be used.
|
|
44
|
-
*/
|
|
45
|
-
resolveFileCoverage?(coverage: T, token: CancellationToken): ProviderResult<T>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* A class that contains information about a covered resource. A count can
|
|
50
|
-
* be give for lines, branches, and declarations in a file.
|
|
51
|
-
*/
|
|
52
|
-
export class CoveredCount {
|
|
53
|
-
/**
|
|
54
|
-
* Number of items covered in the file.
|
|
55
|
-
*/
|
|
56
|
-
covered: number;
|
|
57
|
-
/**
|
|
58
|
-
* Total number of covered items in the file.
|
|
59
|
-
*/
|
|
60
|
-
total: number;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @param covered Value for {@link CovereredCount.covered}
|
|
64
|
-
* @param total Value for {@link CovereredCount.total}
|
|
65
|
-
*/
|
|
66
|
-
constructor(covered: number, total: number);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Contains coverage metadata for a file.
|
|
71
|
-
*/
|
|
72
|
-
export class FileCoverage {
|
|
73
|
-
/**
|
|
74
|
-
* File URI.
|
|
75
|
-
*/
|
|
76
|
-
readonly uri: Uri;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Statement coverage information. If the reporter does not provide statement
|
|
80
|
-
* coverage information, this can instead be used to represent line coverage.
|
|
81
|
-
*/
|
|
82
|
-
statementCoverage: CoveredCount;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Branch coverage information.
|
|
86
|
-
*/
|
|
87
|
-
branchCoverage?: CoveredCount;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Declaration coverage information. Depending on the reporter and
|
|
91
|
-
* language, this may be types such as functions, methods, or namespaces.
|
|
92
|
-
*/
|
|
93
|
-
declarationCoverage?: CoveredCount;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Detailed, per-statement coverage. If this is undefined, the editor will
|
|
97
|
-
* call {@link TestCoverageProvider.resolveFileCoverage} when necessary.
|
|
98
|
-
*/
|
|
99
|
-
detailedCoverage?: DetailedCoverage[];
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Creates a {@link FileCoverage} instance with counts filled in from
|
|
103
|
-
* the coverage details.
|
|
104
|
-
* @param uri Covered file URI
|
|
105
|
-
* @param detailed Detailed coverage information
|
|
106
|
-
*/
|
|
107
|
-
static fromDetails(uri: Uri, details: readonly DetailedCoverage[]): FileCoverage;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @param uri Covered file URI
|
|
111
|
-
* @param statementCoverage Statement coverage information. If the reporter
|
|
112
|
-
* does not provide statement coverage information, this can instead be
|
|
113
|
-
* used to represent line coverage.
|
|
114
|
-
* @param branchCoverage Branch coverage information
|
|
115
|
-
* @param declarationCoverage Declaration coverage information
|
|
116
|
-
*/
|
|
117
|
-
constructor(
|
|
118
|
-
uri: Uri,
|
|
119
|
-
statementCoverage: CoveredCount,
|
|
120
|
-
branchCoverage?: CoveredCount,
|
|
121
|
-
declarationCoverage?: CoveredCount,
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Contains coverage information for a single statement or line.
|
|
127
|
-
*/
|
|
128
|
-
export class StatementCoverage {
|
|
129
|
-
/**
|
|
130
|
-
* The number of times this statement was executed, or a boolean indicating
|
|
131
|
-
* whether it was executed if the exact count is unknown. If zero or false,
|
|
132
|
-
* the statement will be marked as un-covered.
|
|
133
|
-
*/
|
|
134
|
-
executed: number | boolean;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Statement location.
|
|
138
|
-
*/
|
|
139
|
-
location: Position | Range;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Coverage from branches of this line or statement. If it's not a
|
|
143
|
-
* conditional, this will be empty.
|
|
144
|
-
*/
|
|
145
|
-
branches: BranchCoverage[];
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* @param location The statement position.
|
|
149
|
-
* @param executed The number of times this statement was executed, or a
|
|
150
|
-
* boolean indicating whether it was executed if the exact count is
|
|
151
|
-
* unknown. If zero or false, the statement will be marked as un-covered.
|
|
152
|
-
* @param branches Coverage from branches of this line. If it's not a
|
|
153
|
-
* conditional, this should be omitted.
|
|
154
|
-
*/
|
|
155
|
-
constructor(executed: number | boolean, location: Position | Range, branches?: BranchCoverage[]);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Contains coverage information for a branch of a {@link StatementCoverage}.
|
|
160
|
-
*/
|
|
161
|
-
export class BranchCoverage {
|
|
162
|
-
/**
|
|
163
|
-
* The number of times this branch was executed, or a boolean indicating
|
|
164
|
-
* whether it was executed if the exact count is unknown. If zero or false,
|
|
165
|
-
* the branch will be marked as un-covered.
|
|
166
|
-
*/
|
|
167
|
-
executed: number | boolean;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Branch location.
|
|
171
|
-
*/
|
|
172
|
-
location?: Position | Range;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Label for the branch, used in the context of "the ${label} branch was
|
|
176
|
-
* not taken," for example.
|
|
177
|
-
*/
|
|
178
|
-
label?: string;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* @param executed The number of times this branch was executed, or a
|
|
182
|
-
* boolean indicating whether it was executed if the exact count is
|
|
183
|
-
* unknown. If zero or false, the branch will be marked as un-covered.
|
|
184
|
-
* @param location The branch position.
|
|
185
|
-
*/
|
|
186
|
-
constructor(executed: number | boolean, location?: Position | Range, label?: string);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Contains coverage information for a declaration. Depending on the reporter
|
|
191
|
-
* and language, this may be types such as functions, methods, or namespaces.
|
|
192
|
-
*/
|
|
193
|
-
export class DeclarationCoverage {
|
|
194
|
-
/**
|
|
195
|
-
* Name of the declaration.
|
|
196
|
-
*/
|
|
197
|
-
name: string;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* The number of times this declaration was executed, or a boolean
|
|
201
|
-
* indicating whether it was executed if the exact count is unknown. If
|
|
202
|
-
* zero or false, the declaration will be marked as un-covered.
|
|
203
|
-
*/
|
|
204
|
-
executed: number | boolean;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Declaration location.
|
|
208
|
-
*/
|
|
209
|
-
location: Position | Range;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* @param executed The number of times this declaration was executed, or a
|
|
213
|
-
* boolean indicating whether it was executed if the exact count is
|
|
214
|
-
* unknown. If zero or false, the declaration will be marked as un-covered.
|
|
215
|
-
* @param location The declaration position.
|
|
216
|
-
*/
|
|
217
|
-
constructor(name: string, executed: number | boolean, location: Position | Range);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export type DetailedCoverage = StatementCoverage | DeclarationCoverage;
|
|
221
|
-
|
|
222
|
-
}
|