@theia/plugin 1.57.0-next.22 → 1.57.0-next.37
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.57.0-next.
|
|
3
|
+
"version": "1.57.0-next.37+4e3b183da",
|
|
4
4
|
"description": "Theia - Plugin API",
|
|
5
5
|
"types": "./src/theia.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"watch": "theiaext watch"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@theia/ext-scripts": "1.
|
|
30
|
+
"@theia/ext-scripts": "1.57.0"
|
|
31
31
|
},
|
|
32
32
|
"nyc": {
|
|
33
33
|
"extends": "../../configs/nyc.json"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "4e3b183daab034ae86eaa610421d4d9791ffdaa5"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -10305,7 +10305,7 @@ export module '@theia/plugin' {
|
|
|
10305
10305
|
* @return An array of commands, quick fixes, or refactorings or a thenable of such. The lack of a result can be
|
|
10306
10306
|
* signaled by returning `undefined`, `null`, or an empty array.
|
|
10307
10307
|
*/
|
|
10308
|
-
provideCodeActions(document: TextDocument, range: Range | Selection, context: CodeActionContext, token: CancellationToken): ProviderResult<
|
|
10308
|
+
provideCodeActions(document: TextDocument, range: Range | Selection, context: CodeActionContext, token: CancellationToken): ProviderResult<Array<Command | T>>;
|
|
10309
10309
|
|
|
10310
10310
|
/**
|
|
10311
10311
|
* Given a code action fill in its `edit`-property. Changes to
|
|
@@ -13180,7 +13180,7 @@ export module '@theia/plugin' {
|
|
|
13180
13180
|
* @param args The command arguments.
|
|
13181
13181
|
* @param options Optional options for the started the shell.
|
|
13182
13182
|
*/
|
|
13183
|
-
constructor(command: string | ShellQuotedString, args:
|
|
13183
|
+
constructor(command: string | ShellQuotedString, args: Array<string | ShellQuotedString>, options?: ShellExecutionOptions);
|
|
13184
13184
|
|
|
13185
13185
|
/**
|
|
13186
13186
|
* The shell command line. Is `undefined` if created with a command and arguments.
|
|
@@ -16562,6 +16562,30 @@ export module '@theia/plugin' {
|
|
|
16562
16562
|
*/
|
|
16563
16563
|
loadDetailedCoverage?: (testRun: TestRun, fileCoverage: FileCoverage, token: CancellationToken) => Thenable<FileCoverageDetail[]>;
|
|
16564
16564
|
|
|
16565
|
+
/**
|
|
16566
|
+
* An extension-provided function that provides detailed statement and
|
|
16567
|
+
* function-level coverage for a single test in a file. This is the per-test
|
|
16568
|
+
* sibling of {@link TestRunProfile.loadDetailedCoverage}, called only if
|
|
16569
|
+
* a test item is provided in {@link FileCoverage.includesTests} and only
|
|
16570
|
+
* for files where such data is reported.
|
|
16571
|
+
*
|
|
16572
|
+
* Often {@link TestRunProfile.loadDetailedCoverage} will be called first
|
|
16573
|
+
* when a user opens a file, and then this method will be called if they
|
|
16574
|
+
* drill down into specific per-test coverage information. This method
|
|
16575
|
+
* should then return coverage data only for constructs the given test item
|
|
16576
|
+
* executed during the test run.
|
|
16577
|
+
*
|
|
16578
|
+
* The {@link FileCoverage} object passed to this function is the same
|
|
16579
|
+
* instance emitted on {@link TestRun.addCoverage} calls associated with this profile.
|
|
16580
|
+
*
|
|
16581
|
+
* @param testRun The test run that generated the coverage data.
|
|
16582
|
+
* @param fileCoverage The file coverage object to load detailed coverage for.
|
|
16583
|
+
* @param fromTestItem The test item to request coverage information for.
|
|
16584
|
+
* @param token A cancellation token that indicates the operation should be cancelled.
|
|
16585
|
+
* @stubbed
|
|
16586
|
+
*/
|
|
16587
|
+
loadDetailedCoverageForTest?: (testRun: TestRun, fileCoverage: FileCoverage, fromTestItem: TestItem, token: CancellationToken) => Thenable<FileCoverageDetail[]>;
|
|
16588
|
+
|
|
16565
16589
|
/**
|
|
16566
16590
|
* Deletes the run profile.
|
|
16567
16591
|
*/
|
|
@@ -17156,6 +17180,13 @@ export module '@theia/plugin' {
|
|
|
17156
17180
|
*/
|
|
17157
17181
|
declarationCoverage?: TestCoverageCount;
|
|
17158
17182
|
|
|
17183
|
+
/**
|
|
17184
|
+
* A list of {@link TestItem test cases} that generated coverage in this
|
|
17185
|
+
* file. If set, then {@link TestRunProfile.loadDetailedCoverageForTest}
|
|
17186
|
+
* should also be defined in order to retrieve detailed coverage information.
|
|
17187
|
+
*/
|
|
17188
|
+
includesTests?: TestItem[];
|
|
17189
|
+
|
|
17159
17190
|
/**
|
|
17160
17191
|
* Creates a {@link FileCoverage} instance with counts filled in from
|
|
17161
17192
|
* the coverage details.
|
|
@@ -17171,12 +17202,14 @@ export module '@theia/plugin' {
|
|
|
17171
17202
|
* used to represent line coverage.
|
|
17172
17203
|
* @param branchCoverage Branch coverage information
|
|
17173
17204
|
* @param declarationCoverage Declaration coverage information
|
|
17205
|
+
* @param includesTests Test cases included in this coverage report, see {@link includesTests}
|
|
17174
17206
|
*/
|
|
17175
17207
|
constructor(
|
|
17176
17208
|
uri: Uri,
|
|
17177
17209
|
statementCoverage: TestCoverageCount,
|
|
17178
17210
|
branchCoverage?: TestCoverageCount,
|
|
17179
17211
|
declarationCoverage?: TestCoverageCount,
|
|
17212
|
+
includesTests?: TestItem[],
|
|
17180
17213
|
);
|
|
17181
17214
|
}
|
|
17182
17215
|
|
|
@@ -17855,7 +17888,7 @@ export module '@theia/plugin' {
|
|
|
17855
17888
|
* @param content The content of the message.
|
|
17856
17889
|
* @param name The optional name of a user for the message.
|
|
17857
17890
|
*/
|
|
17858
|
-
static User(content: string |
|
|
17891
|
+
static User(content: string | Array<LanguageModelTextPart | LanguageModelToolResultPart>, name?: string): LanguageModelChatMessage;
|
|
17859
17892
|
|
|
17860
17893
|
/**
|
|
17861
17894
|
* Utility to create a new assistant message.
|
|
@@ -17863,7 +17896,7 @@ export module '@theia/plugin' {
|
|
|
17863
17896
|
* @param content The content of the message.
|
|
17864
17897
|
* @param name The optional name of a user for the message.
|
|
17865
17898
|
*/
|
|
17866
|
-
static Assistant(content: string | (LanguageModelTextPart | LanguageModelToolCallPart)
|
|
17899
|
+
static Assistant(content: string | Array<(LanguageModelTextPart | LanguageModelToolCallPart)>, name?: string): LanguageModelChatMessage;
|
|
17867
17900
|
|
|
17868
17901
|
/**
|
|
17869
17902
|
* The role of this message.
|
|
@@ -17874,7 +17907,7 @@ export module '@theia/plugin' {
|
|
|
17874
17907
|
* A string or heterogeneous array of things that a message can contain as content. Some parts may be message-type
|
|
17875
17908
|
* specific for some models.
|
|
17876
17909
|
*/
|
|
17877
|
-
content: (LanguageModelTextPart | LanguageModelToolResultPart | LanguageModelToolCallPart)
|
|
17910
|
+
content: Array<(LanguageModelTextPart | LanguageModelToolResultPart | LanguageModelToolCallPart)>;
|
|
17878
17911
|
|
|
17879
17912
|
/**
|
|
17880
17913
|
* The optional name of a user for this message.
|
|
@@ -17888,7 +17921,7 @@ export module '@theia/plugin' {
|
|
|
17888
17921
|
* @param content The content of the message.
|
|
17889
17922
|
* @param name The optional name of a user for the message.
|
|
17890
17923
|
*/
|
|
17891
|
-
constructor(role: LanguageModelChatMessageRole, content: string |
|
|
17924
|
+
constructor(role: LanguageModelChatMessageRole, content: string | Array<LanguageModelTextPart | LanguageModelToolResultPart | LanguageModelToolCallPart>, name?: string);
|
|
17892
17925
|
}
|
|
17893
17926
|
|
|
17894
17927
|
/**
|
|
@@ -18319,13 +18352,13 @@ export module '@theia/plugin' {
|
|
|
18319
18352
|
/**
|
|
18320
18353
|
* The value of the tool result.
|
|
18321
18354
|
*/
|
|
18322
|
-
content:
|
|
18355
|
+
content: Array<LanguageModelTextPart | LanguageModelPromptTsxPart | unknown>;
|
|
18323
18356
|
|
|
18324
18357
|
/**
|
|
18325
18358
|
* @param callId The ID of the tool call.
|
|
18326
18359
|
* @param content The content of the tool result.
|
|
18327
18360
|
*/
|
|
18328
|
-
constructor(callId: string, content: (LanguageModelTextPart | LanguageModelPromptTsxPart | unknown)
|
|
18361
|
+
constructor(callId: string, content: Array<(LanguageModelTextPart | LanguageModelPromptTsxPart | unknown)>);
|
|
18329
18362
|
}
|
|
18330
18363
|
|
|
18331
18364
|
/**
|
|
@@ -18373,13 +18406,13 @@ export module '@theia/plugin' {
|
|
|
18373
18406
|
* the future.
|
|
18374
18407
|
* @see {@link lm.invokeTool}.
|
|
18375
18408
|
*/
|
|
18376
|
-
content: (LanguageModelTextPart | LanguageModelPromptTsxPart | unknown)
|
|
18409
|
+
content: Array<(LanguageModelTextPart | LanguageModelPromptTsxPart | unknown)>;
|
|
18377
18410
|
|
|
18378
18411
|
/**
|
|
18379
18412
|
* Create a LanguageModelToolResult
|
|
18380
18413
|
* @param content A list of tool result content parts
|
|
18381
18414
|
*/
|
|
18382
|
-
constructor(content: (LanguageModelTextPart | LanguageModelPromptTsxPart)
|
|
18415
|
+
constructor(content: Array<(LanguageModelTextPart | LanguageModelPromptTsxPart)>);
|
|
18383
18416
|
}
|
|
18384
18417
|
|
|
18385
18418
|
/**
|
|
@@ -18524,7 +18557,7 @@ export module '@theia/plugin' {
|
|
|
18524
18557
|
/**
|
|
18525
18558
|
* A customized progress message to show while the tool runs.
|
|
18526
18559
|
*/
|
|
18527
|
-
invocationMessage?: string;
|
|
18560
|
+
invocationMessage?: string | MarkdownString;
|
|
18528
18561
|
|
|
18529
18562
|
/**
|
|
18530
18563
|
* The presence of this property indicates that the user should be asked to confirm before running the tool. The user
|
|
@@ -45,7 +45,7 @@ export module '@theia/plugin' {
|
|
|
45
45
|
* The conversation that led to the current code block(s).
|
|
46
46
|
* The last conversation part contains the code block(s) for which the code mapper should provide edits.
|
|
47
47
|
*/
|
|
48
|
-
readonly conversation?:
|
|
48
|
+
readonly conversation?: Array<ConversationRequest | ConversationResponse>;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
@@ -72,7 +72,7 @@ export module '@theia/plugin' {
|
|
|
72
72
|
export interface MappedEditsRequest {
|
|
73
73
|
readonly codeBlocks: { code: string; resource: Uri; markdownBeforeBlock?: string }[];
|
|
74
74
|
// for every prior response that contains codeblocks, make sure we pass the code as well as the resources based on the reported codemapper URIs
|
|
75
|
-
readonly conversation:
|
|
75
|
+
readonly conversation: Array<ConversationRequest | ConversationResponse>;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export interface MappedEditsResponseStream {
|