-
Notifications
You must be signed in to change notification settings - Fork 57
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
Inline comments within parameters moved before previous comma #650
Comments
A bisect pointed to #630; maybe something in deno_ast? |
Not sure how we haven't got a report about this in Deno. It might be something that's only triggered with certain config. I'll take a look tomorrow. |
Caused because swc started incorrectly setting the text range for |
Opened swc-project/swc#9290 Temporarily patched this in our wrapper: dprint/dprint-swc-ext#62 (we had to introduce a wrapper around swc's spans because the first index was shifted from 0 to 1 in order to make 0 a magic number) |
Thank you once again! |
I opened #652 to catch this sooner in the future. |
Describe the bug
dprint-plugin-typescript version: 0.91.3
Input Code
Expected Output
Actual Output
Noticed this when updating DT; 30 some files had instances of this.
This is particularly scary because microsoft/TypeScript#58729 introduces a parameter JSDoc comment that shouldn't be moved around.
The text was updated successfully, but these errors were encountered: