Skip to content

Restore symbol names in JSX import action titles - #64588

Merged
Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
Andarist:restore-jsx-import-action-titles
Oct 12, 2026
Merged

Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
Andarist:restore-jsx-import-action-titles

Conversation

@Andarist

Copy link
Copy Markdown
Contributor

A pretty close port of the Strada's logic that fixes 2 skipped tests

Copilot AI balanced review requested due to automatic review settings October 2, 2026 13:27
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Oct 2, 2026
@typescript-automation typescript-automation Bot added For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Oct 2, 2026
@typescript-automation

Copy link
Copy Markdown
Contributor

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

Review effort: Lite
Findings: 5 Medium severity · 2 Low severity

Open (7)
What changed in this PR

Ports Strada behavior to optionally include the symbol name in auto-import fix descriptions, and re-enables previously skipped JSX import name code-fix tests.

Changes:

  • Added an includeSymbolNameInDescription flag to autoimport.Fix.Edits and threaded it through key call sites.
  • Adjusted import code action generation to detect JSX namespace fixes and include the symbol name in the action title when appropriate.
  • Unskipped two failing fourslash JSX import-name code-fix tests.
File Description
tsc/​internal/​ls/​completions.go Updates autoimport.Fix.Edits invocations to pass the new symbol-in-description flag (currently false) to preserve existing completion detail behavior.
tsc/​internal/​ls/​codeactions_importfixes.go Adds errorIdentifierText to fixInfo and uses it to decide when to include symbol names in import code action titles (JSX namespace cases).
tsc/​internal/​ls/​autoimport/​fix.go Extends Fix.Edits signature and conditionally returns a symbol-containing description string for add/update import fixes.
tsc/​internal/​fourslash/​tests/​importNameCodeFix_jsx4_test.go Re-enables the previously skipped JSX fourslash test.
tsc/​internal/​fourslash/​tests/​importNameCodeFix_jsx6_test.go Re-enables the previously skipped JSX fourslash test.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

formatOptions lsutil.FormatCodeSettings,
converters *lsconv.Converters,
preferences lsutil.UserPreferences,
includeSymbolNameInDescription bool,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added extra coverage

Comment thread tsc/internal/ls/autoimport/fix.go
Comment thread tsc/internal/ls/autoimport/fix.go
Comment thread tsc/internal/ls/autoimport/fix.go
Comment thread tsc/internal/ls/autoimport/fix.go
Comment thread tsc/internal/ls/autoimport/fix.go
Comment thread tsc/internal/ls/autoimport/fix.go
@jakebailey

Copy link
Copy Markdown
Member

Copilot absolutely hates this 😄

@Andarist

Copy link
Copy Markdown
Contributor Author

Copilot absolutely hates this 😄

Yeaa. I don't agree with most of its comments - I just added extra coverage. Let me know if you think I should address anything else here

@jakebailey

Copy link
Copy Markdown
Member

Ah, because the review happened during an outage.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

@github-project-automation github-project-automation Bot moved this from Not started to Needs merge in PR Backlog Oct 12, 2026
@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Oct 12, 2026
Merged via the queue into microsoft:main with commit b5c34ba Oct 12, 2026
29 checks passed
@github-project-automation github-project-automation Bot moved this from Needs merge to Done in PR Backlog Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants