Skip to content

Change default fixed suffix to fixed.rs #312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michaelciraci
Copy link
Contributor

Closes #288

This changes the default fixed suffix from fixed to fixed.rs for IDE rendering.

TODO (check if already done)

  • Add tests
  • Add CHANGELOG.md entry


for (from, to) in self.comments().flat_map(|r| match kind {
_ if kind.ends_with("fixed") => &[] as &[_],
Copy link
Owner

Choose a reason for hiding this comment

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

Oh damn, I need to decouple this rust specific logic from the generic logic

@oli-obk
Copy link
Owner

oli-obk commented Apr 14, 2025

Thanks! I think before we can land this old style files should be warned about and just automatically deleted in bless mode

Unsure how to best do this.

@michaelciraci
Copy link
Contributor Author

What if we let the fixed suffix be either .fixed or .fixed.rs? Then it won't break anything that's currently working, but maintainers can change the suffix when it works for them to support the IDE rendering. If a maintainer doesn't care about IDE rendering, they don't ever have to bless .fixed

@oli-obk
Copy link
Owner

oli-obk commented Apr 28, 2025

I guess that would work. Basically if there is a .fixed file, keep it and bless it if requested. If there isn't, generate a .fixed.rs file.

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.

Change .fixed files to .fixed.rs
2 participants