Skip to content

Fixed crash on ComputedPropertyName when computing interactive inlay hints #61857

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Andarist
Copy link
Contributor

fixes #61845

@Copilot Copilot AI review requested due to automatic review settings June 12, 2025 21:15
@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Jun 12, 2025
@typescript-bot typescript-bot added For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jun 12, 2025
Copy link

@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 adds support for displaying computed property names in interactive inlay hints and includes a test to prevent the associated crash (fixing #61845).

  • Imported isComputedPropertyName and handled SyntaxKind.ComputedPropertyName in provideInlayHints
  • Added a fourslash test and baseline to verify computed property inlay hints

Reviewed Changes

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

File Description
tests/cases/fourslash/inlayHintsFunctionParameterTypes5.ts New test case for computed property inlay hints
tests/baselines/reference/inlayHintsFunctionParameterTypes5.baseline Baseline output for the new computed property hint
src/services/inlayHints.ts Implementation: import and case for computed names

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: Not started
Development

Successfully merging this pull request may close these issues.

No inlay hints. provideInlayHints results in Debug Failure. Unexpected node.
2 participants