Skip to content

Edit Document" hyperlink intermittently missing/disabled in Playground Results pane #1187

@vizhruth

Description

@vizhruth

Environment Details
Please fill this out with your specific information:
VS Code Version: (e.g., 1.95.1)
MongoDB for VS Code Extension Version: (e.g., 0.10.0)
Operating System: (e.g., Windows 11, macOS Sonoma)
MongoDB Server Version: (e.g., 6.0.4)
Connection Type: (e.g., Local instance, MongoDB Atlas M0 cluster)
Steps to Reproduce
(List the precise sequence of actions you took when the bug occurred)
Open VS Code and connect to a MongoDB database.
Open or create a .mongodb playground file.
Write a query that explicitly returns a single document (e.g., db.collection.findOne({...}) or db.collection.find({...}).limit(1)).
Run the query using the "Run Query" button.
Observe the "Playground Results" pane on the right.
Expected Behavior
A blue "Edit Document" hyperlink should consistently appear at the top of the single JSON document result in the results pane every time the query is run.
Actual Behavior
Intermittently, the "Edit Document" hyperlink is completely missing from the results pane for single-document queries.
Additional Notes
This behavior seems random; sometimes the link appears, sometimes it does not.
Closing and reopening VS Code or reconnecting to the database sometimes resolves the issue temporarily.
(Add the text of the query you were using when it happened: db.getCollection("ProductOrders").find(...) or similar)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions