Skip to content

Port completion fixes for JSX scanning #1275

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

Merged
merged 1 commit into from
Jun 24, 2025
Merged

Port completion fixes for JSX scanning #1275

merged 1 commit into from
Jun 24, 2025

Conversation

gabritto
Copy link
Member

Port the fixes from microsoft/TypeScript#61928.

This fixes a completions unit test that is failing in another branch that I have, and I'm not sure why that test wasn't failing before, probably another bug in astnav code was somehow making it work.

@Copilot Copilot AI review requested due to automatic review settings June 23, 2025 23:43
Copy link
Contributor

@Copilot 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 ports completion fixes for JSX scanning by updating token type comparisons to align with newer AST definitions.

  • Replaces comparisons using ast.KindSlashToken with ast.KindLessThanSlashToken in multiple conditions
  • Updates the logic in functions getCompletionData, isValidTrigger, and getJsxClosingTagCompletion to reflect these changes

@gabritto gabritto added this pull request to the merge queue Jun 24, 2025
Merged via the queue into main with commit 64e8a99 Jun 24, 2025
22 checks passed
@gabritto gabritto deleted the gabritto/fixjsxslash branch June 24, 2025 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants