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: Make "simple browser" an explicit preview type option #69

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

gadenbuie
Copy link
Collaborator

@gadenbuie gadenbuie commented Aug 23, 2024

Adds "simple browser" as a shiny.previewType option and updates the help text to reference Positron.

Technically, this just makes implicit behavior explicit -- any value that isn't internal, external, or none defaults to using the Simple Browser, but you had to modify settings via JSON to take advantage.

I find it useful to differentiate between the viewer pane and a simple browser. For example, while working on a workshop I could use the Viewer pane to preview Quarto slides while also running and editing a Shiny app with its preview in a Simple Browser tab.

Note that we have to declare both values up-front. In VS Code extensions, it's not possible to dynamically set the allowed values of an enum configuration setting.

@gadenbuie gadenbuie marked this pull request as ready for review August 23, 2024 14:15
@gadenbuie gadenbuie requested a review from jcheng5 August 23, 2024 14:18
@gadenbuie gadenbuie merged commit 066ca1c into main Aug 23, 2024
3 checks passed
@gadenbuie gadenbuie deleted the feat/add-simple-browser-option branch August 23, 2024 20:35
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.

2 participants