Skip to content

Commit

Permalink
feat: update proposed API MappedEditProviders
Browse files Browse the repository at this point in the history
fix: eclipse-theia#14451

contributed on behalf of STMicroelectronics

Signed-off-by: Remi Schnekenburger <[email protected]>
  • Loading branch information
rschnekenbu committed Nov 14, 2024
1 parent d769658 commit 0ba7f66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/plugin/src/theia.proposed.mappedEditsProvider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export module '@theia/plugin' {
export interface ConversationResponse {
readonly type: 'response';
readonly message: string;
readonly result?: ChatResult;
readonly references?: DocumentContextItem[];
}

Expand Down Expand Up @@ -69,7 +70,7 @@ export module '@theia/plugin' {
}

export interface MappedEditsRequest {
readonly codeBlocks: { code: string; resource: Uri }[];
readonly codeBlocks: { code: string; resource: Uri; markdownBeforeBlock?: string }[];
// for every prior response that contains codeblocks, make sure we pass the code as well as the resources based on the reported codemapper URIs
readonly conversation: (ConversationRequest | ConversationResponse)[];
}
Expand Down

0 comments on commit 0ba7f66

Please sign in to comment.