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

[bug] [vs extension] Preview does not refresh when using external sample file #156

Open
injeniero opened this issue Dec 19, 2024 · 1 comment
Assignees
Labels
extension Related to the Prompty VS Code Extension

Comments

@injeniero
Copy link
Contributor

Preview does not refresh when sample is pointing to another file and a change is made in that file. Example:

...
sample: ${file:sample_1.json}

---
user:
Some prompt with a {{variable}} from sample_1.json file.

sample_1.json

{"variable": "name"}

If you then change the value to "Name", it won't show up in the preview.

@sethjuarez
Copy link
Member

Yeah - for some reason it only updates when the virtual document is changed. I will look into it.

@sethjuarez sethjuarez self-assigned this Jan 9, 2025
@sethjuarez sethjuarez added the extension Related to the Prompty VS Code Extension label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension Related to the Prompty VS Code Extension
Projects
None yet
Development

No branches or pull requests

2 participants