microsoft / microsoft/vscode-documentdb

View/Edit selected documents does not function on first click - shows loading true

Open
#863 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug-bash
Dominant language
TypeScript
Stars
31
Forks
22
Avg merge
2d 20h
Merged PRs (30d)
21

Description

Bug Description

When clicking View/Edit on a selected document, the editor does not display the document content on the first click. Instead, it shows:

{ "loading...": true }

A second click is required to actually load and display the document content.

Steps to Reproduce

  1. Open a DocumentDB collection in VS Code
  2. Select a document
  3. Click View/Edit on the selected document
  4. Observe the editor shows { "loading...": true } instead of the actual document

Expected Behavior

The document content should be displayed immediately on the first click.

Actual Behavior

The first click shows { "loading...": true } and does not resolve. A subsequent click is needed to load the document.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the View/Edit action for a selected document in the VS Code DocumentDB extension and trace the first-click loading behavior. Done means the document content appears immediately on the first click without leaving the loading placeholder visible; add a regression test if the relevant test location is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
database, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.