vscode-yaml
vscode-yaml copied to clipboard
Integers Parse Incorrectly
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
Environment
- [ ] Windows
- [X] Mac
- [ ] Linux
- [ ] other (please specify)