Skip to content

Commit 5137bbe

Browse files
committed
Do action on session click
1 parent dd45ba7 commit 5137bbe

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/vs/workbench/contrib/chat/browser/actions/chatActions.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,16 @@ export function registerChatActions() {
791791
);
792792
return;
793793
} else if ((item as ICodingAgentPickerItem).uri !== undefined) {
794-
// TODO: handle click
794+
// TODO: This is a temporary change that will be replaced by opening a new chat instance
795+
if (item.buttons && item.buttons.length > 0) {
796+
const pickedItem = (item.buttons[0] as ICodingAgentPickerItem);
797+
if (pickedItem.id) {
798+
commandService.executeCommand(pickedItem.id, {
799+
uri: (item as ICodingAgentPickerItem).uri,
800+
$mid: MarshalledId.ChatSessionContext
801+
});
802+
}
803+
}
795804
return;
796805
}
797806

0 commit comments

Comments
 (0)