Skip to content

Conversation

gabritto
Copy link
Member

@gabritto gabritto commented Sep 4, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 00:20
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 fixes a porting bug in JSX/TSX attribute completion handling by correcting the logic for navigating the AST structure when determining the containing JSX element for completion contexts.

  • Added proper handling for JsxAttribute nodes in the tryGetContainingJsxElement function
  • Re-enabled multiple previously skipped TSX completion tests that now pass
  • Updated test expectations to reflect the corrected completion behavior

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/ls/completions.go Fixed AST navigation logic for JSX attributes by adding proper parent traversal
internal/fourslash/tests/manual/tsxCompletion12_test.go Re-enabled test and updated expectations for corrected completion behavior
internal/fourslash/tests/gen/tsxCompletion8_test.go Re-enabled previously skipped test
internal/fourslash/tests/gen/tsxCompletion13_test.go Re-enabled previously skipped test
internal/fourslash/tests/gen/completionsJsxAttribute2_test.go Re-enabled previously skipped test
internal/fourslash/_scripts/manualTests.txt Added tsxCompletion12 to manual tests list
internal/fourslash/_scripts/failingTests.txt Removed now-passing tests from failing tests list

@gabritto gabritto added this pull request to the merge queue Sep 4, 2025
Merged via the queue into main with commit e8a0920 Sep 4, 2025
22 checks passed
@gabritto gabritto deleted the gabritto/tsxCompletionFix branch September 4, 2025 15:33
Harsh1925 pushed a commit to Harsh1925/typescript-go that referenced this pull request Sep 9, 2025
zshannon pushed a commit to zshannon/typescript-go that referenced this pull request Oct 6, 2025
zshannon pushed a commit to zshannon/typescript-go that referenced this pull request Oct 6, 2025
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.

3 participants