Skip to content
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

fix(47158): Removes comments when line variable declaration #47407

Merged
merged 9 commits into from
Feb 23, 2022

Conversation

islandryu
Copy link
Contributor

Fixes #47158

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Jan 12, 2022
@islandryu islandryu marked this pull request as ready for review January 12, 2022 18:02
src/compiler/emitter.ts Outdated Show resolved Hide resolved
Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

Left a few comments.

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

Must have typo'd my suggestion, sorry! There's another one I noticed later.

src/compiler/emitter.ts Outdated Show resolved Hide resolved
src/compiler/transformers/ts.ts Outdated Show resolved Hide resolved
@islandryu
Copy link
Contributor Author

Thanks for the review!
I've committed suggestion.

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

One last whitespace fix; not sure what GitHub suggestions was doing but it kept adding extra spaces.

Past that LGTM though maybe Wes wants to look to double check.

src/compiler/emitter.ts Outdated Show resolved Hide resolved
src/compiler/transformers/ts.ts Outdated Show resolved Hide resolved
@islandryu
Copy link
Contributor Author

I'm sorry.
I checked and committed this time.

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

LGTM with the formatting change, but there's a baseline update that should be made before approval and merge as those public APIs got dropped so their definitions have to be reverted.

src/compiler/emitter.ts Outdated Show resolved Hide resolved
@islandryu
Copy link
Contributor Author

Thank you again and again.
I fixed the baseline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

TypeScript removes comments even when removeComments: false
3 participants