Path: blob/main/extensions/copilot/src/extension/intents/common/intents.ts
13399 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { defaultAgentName, editingSessionAgentName, editorAgentName, editsAgentName, getChatParticipantNameFromId, terminalAgentName, vscodeAgentName } from '../../../platform/chat/common/chatAgents';67/**8* Create a mode name for gh telemetry9*/10export function participantIdToModeName(participantId: string): string {11const name = getChatParticipantNameFromId(participantId);1213switch (name) {14case defaultAgentName:15case vscodeAgentName:16case 'terminalPanel':17return 'ask';18case editsAgentName:19return 'agent';20case editingSessionAgentName:21return 'edit';22case editorAgentName:23case terminalAgentName: // Count terminal and "etc" as 'inline'24default:25return 'inline';26}27}2829