Skip to content

Fix duplication of first comment in file#15172

Closed
mishoo wants to merge 1 commit into
microsoft:masterfrom
telerik:issue-12979
Closed

Fix duplication of first comment in file#15172
mishoo wants to merge 1 commit into
microsoft:masterfrom
telerik:issue-12979

Conversation

@mishoo
Copy link
Copy Markdown

@mishoo mishoo commented Apr 13, 2017

I'm not sure this is the "proper" fix, but it does resolve the issue. iterateCommentRanges is called with pos=0 and trailing=true, making the first comment show up twice (as it will be iterated as a leading comment too).

Fixes #12979

I'm not sure this is the "proper" fix, but it does resolve the issue.  `iterateCommentRanges` is called with pos=0 and trailing=true, making the first comment show up twice (as it will be iterated as a leading comment too).

Fixes microsoft#12979
@msftclas
Copy link
Copy Markdown

@mishoo,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.

It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@msftclas
Copy link
Copy Markdown

@mishoo, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.

Thanks, Microsoft Pull Request Bot

@tsvetomir
Copy link
Copy Markdown

Can you please consider this PR for merging?

It's a small nuisance, but can turn into a real headache when JSDoc comments get duplicated. See #12979

@yuit
Copy link
Copy Markdown
Contributor

yuit commented May 24, 2017

@mishoo Thanks for the PR. I think the correct fix here is to append a flag to prevent intervening-
comment in the emitModifier. I will put up another PR to address this.

Update PR #16063

@yuit yuit closed this May 24, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplication of comment block at the start of the file in the generated JavaScript file

4 participants