Repository navigation
fix: require workspace trust for R and start Help on demand - #1996
Merged
Merged
Conversation
eitsupi
approved these changes
Nov 25, 2026
eitsupi
left a comment
Member
There was a problem hiding this comment.
Reviewed by ChatGPT.
Minor design concern: PackageManager now calls this.rHelp.helpProvider.start() directly, making it aware of the Help server's lifecycle. Could this responsibility be encapsulated within RHelp instead?
This is non-blocking.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The R runtime now declares that it requires a trusted workspace. VS Code handles activation after trust is granted, and the independent R syntax extension remains available in Restricted Mode.
Trusted activation registers Help without starting its R server. The first page, alias, or package index request starts the server. Concurrent requests share the process, and reading a persisted package index starts its package-change listener.
I tested installed extensions in VS Code 1.101.0 and 1.145.2 on macOS. Restricted Mode kept the runtime inactive with R syntax available. With the language server disabled, opening an R document launched zero R processes, and two concurrent Help requests loaded both pages through one process. The 22 Help tests, activation-runner unit tests, build, typecheck, lint, and formatting checks passed.
This addresses the eager Help process described in #1923. The origin of the additional Windows workers in that report is still open.
Refs #1923