Skip to content

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

Merged
juliasilge merged 1 commit into
mainfrom
enable-enabled-settings-migration
Sep 3, 2026
Merged

Migrate diagnostics setting to positron.r.diagnostics.enabled#1394
juliasilge merged 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

@juliasilge

Copy link
Copy Markdown
Member Author

That's a great idea for when we've got a few more settings like that! Managing a bunch of migration manually will not be sustainable in the long run.

@juliasilge
juliasilge merged commit 30b8dba into main Sep 3, 2026
17 checks passed
@juliasilge
juliasilge deleted the enable-enabled-settings-migration branch September 3, 2026 03:31
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants