From a0ebeeb6a0e7927341dba22b3b09630cc6f8f95b Mon Sep 17 00:00:00 2001 From: isidor Date: Thu, 22 Feb 2024 17:13:25 +0100 Subject: [PATCH] cat.isStricky = true --- chat-sample/src/extension.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/chat-sample/src/extension.ts b/chat-sample/src/extension.ts index 1ea5c582..f5f87264 100644 --- a/chat-sample/src/extension.ts +++ b/chat-sample/src/extension.ts @@ -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 = {