Skip to content

Local Quick Start commands are listed in the Command Palette and silently do nothing #851

Closed

Description

Found during bug bash on 0.10.0-bug-bash-1.

Summary

All eight localQuickStart.* commands are listed in the Command Palette, and invoking any of them there does nothing at all — no notification, no error, no status change. The most damaging case is Start: the feature's primary action appears to be available, does nothing, and gives the user no explanation.

Cause

None of the eight commands has a commandPalette entry in contributes.menus, so VS Code lists them all by default:

vscode-documentdb.command.localQuickStart.open
vscode-documentdb.command.localQuickStart.start
vscode-documentdb.command.localQuickStart.stop
vscode-documentdb.command.localQuickStart.restart
vscode-documentdb.command.localQuickStart.delete
vscode-documentdb.command.localQuickStart.copyConnectionString
vscode-documentdb.command.localQuickStart.copyPassword
vscode-documentdb.command.localQuickStart.viewLogs

They are not inert — the Quick Start output channel shows work actually happening:

$ docker container ls --all --filter 'label=vscode.documentdb.quickstart=1' --no-trunc --format '{{json .}}' --size=false
$ docker -v
$ docker info --format '{{json .}}'

The pipeline runs, finds no instance to act on, and returns silently.

Steps to reproduce

  1. Install vscode-documentdb-0.10.0-bug-bash-1.vsix.
  2. Make sure no Quick Start container exists: docker rm -f vscode-documentdb-local.
  3. Open the Command Palette and run DocumentDB Local Quick Start: Start.

Expected: either the command is hidden from the palette, or it provisions/starts an instance, or it explains why it can't.

Actual: nothing happens. No notification, no error, no output.

Observed across all commands

Measured programmatically in an extension host with no Quick Start container present. Clipboard was seeded with a sentinel before each call to detect writes:

start                  resolved     clipboard=UNCHANGED
stop                   resolved     clipboard=UNCHANGED
restart                resolved     clipboard=UNCHANGED
viewLogs               resolved     clipboard=UNCHANGED
copyConnectionString   resolved     clipboard=UNCHANGED
copyPassword           resolved     clipboard=UNCHANGED
open                   resolved     clipboard=UNCHANGED

The extension's own log had no entries for any of these invocations.

Related second state

The same silence occurs when a Quick Start container does exist but its stored credentials are gone (e.g. after a profile switch or cleared secret storage). The extension detects and logs this internally:

DocumentDB Local instance "vscode-documentdb-local" is present but its stored
credentials are missing; surfacing as credential-unavailable (not removed).

but Copy Connection String still writes nothing to the clipboard and shows the user no message. The state is understood internally and never surfaced.

Suggested fix

Add commandPalette entries gated on a Quick Start context key (e.g. when: documentdb.quickstart.available), so context-only commands are hidden. For the ones that should remain reachable — particularly Start and Open — surface a message when there is nothing to act on, and a targeted message for the credential-unavailable state instead of returning silently.

Activity

  1. removed
    bug
    on Aug 4, 2026
  2. tnaum-ms commented on Aug 5, 2026

    @tnaum-ms
    Collaborator

    Guanzhou Song (@guanzhousongmicrosoft) we have a pattern of just hiding commands from the command palette, you'll see that in the package.json. let's do it here as well.

    We'll have to schedule a dedicated pass to revisit hidden commands and figure out which ones to promote back into the Command Palette, but for now, for this specific scenario, let's have them hidden.

  3. tnaum-ms commented on Aug 6, 2026

    @tnaum-ms
    Collaborator

    Fixed by #866, merged into feature/local-quickstart as 2803a38: the seven lifecycle commands are gated out of the Command Palette, and any route into one with nothing to act on now explains itself instead of returning in silence.

    Closing by hand rather than automatically: #866 targeted feature/local-quickstart, not the default branch, so GitHub ignores closing keywords and creates no link. Ships with 0.10.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions