Skip to content

Migrate diagnostics setting to positron.r.diagnostics.enabled - #1394

Open
juliasilge wants to merge 1 commit into
mainfrom
enable-enabled-settings-migration
Open

Migrate diagnostics setting to positron.r.diagnostics.enabled#1394
juliasilge wants to merge 1 commit into
mainfrom
enable-enabled-settings-migration

Conversation

@juliasilge

@juliasilge juliasilge commented Aug 30, 2026

Copy link
Copy Markdown
Member

This PR migrate the R diagnostics setting from positron.r.diagnostics.enable to positron.r.diagnostics.enabled. We'll continue reading and registering the legacy setting for a good long while so existing configurations can still disable diagnostics. This applies the compatibility behavior to both initialization options and live workspace/configuration updates.

Testing

  • Added coverage for the new and legacy settings in initialization options.
  • Added coverage for configuration updates where the legacy setting disables the new default.

Positron Release Notes

New Features

  • N/A

Bug Fixes

  • Updated the R diagnostics setting to use positron.r.diagnostics.enabled while continuing to honor the legacy setting.

@thomasp85 thomasp85 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Generally LGTM - at the risk of asking for premature optimisation, might it be better to create a general solution to renaming config entries rather than litter legacy fallbacks around the resolve path that we then need to gradually deprecate? Not a blocker but more an idea to think about

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