-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[semantic][typescript] Constants with function type should be rendered as functions #89337
Comments
In general, with semantic highlighting there will be difference between code in the editor and code snippets in hovers the's no semantic resultion possible in hovers (lack of context). The sample that you show is interesting, and not really related to semantic information. The TypeScript TextMate grammar classified |
Issue Type: Bug
If function is declared as
const
+ arrow function it will be hightlighted as variable in editor, but as function in hover.Is it expected behavior?
/cc @aeschli
VS Code version: Code - Insiders 1.42.0-insider (3c6f6af, 2020-01-27T05:27:06.595Z)
OS version: Windows_NT x64 10.0.18363
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: