microsoft / vscode-cosmosdb

Azure Databases extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-cosmosdb
MIT License
155 stars 68 forks source link

The command "Cosmos DB: Get NoSQL Query Plan" is not hidden from the command palette list when there is no NoSQL query created #2271

Closed v-ruizh closed 5 months ago

v-ruizh commented 5 months ago

OS: All Build Version: 20240313.3 Regression: Not a regression

Repro Steps:

  1. Make sure there is no NoSQL query created.
  2. Open the command palette.
  3. Check whether no command "Cosmos DB: Get NoSQL Query Plan" shows in the list.

Expect: No command "Cosmos DB: Get NoSQL Query Plan" shows in the command palette list.

Actual: The command "Cosmos DB: Get NoSQL Query Plan" shows in the command palette list.

More Info:

  1. An error occurs when executing "Get NoSQL Query Plan" command from command palette. image
  2. Create a NoSQL query and execute "Get NoSQL Query Plan" command from command palette again, the above error still pops up.