Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow extensions to attach chat context #213172

Merged
merged 3 commits into from
May 21, 2024

Conversation

joyceerhl
Copy link
Contributor

No description provided.

@joyceerhl joyceerhl self-assigned this May 21, 2024
@joyceerhl joyceerhl enabled auto-merge May 21, 2024 18:35
@vscodenpa vscodenpa added this to the May 2024 milestone May 21, 2024
@joyceerhl joyceerhl disabled auto-merge May 21, 2024 18:54
@joyceerhl joyceerhl enabled auto-merge (squash) May 21, 2024 18:59
@joyceerhl joyceerhl merged commit f2f4adc into main May 21, 2024
6 checks passed
@joyceerhl joyceerhl deleted the dev/joyceerhl/agreeable-crow branch May 21, 2024 19:34
* @param value - The value of the chat context.
* @param location - The location of the chat context.
*/
export function attachContext(name: string, value: string | Uri | Location | unknown, location: ChatLocation.Panel): void;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should have an ID actually

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should VS Code actually be doing this for stuff likes files and selections? #file and the new attachment picker are still totally driven from core right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah they're still totally driven by core, I'd like to also have #file extension land though because it's effectively a dynamic variable resolver but is special cased in a bunch of places right now.

andremmsilva pushed a commit to PIC1G55/vscodeG55 that referenced this pull request May 26, 2024
* feat: allow extensions to attach chat context

* fix: allow attaching different ranges from same file

* fix: restore accepting files from picker
@microsoft microsoft locked and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants