Skip to content

Commit

Permalink
don't show error when cancelling
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik committed Dec 20, 2024
1 parent 65e991e commit b66ba99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/participant/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1847,6 +1847,10 @@ export default class ParticipantController {

if ('error' in contentOrError) {
const { error } = contentOrError;
if (error === 'cancelled') {
return true;
}

void vscode.window.showErrorMessage(
'Failed to generate a MongoDB Playground. Please ensure your code block contains a MongoDB query.'
);
Expand Down

0 comments on commit b66ba99

Please sign in to comment.