@theia/plugin 1.57.0-next.7 → 1.57.1
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/README.md +18 -8
- package/package.json +3 -3
- package/src/theia.d.ts +69 -57
- package/src/theia.proposed.mappedEditsProvider.d.ts +2 -2
package/README.md
CHANGED
|
@@ -192,6 +192,7 @@ Simple example that show a status bar message with statusBarItem:
|
|
|
192
192
|
item.text = 'test status bar item';
|
|
193
193
|
item.show();
|
|
194
194
|
```
|
|
195
|
+
|
|
195
196
|
#### Output channel API
|
|
196
197
|
|
|
197
198
|
It is possible to show a container for readonly textual information:
|
|
@@ -241,9 +242,10 @@ const terminal = theia.window.createTerminal("Bash terminal", "/bin/bash", ["-l"
|
|
|
241
242
|
```
|
|
242
243
|
|
|
243
244
|
Where are:
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
|
|
246
|
+
- first argument - terminal's name.
|
|
247
|
+
- second argument - path to the executable shell.
|
|
248
|
+
- third argument - arguments to configure executable shell.
|
|
247
249
|
|
|
248
250
|
You can create terminal with specific options:
|
|
249
251
|
|
|
@@ -258,10 +260,11 @@ const options: theia.TerminalOptions {
|
|
|
258
260
|
```
|
|
259
261
|
|
|
260
262
|
Where are:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
- "
|
|
264
|
-
|
|
263
|
+
|
|
264
|
+
- "shellPath" - path to the executable shell, for example "/bin/bash", "bash", "sh" or so on.
|
|
265
|
+
- "shellArgs" - shell command arguments, for example without login: "-l". If you defined shell command "/bin/bash" and set up shell arguments "-l" than will be created terminal process with command "/bin/bash -l". And client side will connect to stdin/stdout of this process to interaction with user.
|
|
266
|
+
- "cwd" - current working directory;
|
|
267
|
+
- "env"- environment variables for terminal process, for example TERM - identifier terminal window capabilities.
|
|
265
268
|
|
|
266
269
|
Function to create new terminal with defined theia.TerminalOptions described above:
|
|
267
270
|
|
|
@@ -288,6 +291,7 @@ terminal.sendText("Hello, Theia!", false);
|
|
|
288
291
|
```
|
|
289
292
|
|
|
290
293
|
Where are:
|
|
294
|
+
|
|
291
295
|
- first argument - text content.
|
|
292
296
|
- second argument - in case true, terminal will apply new line after the text, otherwise will send only the text.
|
|
293
297
|
|
|
@@ -323,6 +327,7 @@ terminal.processId.then(id => {
|
|
|
323
327
|
Preference API allows one to read or update User's and Workspace's preferences.
|
|
324
328
|
|
|
325
329
|
To get preferences:
|
|
330
|
+
|
|
326
331
|
```typescript
|
|
327
332
|
// editor preferences
|
|
328
333
|
const preferences = theia.workspace.getConfiguration('editor');
|
|
@@ -332,6 +337,7 @@ const fontSize = preferences.get('tabSize');
|
|
|
332
337
|
```
|
|
333
338
|
|
|
334
339
|
To change preference:
|
|
340
|
+
|
|
335
341
|
```typescript
|
|
336
342
|
preferences.onDidChangeConfiguration(e => {
|
|
337
343
|
if (e.affectsConfiguration('editor.tabSize')) {
|
|
@@ -353,6 +359,7 @@ const diagnostics = theia.languages.getDiagnostics(uriToResource)
|
|
|
353
359
|
```
|
|
354
360
|
|
|
355
361
|
To get all diagnostics use:
|
|
362
|
+
|
|
356
363
|
```typescript
|
|
357
364
|
const diagnostics = theia.languages.getDiagnostics()
|
|
358
365
|
```
|
|
@@ -424,6 +431,7 @@ diagnosticsCollection.forEach((uri, diagnostics) => {
|
|
|
424
431
|
#### Signature help
|
|
425
432
|
|
|
426
433
|
To provide signature help form plugin it is required to register provider. For registration 3 items are needed:
|
|
434
|
+
|
|
427
435
|
- Documents selector to describe for which files it should be applied
|
|
428
436
|
- Handler which will do the work
|
|
429
437
|
- Trigger characters after typing of which the handler should be invoked. Often symbols `(` and `,` are used.
|
|
@@ -474,6 +482,7 @@ Example of signature information:
|
|
|
474
482
|
```
|
|
475
483
|
|
|
476
484
|
Note, that:
|
|
485
|
+
|
|
477
486
|
- `activeSignature` and `activeParameter` are zero based.
|
|
478
487
|
- label is usually full method signature.
|
|
479
488
|
- for documentation fields markdown partially supported (Tags aren't supported).
|
|
@@ -762,5 +771,6 @@ function provideRanges(document: theia.TextDocument): theia.ProviderResult<theia
|
|
|
762
771
|
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
763
772
|
|
|
764
773
|
## Trademark
|
|
774
|
+
|
|
765
775
|
"Theia" is a trademark of the Eclipse Foundation
|
|
766
|
-
https://www.eclipse.org/theia
|
|
776
|
+
<https://www.eclipse.org/theia>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.57.
|
|
3
|
+
"version": "1.57.1",
|
|
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.1"
|
|
31
31
|
},
|
|
32
32
|
"nyc": {
|
|
33
33
|
"extends": "../../configs/nyc.json"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "6e84ac8d37bbeb45f999894e80cb92a761c1ee1e"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -2163,7 +2163,7 @@ export module '@theia/plugin' {
|
|
|
2163
2163
|
/**
|
|
2164
2164
|
* The icon path or {@link ThemeIcon} for the QuickPickItem.
|
|
2165
2165
|
*/
|
|
2166
|
-
iconPath?:
|
|
2166
|
+
iconPath?: IconPath;
|
|
2167
2167
|
|
|
2168
2168
|
/**
|
|
2169
2169
|
* A human-readable string which is rendered less prominent in the same line. Supports rendering of
|
|
@@ -2740,6 +2740,21 @@ export module '@theia/plugin' {
|
|
|
2740
2740
|
private constructor(id: string, color?: ThemeColor);
|
|
2741
2741
|
}
|
|
2742
2742
|
|
|
2743
|
+
/**
|
|
2744
|
+
* Represents an icon in the UI. This is either an uri, separate uris for the light- and dark-themes,
|
|
2745
|
+
* or a {@link ThemeIcon theme icon}.
|
|
2746
|
+
*/
|
|
2747
|
+
export type IconPath = Uri | {
|
|
2748
|
+
/**
|
|
2749
|
+
* The icon path for the light theme.
|
|
2750
|
+
*/
|
|
2751
|
+
light: Uri;
|
|
2752
|
+
/**
|
|
2753
|
+
* The icon path for the dark theme.
|
|
2754
|
+
*/
|
|
2755
|
+
dark: Uri;
|
|
2756
|
+
} | ThemeIcon;
|
|
2757
|
+
|
|
2743
2758
|
/**
|
|
2744
2759
|
* Represents the state of a window.
|
|
2745
2760
|
*/
|
|
@@ -3520,7 +3535,7 @@ export module '@theia/plugin' {
|
|
|
3520
3535
|
/**
|
|
3521
3536
|
* The icon path or {@link ThemeIcon} for the terminal.
|
|
3522
3537
|
*/
|
|
3523
|
-
iconPath?:
|
|
3538
|
+
iconPath?: IconPath;
|
|
3524
3539
|
|
|
3525
3540
|
/**
|
|
3526
3541
|
* The icon {@link ThemeColor} for the terminal.
|
|
@@ -3640,7 +3655,7 @@ export module '@theia/plugin' {
|
|
|
3640
3655
|
/**
|
|
3641
3656
|
* The icon path or {@link ThemeIcon} for the terminal.
|
|
3642
3657
|
*/
|
|
3643
|
-
iconPath?:
|
|
3658
|
+
iconPath?: IconPath;
|
|
3644
3659
|
|
|
3645
3660
|
/**
|
|
3646
3661
|
* The icon {@link ThemeColor} for the terminal.
|
|
@@ -6227,7 +6242,7 @@ export module '@theia/plugin' {
|
|
|
6227
6242
|
/**
|
|
6228
6243
|
* Icon for the button.
|
|
6229
6244
|
*/
|
|
6230
|
-
readonly iconPath:
|
|
6245
|
+
readonly iconPath: IconPath;
|
|
6231
6246
|
|
|
6232
6247
|
/**
|
|
6233
6248
|
* An optional tooltip.
|
|
@@ -6841,7 +6856,7 @@ export module '@theia/plugin' {
|
|
|
6841
6856
|
* When `falsy`, {@link ThemeIcon.Folder Folder Theme Icon} is assigned, if item is collapsible otherwise {@link ThemeIcon.File File Theme Icon}.
|
|
6842
6857
|
* When a {@link ThemeIcon ThemeIcon} is specified, icon is derived from the current file icon theme for the specified theme icon using {@link TreeItem.resourceUri resourceUri} (if provided).
|
|
6843
6858
|
*/
|
|
6844
|
-
iconPath?: string |
|
|
6859
|
+
iconPath?: string | IconPath;
|
|
6845
6860
|
|
|
6846
6861
|
/**
|
|
6847
6862
|
* A human readable string which is rendered less prominent.
|
|
@@ -10290,7 +10305,7 @@ export module '@theia/plugin' {
|
|
|
10290
10305
|
* @return An array of commands, quick fixes, or refactorings or a thenable of such. The lack of a result can be
|
|
10291
10306
|
* signaled by returning `undefined`, `null`, or an empty array.
|
|
10292
10307
|
*/
|
|
10293
|
-
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>>;
|
|
10294
10309
|
|
|
10295
10310
|
/**
|
|
10296
10311
|
* Given a code action fill in its `edit`-property. Changes to
|
|
@@ -10612,7 +10627,7 @@ export module '@theia/plugin' {
|
|
|
10612
10627
|
/**
|
|
10613
10628
|
* The icon path or {@link ThemeIcon ThemeIcon} for the edit.
|
|
10614
10629
|
*/
|
|
10615
|
-
iconPath?:
|
|
10630
|
+
iconPath?: IconPath;
|
|
10616
10631
|
}
|
|
10617
10632
|
|
|
10618
10633
|
/**
|
|
@@ -13165,7 +13180,7 @@ export module '@theia/plugin' {
|
|
|
13165
13180
|
* @param args The command arguments.
|
|
13166
13181
|
* @param options Optional options for the started the shell.
|
|
13167
13182
|
*/
|
|
13168
|
-
constructor(command: string | ShellQuotedString, args:
|
|
13183
|
+
constructor(command: string | ShellQuotedString, args: Array<string | ShellQuotedString>, options?: ShellExecutionOptions);
|
|
13169
13184
|
|
|
13170
13185
|
/**
|
|
13171
13186
|
* The shell command line. Is `undefined` if created with a command and arguments.
|
|
@@ -16547,6 +16562,30 @@ export module '@theia/plugin' {
|
|
|
16547
16562
|
*/
|
|
16548
16563
|
loadDetailedCoverage?: (testRun: TestRun, fileCoverage: FileCoverage, token: CancellationToken) => Thenable<FileCoverageDetail[]>;
|
|
16549
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
|
+
|
|
16550
16589
|
/**
|
|
16551
16590
|
* Deletes the run profile.
|
|
16552
16591
|
*/
|
|
@@ -17141,6 +17180,13 @@ export module '@theia/plugin' {
|
|
|
17141
17180
|
*/
|
|
17142
17181
|
declarationCoverage?: TestCoverageCount;
|
|
17143
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
|
+
|
|
17144
17190
|
/**
|
|
17145
17191
|
* Creates a {@link FileCoverage} instance with counts filled in from
|
|
17146
17192
|
* the coverage details.
|
|
@@ -17156,12 +17202,14 @@ export module '@theia/plugin' {
|
|
|
17156
17202
|
* used to represent line coverage.
|
|
17157
17203
|
* @param branchCoverage Branch coverage information
|
|
17158
17204
|
* @param declarationCoverage Declaration coverage information
|
|
17205
|
+
* @param includesTests Test cases included in this coverage report, see {@link includesTests}
|
|
17159
17206
|
*/
|
|
17160
17207
|
constructor(
|
|
17161
17208
|
uri: Uri,
|
|
17162
17209
|
statementCoverage: TestCoverageCount,
|
|
17163
17210
|
branchCoverage?: TestCoverageCount,
|
|
17164
17211
|
declarationCoverage?: TestCoverageCount,
|
|
17212
|
+
includesTests?: TestItem[],
|
|
17165
17213
|
);
|
|
17166
17214
|
}
|
|
17167
17215
|
|
|
@@ -17473,16 +17521,7 @@ export module '@theia/plugin' {
|
|
|
17473
17521
|
/**
|
|
17474
17522
|
* An icon for the participant shown in UI.
|
|
17475
17523
|
*/
|
|
17476
|
-
iconPath?:
|
|
17477
|
-
/**
|
|
17478
|
-
* The icon path for the light theme.
|
|
17479
|
-
*/
|
|
17480
|
-
light: Uri;
|
|
17481
|
-
/**
|
|
17482
|
-
* The icon path for the dark theme.
|
|
17483
|
-
*/
|
|
17484
|
-
dark: Uri;
|
|
17485
|
-
} | ThemeIcon;
|
|
17524
|
+
iconPath?: IconPath;
|
|
17486
17525
|
|
|
17487
17526
|
/**
|
|
17488
17527
|
* The handler for requests to this participant.
|
|
@@ -17652,16 +17691,7 @@ export module '@theia/plugin' {
|
|
|
17652
17691
|
* @param value A uri or location
|
|
17653
17692
|
* @param iconPath Icon for the reference shown in UI
|
|
17654
17693
|
*/
|
|
17655
|
-
reference(value: Uri | Location, iconPath?:
|
|
17656
|
-
/**
|
|
17657
|
-
* The icon path for the light theme.
|
|
17658
|
-
*/
|
|
17659
|
-
light: Uri;
|
|
17660
|
-
/**
|
|
17661
|
-
* The icon path for the dark theme.
|
|
17662
|
-
*/
|
|
17663
|
-
dark: Uri;
|
|
17664
|
-
}): void;
|
|
17694
|
+
reference(value: Uri | Location, iconPath?: IconPath): void;
|
|
17665
17695
|
|
|
17666
17696
|
/**
|
|
17667
17697
|
* Pushes a part to this stream.
|
|
@@ -17781,32 +17811,14 @@ export module '@theia/plugin' {
|
|
|
17781
17811
|
/**
|
|
17782
17812
|
* The icon for the reference.
|
|
17783
17813
|
*/
|
|
17784
|
-
iconPath?:
|
|
17785
|
-
/**
|
|
17786
|
-
* The icon path for the light theme.
|
|
17787
|
-
*/
|
|
17788
|
-
light: Uri;
|
|
17789
|
-
/**
|
|
17790
|
-
* The icon path for the dark theme.
|
|
17791
|
-
*/
|
|
17792
|
-
dark: Uri;
|
|
17793
|
-
};
|
|
17814
|
+
iconPath?: IconPath;
|
|
17794
17815
|
|
|
17795
17816
|
/**
|
|
17796
17817
|
* Create a new ChatResponseReferencePart.
|
|
17797
17818
|
* @param value A uri or location
|
|
17798
17819
|
* @param iconPath Icon for the reference shown in UI
|
|
17799
17820
|
*/
|
|
17800
|
-
constructor(value: Uri | Location, iconPath?:
|
|
17801
|
-
/**
|
|
17802
|
-
* The icon path for the light theme.
|
|
17803
|
-
*/
|
|
17804
|
-
light: Uri;
|
|
17805
|
-
/**
|
|
17806
|
-
* The icon path for the dark theme.
|
|
17807
|
-
*/
|
|
17808
|
-
dark: Uri;
|
|
17809
|
-
});
|
|
17821
|
+
constructor(value: Uri | Location, iconPath?: IconPath);
|
|
17810
17822
|
}
|
|
17811
17823
|
|
|
17812
17824
|
/**
|
|
@@ -17876,7 +17888,7 @@ export module '@theia/plugin' {
|
|
|
17876
17888
|
* @param content The content of the message.
|
|
17877
17889
|
* @param name The optional name of a user for the message.
|
|
17878
17890
|
*/
|
|
17879
|
-
static User(content: string |
|
|
17891
|
+
static User(content: string | Array<LanguageModelTextPart | LanguageModelToolResultPart>, name?: string): LanguageModelChatMessage;
|
|
17880
17892
|
|
|
17881
17893
|
/**
|
|
17882
17894
|
* Utility to create a new assistant message.
|
|
@@ -17884,7 +17896,7 @@ export module '@theia/plugin' {
|
|
|
17884
17896
|
* @param content The content of the message.
|
|
17885
17897
|
* @param name The optional name of a user for the message.
|
|
17886
17898
|
*/
|
|
17887
|
-
static Assistant(content: string | (LanguageModelTextPart | LanguageModelToolCallPart)
|
|
17899
|
+
static Assistant(content: string | Array<(LanguageModelTextPart | LanguageModelToolCallPart)>, name?: string): LanguageModelChatMessage;
|
|
17888
17900
|
|
|
17889
17901
|
/**
|
|
17890
17902
|
* The role of this message.
|
|
@@ -17895,7 +17907,7 @@ export module '@theia/plugin' {
|
|
|
17895
17907
|
* A string or heterogeneous array of things that a message can contain as content. Some parts may be message-type
|
|
17896
17908
|
* specific for some models.
|
|
17897
17909
|
*/
|
|
17898
|
-
content: (LanguageModelTextPart | LanguageModelToolResultPart | LanguageModelToolCallPart)
|
|
17910
|
+
content: Array<(LanguageModelTextPart | LanguageModelToolResultPart | LanguageModelToolCallPart)>;
|
|
17899
17911
|
|
|
17900
17912
|
/**
|
|
17901
17913
|
* The optional name of a user for this message.
|
|
@@ -17909,7 +17921,7 @@ export module '@theia/plugin' {
|
|
|
17909
17921
|
* @param content The content of the message.
|
|
17910
17922
|
* @param name The optional name of a user for the message.
|
|
17911
17923
|
*/
|
|
17912
|
-
constructor(role: LanguageModelChatMessageRole, content: string |
|
|
17924
|
+
constructor(role: LanguageModelChatMessageRole, content: string | Array<LanguageModelTextPart | LanguageModelToolResultPart | LanguageModelToolCallPart>, name?: string);
|
|
17913
17925
|
}
|
|
17914
17926
|
|
|
17915
17927
|
/**
|
|
@@ -18340,13 +18352,13 @@ export module '@theia/plugin' {
|
|
|
18340
18352
|
/**
|
|
18341
18353
|
* The value of the tool result.
|
|
18342
18354
|
*/
|
|
18343
|
-
content:
|
|
18355
|
+
content: Array<LanguageModelTextPart | LanguageModelPromptTsxPart | unknown>;
|
|
18344
18356
|
|
|
18345
18357
|
/**
|
|
18346
18358
|
* @param callId The ID of the tool call.
|
|
18347
18359
|
* @param content The content of the tool result.
|
|
18348
18360
|
*/
|
|
18349
|
-
constructor(callId: string, content: (LanguageModelTextPart | LanguageModelPromptTsxPart | unknown)
|
|
18361
|
+
constructor(callId: string, content: Array<(LanguageModelTextPart | LanguageModelPromptTsxPart | unknown)>);
|
|
18350
18362
|
}
|
|
18351
18363
|
|
|
18352
18364
|
/**
|
|
@@ -18394,13 +18406,13 @@ export module '@theia/plugin' {
|
|
|
18394
18406
|
* the future.
|
|
18395
18407
|
* @see {@link lm.invokeTool}.
|
|
18396
18408
|
*/
|
|
18397
|
-
content: (LanguageModelTextPart | LanguageModelPromptTsxPart | unknown)
|
|
18409
|
+
content: Array<(LanguageModelTextPart | LanguageModelPromptTsxPart | unknown)>;
|
|
18398
18410
|
|
|
18399
18411
|
/**
|
|
18400
18412
|
* Create a LanguageModelToolResult
|
|
18401
18413
|
* @param content A list of tool result content parts
|
|
18402
18414
|
*/
|
|
18403
|
-
constructor(content: (LanguageModelTextPart | LanguageModelPromptTsxPart)
|
|
18415
|
+
constructor(content: Array<(LanguageModelTextPart | LanguageModelPromptTsxPart)>);
|
|
18404
18416
|
}
|
|
18405
18417
|
|
|
18406
18418
|
/**
|
|
@@ -18545,7 +18557,7 @@ export module '@theia/plugin' {
|
|
|
18545
18557
|
/**
|
|
18546
18558
|
* A customized progress message to show while the tool runs.
|
|
18547
18559
|
*/
|
|
18548
|
-
invocationMessage?: string;
|
|
18560
|
+
invocationMessage?: string | MarkdownString;
|
|
18549
18561
|
|
|
18550
18562
|
/**
|
|
18551
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 {
|