Skip to content

Commit

Permalink
only range
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik committed Nov 29, 2024
1 parent 93fb8f8 commit aeee828
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/participant/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,15 @@ export default class ParticipantController {
message: `I want to ask questions about the \`${databaseName}\` database.`,
isNewChat: true,
});
}
if (treeItem instanceof CollectionTreeItem) {
} else if (treeItem instanceof CollectionTreeItem) {
const { databaseName, collectionName } = treeItem;

await this.sendMessageToParticipant({
message: `I want to ask questions about the \`${databaseName}\` database's \`${collectionName}\` collection.`,
isNewChat: true,
});
} else {
throw new Error('Unsupported tree item type');
}

await this.sendMessageToParticipant({
Expand Down

0 comments on commit aeee828

Please sign in to comment.