Microsoft/TypeScript
GitHub ã§èŠãDouble slash comment `//` will be wrongly removed in the trailing position of the object attribute
Open
#56,055 opened on 2023幎10æ10æ¥
Domain: Comment EmitHelp WantedPossible Improvement
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
ð Search Terms
- comment removal
- removeComments
ð Version & Regression Information
- This is the behavior in every version I tried.
⯠Playground Link
ð» Code
export const foo = {
foo: 'foo', // this comment will be removed, however this should be kept
bar: 'bar' // this comment will be kept, works well
}
ð Actual behavior
export const foo = {
foo: 'foo',
bar: 'bar' // this comment will be kept, works well
}
ð Expected behavior
export const foo = {
foo: 'foo', // this comment will be removed, however this should be kept
bar: 'bar' // this comment will be kept, works well
}
Additional information about the issue
No response