Skip to content

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

Open
@DJSchaffner

Description

@DJSchaffner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions