mongodb-js / vscode

Connect to MongoDB and Atlas and directly from your VS Code environment, navigate your databases and collections, inspect your schema and use playgrounds to prototype queries and aggregations.
https://marketplace.visualstudio.com/items?itemName=mongodb.mongodb-vscode
Apache License 2.0
326 stars 58 forks source link

fix(chat): add message content to blank message request VSCODE-626 #843

Closed Anemy closed 2 days ago

Anemy commented 5 days ago

VSCODE-626

When the message sent to the ai is empty, like how folks will use /schema, we would receive an error: unhandled status from server, please report the following request id This only happens in non-insiders VSCode. It looks to be fixed in insiders, but since we do want to release the extension now we should work around it. We're adding a not-empty message in those cases so it doesn't error. This is a bit of a hack, I think we'll improve this in a follow up (or remove it). We probably want the check closer to the actual model request.

Also adds a few logs around when we're making requests and get a response.