You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VSCode syntax highlighting breaks when it encounters an optional class level variable in a type definition (.d.ts) file.
The example below is a simplified version of what I was seeing in one of my emitted type definition files.
When pasting this block into a .d.ts file, you should see the variables "private readonly" below where test2?; is declared in the TestClient turn from the expected dark blue to a light blue, or the same color as the variable name. This has reaching affects throughout the file and causes other things below it to be improperly rendered. I've provided the TestClient2 definition to show a simple case of it.
mjbvz
added
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
grammar
Syntax highlighting grammar
labels
Aug 2, 2018
Issue Type: Bug
VSCode syntax highlighting breaks when it encounters an optional class level variable in a type definition (.d.ts) file.
The example below is a simplified version of what I was seeing in one of my emitted type definition files.
When pasting this block into a .d.ts file, you should see the variables "private readonly" below where
test2?;
is declared in the TestClient turn from the expected dark blue to a light blue, or the same color as the variable name. This has reaching affects throughout the file and causes other things below it to be improperly rendered. I've provided theTestClient2
definition to show a simple case of it.VS Code version: Code 1.25.1 (1dfc5e5, 2018-07-11T15:43:53.668Z)
OS version: Windows_NT x64 10.0.16299
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_software
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (3)
The text was updated successfully, but these errors were encountered: