Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compose Format Document rounds big numbers #135

Open
NLZ opened this issue Oct 23, 2023 · 1 comment
Open

Compose Format Document rounds big numbers #135

NLZ opened this issue Oct 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@NLZ
Copy link

NLZ commented Oct 23, 2023

Let's say I have this (fake for the example) key-value in my compose.yaml:

environment:
  discord_id: 1147053346671102335

When I select Format Document it will round 1147053346671102335 to 1147053346671102300, which I don't think I need to explain why is bad.

Of course I can quote it to make into a string, but was blindsided by this behavior, would be nice to save others from it.

@bwateratmsft
Copy link
Contributor

Good find. I'll transfer this to the compose language service repository.

@bwateratmsft bwateratmsft transferred this issue from microsoft/vscode-docker Oct 23, 2023
@bwateratmsft bwateratmsft added the bug Something isn't working label Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants