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

An error occurs when executing command "Execute NoSQL Query" #2265

Closed v-ruizh closed 5 months ago

v-ruizh commented 5 months ago

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

Repro Steps:

  1. F1 -> Select "Cosmos DB: Execute NoSQL Query".
  2. Check whether the next step is "Select resource".

Expect: The next step is "Select resource".

Actual: An error occurs. image

v-ruizh commented 5 months ago

Verified this issue on extension build 20240312.4, this issue still reproduces. Please get the details from below.

  1. There is no command "Execute NoSQL Query" in Command Palette if there is no new NoSQL query created.
  2. After creating a new NoSQL query, there is a command "Execute NoSQL Query" in Command Palette.
  3. Select the command "Execute NoSQL Query" to execute, the same error occurs. (The collection has been connected on active nosql document) image

The similar issue occurs when executing "Get NoSQL Query Plan" command from Command Palette. Regardless of whether the NoSQL query is created. image