Skip to content

Handle misindented comments and preserve serialization#21

Merged
bsutton merged 4 commits intomainfrom
fix/misindented-comments-retention
Mar 1, 2026
Merged

Handle misindented comments and preserve serialization#21
bsutton merged 4 commits intomainfrom
fix/misindented-comments-retention

Conversation

@bsutton
Copy link
Contributor

@bsutton bsutton commented Feb 28, 2026

Summary

  • fix parsing when a comment appears at a lower indentation level than expected before a child key
  • keep that misindented comment attached to the subsequent YAML element
  • preserve the original comment indentation when writing back pubspec.yaml
  • avoid duplicate line ownership during section rendering
  • add support for additional documented top-level pubspec keys:
    • funding
    • false_secrets
    • topics
    • ignored_advisories
    • screenshots
  • ignore local .mcp_logs/ artifacts

Validation

  • formatted changed files with Dart MCP dart_format
  • ran full suite with Dart MCP run_tests and all tests passed

@bsutton bsutton merged commit 1796bcc into main Mar 1, 2026
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.

1 participant