microsoft / microsoft/TypeScript

Typescript type hint problem

Open
#60,725 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs More Info
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

Type: Bug

使用一段时间后,鼠标移到变量或者typescript类型上面,会有以下问题:

  • 没有类型提示,没有任何反应,此时按住command同时点击鼠标左键可以正常跳到实现

正常会有浮层提示类型,重启VS Code之后正常,但是使用一段时间之后还会出现

After using it for a while, when you move the mouse over a variable or typescript type, the following problems will occur:

  • No type hint, no response, at this time, hold down command and click the left mouse button to jump to the implementation

Normally, there will be a floating layer prompt type, it will be normal after restarting VS Code, but it will still appear after using it for a while

  • Normal display
    The mouse pointer is at the arrow position
    Image

  • problem
    The mouse pointer is at the arrow position

Version: 1.96.0-insider (Universal)
Commit: 91bf2f3b96a337c05fdd30dbfe609ae780b74706
Date: 2024-11-19T05:04:26.087Z
Electron: 32.2.3
ElectronBuildId: 10561341
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin x64 22.6.0

Image

VS Code version: Code 1.95.1 (65edc4939843c90c34d61f4ce11704f09d3e5cb6, 2024-10-31T05:14:54.222Z)
OS version: Darwin x64 22.6.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 4, 3, 2
Memory (System) 16.00GB (1.19GB free)
Process Argv --crash-reporter-id df018b86-dcb3-4093-a0fe-1df1f758d245
Screen Reader no
VM 0%
Extensions (7)
Extension Author (truncated) Version
markdown-mermaid bie 1.26.0
vscode-eslint dba 3.0.13
prettier-vscode esb 11.0.0
githd hui 2.5.3
vscode-language-pack-zh-hans MS- 1.95.2024103009
volar Vue 2.1.10
material-theme zhu 3.17.5
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
jg8ic977:31013176
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
nativerepl1:31139838
refactort:31108082
pythonrstrctxt:31112756
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the missing hover type hints in VS Code 1.96.0-insider on macOS after extended use, using the reported TypeScript context and installed extensions. Compare hover behavior with command-click navigation, and verify whether restarting VS Code restores the hints. Done means the cause is isolated and hover type information remains available after the reported usage period.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.