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

Reload help pages on help refresh #1188

Merged
merged 1 commit into from
Sep 4, 2022
Merged

Reload help pages on help refresh #1188

merged 1 commit into from
Sep 4, 2022

Conversation

ManuelHentschel
Copy link
Member

This PR adds a refresh() method to the HelpPanel class that reloads the currently shown help page (and marks cached history entries as stale). This method is now called as part of the Clear Cache & Restart Help Server command meaning that is no longer necessary to manually close and re-open help pages after installed packages change.

How to test:
Open a help page for package X, install a different version of X, click Clear Cache & Restart Help Server (this might not even be necessary if the code in helpServer.R notices the change), check that the shown help page updates.

Copy link
Member

@renkun-ken renkun-ken left a comment

Choose a reason for hiding this comment

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

Works nicely! LGTM

@ManuelHentschel ManuelHentschel merged commit e7b60a7 into master Sep 4, 2022
@ManuelHentschel ManuelHentschel deleted the refreshHelp branch September 4, 2022 06:09
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