microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.9k stars 29.17k forks source link

Support a chat participant getting an event when a link is clicked #231561

Open jasonmalinowski opened 2 weeks ago

jasonmalinowski commented 2 weeks ago

It'd be nice if when a user clicked a link in a chat window, that we had some event or telemetry to indicate the link was clicked. We could use this in concert with #231549 to know whether the links we're generating from the LLM are actually any good or not.

I see there's a proposed chat addition here:

https://github.com/microsoft/vscode/blob/997ad5efbfe3f33978700c100c0198ad17c01ae7/src/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts#L309

Which looks like it'd cover buttons, but links would be helpful too.

jasonmalinowski commented 2 weeks ago

Tagging @isidorn per request.

isidorn commented 1 week ago

@roblourens this is another way to measure success for the extension contributing participants. I do not know if we have a central linkHandler that could fire of a UserActionEvent