Skip to content

Avoid deleting comments when the comment is not an annotation #742

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

Merged
merged 1 commit into from
May 23, 2025

Conversation

st0012
Copy link
Member

@st0012 st0012 commented May 23, 2025

We should not add delete edits whenever we see @ in the comment. This could cause incorrect ordering in the generated RBI. This commit fixes it by only adding delete edits when we see an annotation.

We should not add delete edits whenever we see `@` in the comment. This
could cause incorrect ordering in the generated RBI.
This commit fixes it by only adding delete edits when we see an annotation.

Co-authored-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@st0012 st0012 requested a review from a team as a code owner May 23, 2025 16:05
@st0012 st0012 added the bugfix Fix a bug label May 23, 2025
@st0012 st0012 enabled auto-merge May 23, 2025 16:11
@st0012 st0012 merged commit 02b681f into main May 23, 2025
8 checks passed
@st0012 st0012 deleted the fix-annotation-translation-order-issue branch May 23, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fix a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants