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

Bug Report: Document Viewer doesn't display Int64 values correctly #747

Open
DJSchaffner opened this issue Jun 25, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@DJSchaffner
Copy link

Bug Report

Current Behavior

When viewing a document containing an Int64 value, the document viewer will display the value probably as a double ( #746 )

Code/Gist

This is the document displayed via MongoDB interface - guild_id is an Int64:

{
  "_id": {
    "$oid": "64a81216fc3208ccee8ec5f3"
  },
  "guild_id": 818617667421601852
}

This is what I see when viewing it via the plugin in VSCode:

{
  "_id": {
    "$oid": "64a81216fc3208ccee8ec5f3"
  },
  "guild_id": 818617667421601800
}

Expected Behavior/Code

Display Int64 values as they are stored in the database

Environment

  • node.js / npm versions: -
  • MongoDB for VS Code: 1.6.0
  • OS: Windows 10

Possible Solution

Additional Context/Screenshots

@alenakhineika
Copy link
Contributor

Hey, thank you for reporting this issue! We have a dedicated ticket, VSCODE-347, that you can use to track the progress of the fix. As you correctly noted, this issue is related to the same cause, so I will be closing #746 as a duplicate.

@alenakhineika alenakhineika added the bug Something isn't working label Jul 10, 2024
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