Skip to content

Conversation

@RyanCavanaugh
Copy link
Member

Fixes #61860

Copilot AI review requested due to automatic review settings July 9, 2025 22:04
@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Jul 9, 2025
@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Jul 9, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug related to double-emitting of JSX text that looks like comments in TypeScript compilation. The fix specifically addresses issue #61860 by modifying the comment emission logic in the emitter to properly handle JSX-related nodes.

Reviewed Changes

Copilot reviewed 24 out of 24 changed files in this pull request and generated 2 comments.

File Description
tests/cases/compiler/jsxCommentEmit.ts Adds test cases for JSX comment emission with various scenarios including text that resembles comments
tests/baselines/reference/ (multiple files) Expected output baselines for the new test cases across different JSX and comment removal configurations
src/compiler/emitter.ts Updates comment emission logic by replacing simple JSX text checks with more comprehensive JSX node type validation

RyanCavanaugh and others added 2 commits July 9, 2025 15:09
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-project-automation github-project-automation bot moved this from Not started to Done in PR Backlog Jul 9, 2025
@microsoft microsoft locked as resolved and limited conversation to collaborators Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Comment like jsx text emitted twice when preserve enabled

2 participants