Skip to content

Commit 85780d0

Browse files
authored
Merge pull request microsoft#256400 from mjbvz/concerned-gibbon
Fix uri type in IChatNotebookEditDto
2 parents 347f23b + 94586c6 commit 85780d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/vs/workbench/api/browser/mainThreadChatAgents2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export class MainThreadChatAgents2 extends Disposable implements MainThreadChatA
246246
const [progress, responsePartHandle] = Array.isArray(item) ? item : [item];
247247

248248
const revivedProgress = progress.kind === 'notebookEdit'
249-
? ChatNotebookEdit.fromChatEdit(revive(progress))
249+
? ChatNotebookEdit.fromChatEdit(progress)
250250
: revive(progress) as IChatProgress;
251251

252252
if (revivedProgress.kind === 'notebookEdit'
@@ -427,7 +427,7 @@ namespace ChatNotebookEdit {
427427
export function fromChatEdit(part: IChatNotebookEditDto): IChatNotebookEdit {
428428
return {
429429
kind: 'notebookEdit',
430-
uri: part.uri,
430+
uri: URI.revive(part.uri),
431431
done: part.done,
432432
edits: part.edits.map(NotebookDto.fromCellEditOperationDto)
433433
};

src/vs/workbench/api/common/extHost.protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2176,7 +2176,7 @@ export interface IWorkspaceEditEntryMetadataDto {
21762176
}
21772177

21782178
export interface IChatNotebookEditDto {
2179-
uri: URI;
2179+
uri: UriComponents;
21802180
edits: ICellEditOperationDto[];
21812181
kind: 'notebookEdit';
21822182
done?: boolean;

0 commit comments

Comments
 (0)