We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd45ba7 commit 5137bbeCopy full SHA for 5137bbe
src/vs/workbench/contrib/chat/browser/actions/chatActions.ts
@@ -791,7 +791,16 @@ export function registerChatActions() {
791
);
792
return;
793
} else if ((item as ICodingAgentPickerItem).uri !== undefined) {
794
- // TODO: handle click
+ // 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
804
805
}
806
0 commit comments