rename mode to agent (#272282)

* rename mode to agent

* update

* update

* fix tests

* update

* update

* update

* update

* update

* update
This commit is contained in:
Martin Aeschlimann
2025-10-20 21:09:44 +02:00
committed by GitHub
parent 9d45ef57fa
commit ab73e46a31
39 changed files with 508 additions and 464 deletions

View File

@@ -35,7 +35,7 @@ import { KeybindingWeight } from '../../../../platform/keybinding/common/keybind
import { observableConfigValue } from '../../../../platform/observable/common/platformObservableUtils.js';
import { IChatAgentService } from '../../chat/common/chatAgents.js';
import { ChatAgentLocation } from '../../chat/common/constants.js';
import { MODE_FILE_EXTENSION } from '../../chat/common/promptSyntax/config/promptFileLocations.js';
import { AGENT_FILE_EXTENSION, LEGACY_MODE_FILE_EXTENSION } from '../../chat/common/promptSyntax/config/promptFileLocations.js';
import { INSTRUCTIONS_LANGUAGE_ID, PROMPT_LANGUAGE_ID } from '../../chat/common/promptSyntax/promptTypes.js';
import { ACTION_START, CTX_INLINE_CHAT_V1_ENABLED, CTX_INLINE_CHAT_VISIBLE, InlineChatConfigKeys } from '../common/inlineChat.js';
import { AbstractInline1ChatAction } from './inlineChatActions.js';
@@ -51,7 +51,8 @@ const IGNORED_LANGUAGE_IDS = new Set([
'search-result',
INSTRUCTIONS_LANGUAGE_ID,
PROMPT_LANGUAGE_ID,
MODE_FILE_EXTENSION
LEGACY_MODE_FILE_EXTENSION,
AGENT_FILE_EXTENSION
]);
export const CTX_INLINE_CHAT_SHOWING_HINT = new RawContextKey<boolean>('inlineChatShowingHint', false, localize('inlineChatShowingHint', "Whether inline chat shows a contextual hint"));