cat.isStricky = true

This commit is contained in:
isidor
2024-02-22 17:13:25 +01:00
parent 025c5c64ce
commit a0ebeeb6a0

View File

@ -70,6 +70,7 @@ export function activate(context: vscode.ExtensionContext) {
// when you type `@`, and can contribute sub-commands in the chat input
// that appear when you type `/`.
const cat = vscode.chat.createChatParticipant('cat', handler);
cat.isSticky = true; // Cat is persistant, whenever a user starts interacting with @cat, @cat will automatically be added to the following messages
cat.iconPath = vscode.Uri.joinPath(context.extensionUri, 'cat.jpeg');
cat.description = vscode.l10n.t('Meow! What can I help you with?');
cat.commandProvider = {