microsoft / microsoft/TypeScript

Inlay hints will be disabled after extending constructor function in Mixin Implementation using Typescript

Open
#62,023 8 comments 0 reactions 0 assignees View on GitHub
7.0 LS Migration Bug Domain: LS: Inlay Hints
Dominant language
Go
Stars
111k
Forks
14.3k
PR merge metrics
PR metrics pending

Description

Does this issue occur when all extensions are disabled?: Yes/No

- VS Code Version: 1.97.2
- OS Version: Windows_NT x64 10.0.26100

Steps to Reproduce:

Pre-conditions:

- Inlay hints must be enabled in VS Code
- Configurations of Inlay hints in VS Code
![Image](https://github.com/user-attachments/assets/ba4f5f17-2388-41d5-8eb5-44a28e25403b)

1. Make a function
![Image](https://github.com/user-attachments/assets/ba35dde9-bdb6-4627-a294-ed365f5c8aaf)

3. Convert function to Generic and constructor function

- Before extending constructor function (Inlay hints are enabled)
![Image](https://github.com/user-attachments/assets/9a3c11b2-5cf0-4949-9e49-e58d27f13506)

- After extending constructor function (Inlay hints are disabled)
![Image](https://github.com/user-attachments/assets/12239b23-006d-4e13-ad3b-80b3d1fab1da)

Recorded Video
https://github.com/user-attachments/assets/897fea39-0edc-4a7f-a88f-c91fc6636ace

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the report with inlay hints enabled, then compare the generic constructor-function example before and after extending the constructor in the mixin implementation. Trace the TypeScript language-service path that computes inlay hints for this construct. Done means hints remain enabled after the extension and the regression is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.