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

add cat_context variable #958

Merged
merged 1 commit into from
Feb 15, 2024
Merged

add cat_context variable #958

merged 1 commit into from
Feb 15, 2024

Conversation

isidorn
Copy link
Contributor

@isidorn isidorn commented Feb 15, 2024

Adding variable resolving to the cat sample. This was previously missing and might have influenced extension authors to not adopt variables so far.
#cat_context variable

fyi @roblourens @jrieken

@isidorn isidorn self-assigned this Feb 15, 2024
@isidorn isidorn added this to the February 2024 milestone Feb 15, 2024
@isidorn isidorn enabled auto-merge February 15, 2024 14:46
},
{
level: vscode.ChatVariableLevel.Full,
value: 'I am a playful cat, version 1.3, this version prefer to explain everything using mouse and tail metaphores. I am ' + mood
Copy link
Member

Choose a reason for hiding this comment

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

Nit typo:

Suggested change
value: 'I am a playful cat, version 1.3, this version prefer to explain everything using mouse and tail metaphores. I am ' + mood
value: 'I am a playful cat, version 1.3, this version prefers to explain everything using mouse and tail metaphores. I am ' + mood

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

@isidorn isidorn merged commit 22695a3 into main Feb 15, 2024
2 checks passed
@isidorn isidorn deleted the isidorn/delightful-viper branch February 15, 2024 14:47
@vswraith23
Copy link

@isidorn How do I access the existing variables like #selection or #workspace and add them to a prompt? Is there an example you can share?

@isidorn
Copy link
Contributor Author

isidorn commented Mar 4, 2024

@vswraith23 The variable is resolved before your participant is invoked, you get the value in the variables list (this flow might change in the next week). You get any variables that the user passed in, but you can’t ask for more than that.

If this does not cover your use case, feel free to open a new issue here, explaining your scenario and feel free to ping me @isidorn on the issue https://github.com/microsoft/vscode/issues

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants