vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

Integers Parse Incorrectly

Open Derekmod opened this issue 1 year ago • 0 comments

Describe the bug

YAML extension incorrectly parses integers with underscores as strings. They are a verbose (readable) format for numbers.

Expected Behavior

1_000 interpreted as integer

Current Behavior

1_000 interpreted as string

Steps to Reproduce

integer_schema.json

{"type": "integer"}

create config:

# yaml-language-server: $schema=integer_schema.json
1_000

get error image

Environment

  • [ ] Windows
  • [X] Mac
  • [ ] Linux
  • [ ] other (please specify)

Derekmod avatar May 29 '24 20:05 Derekmod