vscode icon indicating copy to clipboard operation
vscode copied to clipboard

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

Open DJSchaffner opened this issue 8 months ago • 1 comments

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

DJSchaffner avatar Jun 25 '24 21:06 DJSchaffner