Skip to content

Conversation

ritesh006
Copy link

@ritesh006 ritesh006 commented Sep 6, 2025

Adds save_ini_preserving_comments, a guarded INI writer that uses ConfigUpdater to round-trip platformio.ini while preserving comments and inline notes, with fallback to ConfigParser if import/parsing fails. This introduces a safe, optional capability (tested with header/inline comments) without altering existing code paths; adoption at call sites (e.g., ProjectConfig.save() or Home configurator) is up to maintainers. Resolves #3862.

@ritesh006
Copy link
Author

please anyone review this.

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.

Project Configuration does not preserve comments in platformio.ini
1 participant