Skip to content

Typescript syntax highlighting bug on optional interface properties #56229

@softwareCobbler

Description

@softwareCobbler
interface DagEdge {
  id?,
  from,
  to,
  qty?
}
/* the following interface is not syntax-colored properly, apparently due to the optional interface members above.
removing the optional members in DagEdge (above) results in the expected syntax coloring behavior*/
interface StateTree {
  dag : AbstractDag,
  mutationHistory,      
  contextMenu,
  hover,
  selection
}

VS Code version: Code 1.25.1 (1dfc5e5, 2018-07-11T15:43:11.471Z)
OS version: Windows_NT ia32 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz (8 x 3500)
GPU Status 2d_canvas: enabled
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: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 31.95GB (20.72GB free)
Process Argv E:\Microsoft VS Code\Code.exe
Screen Reader no
VM 0%
Extensions (6)
Extension Author (truncated) Version
python ms- 2018.7.1
java red 0.29.0
vscode-java-debug vsc 0.11.0
vscode-java-pack vsc 0.3.0
vscode-java-test vsc 0.8.0
vscode-maven vsc 0.10.0
data into your clipboard because it was too large to send. Please paste.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggrammarSyntax highlighting grammartypescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)verifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions