You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if the currently selected code is sent in the .copilot_references property of a message. Once we know that it is, we can add types to make access to it more resilient.
Can you share a raw message body that includes selected code data?
As of today, when in VS code, it is possible to add the current selection to contextual information using the icon.
It will then be added as a little label on the chat box
This results in an item of the form added to the copilot_references array:
{
"type": "client.selection",
"data": {
"content": "selection content with line break and tabs escaped with \\n & \\t",
"end": {
"col": 5,
"line": 51
},
"start": {
"col": 3,
"line": 44
}
},
"id": "+page.svelte", // Note that this is not the absolute path of the file, and there is currently no information to get that"is_implicit": false,
"metadata": {
"display_name": "",
"display_icon": "",
"display_url": ""
}
}
I would like to send the selected code as part of the prompt, when communicating with the GitHub model. Can you please share an example?
The text was updated successfully, but these errors were encountered: