Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/import{ ICodeEditor }from'../../../../../editor/browser/editorBrowser.js';import{ ServicesAccessor }from'../../../../../editor/browser/editorExtensions.js';import{ AccessibleDiffViewerNext }from'../../../../../editor/browser/widget/diffEditor/commands.js';import{ localize }from'../../../../../nls.js';import{ AccessibleContentProvider, AccessibleViewProviderId, AccessibleViewType }from'../../../../../platform/accessibility/browser/accessibleView.js';import{ IAccessibleViewImplementation }from'../../../../../platform/accessibility/browser/accessibleViewRegistry.js';import{ ContextKeyExpr }from
IKeybindingService
IConfigurationService
IWorkbenchEnvironmentService
AccessibilityVerbositySettingId
TerminalContribCommandId
ChatContextKeyExprs ChatContextKeys
ChatAgentLocation ChatConfiguration ChatModeKind
isStickyPromptHeaderShown
FocusAgentSessionsAction
IChatWidgetService
ChatEditingShowChangesAction ViewPreviousEditsAction
priority
name
type AccessibleViewTypeHelp
when ContextKeyExprChatContextKeyslocationChatAgentLocationChat ChatContextKeysinQuickChat ChatContextKeyschatModeKindChatModeKindAsk ContextKeyExprChatContextKeysinChatSession ChatContextKeysisResponse ChatContextKeysisRequest
accessor ServicesAccessor
accessor
priority
name
type AccessibleViewTypeHelp
when ContextKeyExprChatContextKeysinQuickChat ContextKeyExprChatContextKeysinChatSession ChatContextKeysisResponse ChatContextKeysisRequest
accessor ServicesAccessor
accessor
priority
name
type AccessibleViewTypeHelp
when ContextKeyExprChatContextKeyExprsinEditingMode ChatContextKeysinChatInput
accessor ServicesAccessor
accessor
priority
name
type AccessibleViewTypeHelp
when ContextKeyExprChatContextKeyschatModeKindChatModeKindAgent ChatContextKeysinChatInput
accessor ServicesAccessor
accessor
type keybindingService IKeybindingService supportsFileReferences isSessionsWindow stickyPromptHeaderShown
content
type type type type
content
type type type
type
content
content
content
content
content
content
content
content
content
content
content
supportsFileReferences
content
content
content
content
content
content
content
content
content
type
content
content
content
content
content
content keybindingService type
content keybindingService type
content keybindingService type
content
content
content
content
content
stickyPromptHeaderShown
content
content
content
content
content
content
content
content
content
content
isSessionsWindow
content
content
content
type type
type
content
content
content
content
content
content
content
content
type
content
content
content ChatConfigurationGlobalAutoApprove
content
content
content
content
content
content
content
content
content
content
content
content
content
content
content
content
content
content
content
content
content
content AccessibleDiffViewerNextid
content
type type type
content
isSessionsWindow type type type
content
content
content
content
content
accessor ServicesAccessor editor ICodeEditor type AccessibleContentProvider
widgetService accessorIChatWidgetService
keybindingService accessorIKeybindingService
environmentService accessorIWorkbenchEnvironmentService
configurationService accessorIConfigurationService
widget widgetServicelastFocusedWidget
widget
inputEditor ICodeEditor widgetinputEditor
domNode inputEditor
domNode
cachedPosition inputEditor
inputEditor
helpText type keybindingService widgetsupportsFileReferences environmentServiceisSessionsWindow widget configurationService
type AccessibleViewProviderIdPanelChat type AccessibleViewProviderIdInlineChat type AccessibleViewProviderIdAgentChat AccessibleViewProviderIdQuickChat
type AccessibleViewTypeHelp
helpText
type type type type
cachedPosition
inputEditorcachedPosition
inputEditor
type
ctrl editor
ctrl
type AccessibilityVerbositySettingIdInlineChat AccessibilityVerbositySettingIdChat
keybindingService IKeybindingService type focus
kbs
fallback
focus
kbs keybindingService
focus
kbs keybindingService
kbs keybindingService
kbslength
fallback
kb
type type
focus
kb kbskb kb
kb kbskb kb
focus
kb kbskb kb
kb kbskb kb
kb fallback
'File change summaries show the total files, additions, and deletions. Focus the disclosure and press Enter or Space to show or hide the individual files. Focus an additions and deletions label and press Enter or Space to open the changes in a diff editor.'
)
)
;
}
if
(
===
'panelChat'
||
===
'quickChat'
||
===
'agentView'
)
{
if
(
===
'quickChat'
)
{
.
push
(
localize
(
'chat.overview'
,
'The quick chat view is comprised of an input box and a request/response list. The input box is used to make requests and the list is used to display responses.'
)
)
;
.
push
(
localize
(
'chat.differenceQuick'
,
'The quick chat view is a transient interface for making and viewing requests, while the panel chat view is a persistent interface that also supports navigating suggested follow-up questions.'
)
)
;
}
else
{
.
push
(
localize
(
'chat.differencePanel'
,
'The chat view is a persistent interface that also supports navigating suggested follow-up questions, while the quick chat view is a transient interface for making and viewing requests.'
)
)
;
.
push
(
localize
(
'workbench.action.chat.newChat'
,
'To create a new chat session, invoke the New Chat command{0}.'
,
'<keybinding:workbench.action.chat.newChat>'
)
)
;
.
push
(
localize
(
'workbench.action.chat.focusAgentSessionsViewer'
,
'You can focus the agent sessions list by invoking the Focus Agent Sessions command{0}.'
,
`<keybinding:${FocusAgentSessionsAction.id}>`
)
)
;
.
push
(
localize
(
'chat.externalSessionFilter'
,
'The agent sessions filter includes an External submenu. Use it to choose whether external sessions from another application are shown for the last 24 hours, the last 7 days, always, or not at all.'
)
)
;
.
push
(
localize
(
'workbench.action.openAgentsWindow'
,
'To open the Agents Window, invoke the Open Agents Window command{0}. In screen reader mode, this keybinding includes Alt to avoid conflicts with screen reader shortcuts.'
,
'<keybinding:workbench.action.openAgentsWindow>'
)
)
;
.
push
(
localize
(
'workbench.action.chat.openAgentHostFolderPicker'
,
'When starting an agent session in a multi-root workspace, you can choose which root folder it runs in by invoking the Folder command{0}, then selecting a folder from the list.'
'When an agent session exposes approval presets, use Tab to reach the Approvals picker and choose how it handles workspace access, commands, and the internet.'
)
)
;
}
.
push
(
localize
(
'chat.requestHistory'
,
'In the input box, use up and down arrows to navigate your request history. Edit input and use enter or the submit button to run a new request.'
)
)
;
.
push
(
localize
(
'chat.vscodePet'
,
'Type /vscode-pet to show or hide the VS Code pet above the input. One pet appears in whichever editor or Agents window is active. Drag it around the chat with the mouse and release it to drop it, or flick it in any direction to throw it along the gesture before gravity pulls it down. If it falls past the input, a despawn effect appears at the bottom and a respawn effect appears at the top before it automatically returns to the input. Moving the pointer rapidly between the pet\u2019s left and right sides makes it dizzy. With the keyboard, use Tab to focus the pet, then the left and right arrows to make it hop along the input until it reaches an edge. Hold Shift with the left or right arrow to throw it toward a wall; rapidly alternate the unmodified arrows to make it dizzy. Press Enter or Space while it is resting to interact with it. When an achievement unlocks, the pet shows a gold star for ten seconds; activate the pet during that time to open Achievements. Open its context menu{0} (for example Shift+F10), use the up and down arrow keys to choose Achievements, Go on the Run, Come Back, Grow, Shrink, Reset Size, Stable Colors, or Insiders Colors, and press Enter to activate the choice. Grow and Shrink change its size in twenty-percent steps, while Reset Size restores its default size. The pet position and selected size are shared across chats and windows and remembered after you restart.'
,
'<keybinding:editor.action.showContextMenu>'
)
)
;
if
(
)
{
.
push
(
localize
(
'chat.attachments.inlineReferences'
,
'To mention an attached context item at a specific position without removing it from the attached context, type # or @ and select the attachment from the suggestions.'
)
)
;
.
push
(
localize
(
'chat.attachments.inlineReferenceHover'
,
'To inspect an inline attachment reference, place the cursor on it and invoke Show or Focus Hover{0}. Image references include a preview, while file and folder references include their path.'
,
'<keybinding:editor.action.showHover>'
)
)
;
}
.
push
(
localize
(
'chat.attachments.removal'
,
'To remove attached contexts, focus an attachment and press Delete or Backspace.'
)
)
;
.
push
(
localize
(
'workbench.action.chat.toggleSpeechToText'
,
'To dictate your request into the input box, invoke the Dictate command{0}. Invoke it again to stop; recording start and stop are indicated by accessibility signals.'
'To choose a microphone or turn off dictation or Voice Mode, focus the microphone button in the input toolbar and open its context menu{0} (for example Shift+F10).'
,
'<keybinding:editor.action.showContextMenu>'
)
)
;
.
push
(
localize
(
'chat.voiceInputMode.segmented'
,
'When the segmented voice input control is enabled, the input toolbar offers Dictation and Voice Mode. A connected hands-free session also offers Mute or Unmute Microphone; manual Voice Mode instead offers Start or Stop Listening, where stopping sends the completed turn. Each button can be focused and activated with Enter or Space.'
)
)
;
.
push
(
localize
(
'chat.voiceInputMode.holdToTalk'
,
'In manual Voice Mode, the Start or Stop Listening button toggles listening when tapped, or you can press and hold it to talk and release to send. You can also hold the Voice Mode: Hold to Talk keybinding{0} to talk and release to send; this interrupts the assistant to barge in.'
'The first time Voice Mode starts, an introduction appears above the input box. Tab to reach it, then use the arrow keys to move between the available voices; Enter or Space plays a voice and keeps it for future conversations. Its description also contains two links: Settings, which opens the Voice Mode settings, and How It Responds, which opens a file for customizing what the agent says back. Voice Mode stays connected but does not listen while the introduction is open. Press Escape, or activate the Close button, to dismiss it and return to the input box.'
)
)
;
if
(
===
'agentView'
)
{
.
push
(
localize
(
'chat.voiceInputMode.agentProgress'
,
'When the experimental agents.voice.agentProgress setting is enabled, Voice Mode Agent requests may speak brief progress updates while investigating, planning, editing, validating, or recovering from a problem.'
)
)
;
}
.
push
(
localize
(
'chat.inspectResponse'
,
'In the input box, inspect the last response in the accessible view{0}. Thinking content is included in order by default.'
,
'<keybinding:editor.action.accessibleView>'
)
)
;
.
push
(
localize
(
'chat.inspectResponseThinkingToggle'
,
'To include or exclude thinking content in the accessible view, run the Toggle Thinking Content in Accessible View command from the Command Palette.'
)
)
;
.
push
(
localize
(
'chat.completedResponseDisclosure'
,
'When completed response collapsing is enabled, the final response remains visible while earlier work is collapsed. Use Tab to focus the work disclosure and press Enter or Space to show or hide that work.'
)
)
;
.
push
(
localize
(
'chat.subagentPill'
,
'When a subagent pill appears in a response, use Tab to focus it and press Enter or Space to open that subagent chat.'
)
)
;
.
push
(
localize
(
'workbench.action.chat.focus'
,
'To focus the chat request and response list, invoke the Focus Chat command{0}. This will move focus to the most recent response, which you can then navigate using the up and down arrow keys.'
,
getChatFocusKeybindingLabel
(
,
,
'last'
)
)
)
;
.
push
(
localize
(
'workbench.action.chat.focusLastFocusedItem'
,
'To return to the last chat response you focused, invoke the Focus Last Focused Chat Response command{0}.'
,
getChatFocusKeybindingLabel
(
,
,
'lastFocused'
)
)
)
;
.
push
(
localize
(
'workbench.action.chat.focusInput'
,
'To focus the input box for chat requests, invoke the Focus Chat Input command{0}.'
,
getChatFocusKeybindingLabel
(
,
,
'input'
)
)
)
;
.
push
(
localize
(
'chat.progressVerbosity'
,
'As the chat request is being processed, you will hear verbose progress updates if the request takes more than 4 seconds. This includes information like searched text for <search term> with X results, created file <file_name>, or read file <file path>. This can be disabled with accessibility.verboseChatProgressUpdates.'
)
)
;
.
push
(
localize
(
'chat.announcement'
,
'Chat responses will be announced as they come in. A response will indicate the number of code blocks, if any, and then the rest of the response.'
)
)
;
.
push
(
localize
(
'workbench.action.chat.nextCodeBlock'
,
'To focus the next code block within a response, invoke the Chat: Next Code Block command{0}.'
'When a chat question is focused, move to the next question{0}.'
,
'<keybinding:workbench.action.chat.nextQuestion>'
)
)
;
.
push
(
localize
(
'chat.planReviewEditor'
,
'When a plan is ready for review, open it from the chat response to edit the plan and add line comments. Use the editor toolbar to navigate, clear, or submit feedback. Choose an implementation action from the plan review in Chat.'
)
)
;
.
push
(
localize
(
'chat.focusNotice'
,
'When a tip, notification or introduction appears above the input, toggle focus between it and the chat input{0}.'
,
'<keybinding:workbench.action.chat.focusTip>'
)
)
;
if
(
)
{
.
push
(
localize
(
'sessions.selectionSideChat'
,
'When you select text within an assistant response, an Ask Question input appears near the selection. Type a question and press Enter to start a new side chat scoped to that selection.'
)
)
;
.
push
(
localize
(
'sessions.requestOrigin'
,
'Some requests include a source chat button above the message. Use Tab to focus it, then Enter or Space to open the originating chat.'
)
)
;
.
push
(
localize
(
'sessions.threadCoordinationResult'
,
'Completed create-chat and send-message operations can include a target chat button in the response. Use Tab to focus it, then Enter or Space to open that chat.'
)
)
;
}
}
if
(
===
'editsView'
||
===
'agentView'
)
{
if
(
===
'agentView'
)
{
.
push
(
localize
(
'chatAgent.overview'
,
'The chat agent view is used to apply edits across files in your workspace, enable running commands in the terminal, and more.'
)
)
;
}
else
{
.
push
(
localize
(
'chatEditing.overview'
,
'The chat editing view is used to apply edits across files.'
)
)
;
}
.
push
(
localize
(
'chatEditing.format'
,
'It is comprised of an input box and a file working set (Shift+Tab).'
)
)
;
.
push
(
localize
(
'chatEditing.expectation'
,
'When a request is made, a progress indicator will play while the edits are being applied.'
)
)
;
.
push
(
localize
(
'chatEditing.review'
,
'Once the edits are applied, a sound will play to indicate the document has been opened and is ready for review. The sound can be disabled with accessibility.signals.chatEditModifiedFile.'
)
)
;
.
push
(
localize
(
'chatEditing.sections'
,
'Navigate between edits in the editor with navigate previous{0} and next{1}'
,
'<keybinding:chatEditor.action.navigatePrevious>'
,
'<keybinding:chatEditor.action.navigateNext>'
)
)
;
.
push
(
localize
(
'chatEditing.acceptHunk'
,
'In the editor, Keep{0}, Undo{1}, or Toggle the Diff{2} for the current Change.'
,
'<keybinding:chatEditor.action.acceptHunk>'
,
'<keybinding:chatEditor.action.undoHunk>'
,
'<keybinding:chatEditor.action.toggleDiff>'
)
)
;
.
push
(
localize
(
'chatEditing.undoKeepSounds'
,
'Sounds will play when a change is accepted or undone. The sounds can be disabled with accessibility.signals.editsKept and accessibility.signals.editsUndone.'
)
)
;
if
(
===
'agentView'
)
{
.
push
(
localize
(
'chatAgent.userActionRequired'
,
'An alert will indicate when user action is required. For example, if the agent wants to run something in the terminal, you will hear Action Required: Run Command in Terminal.'
)
)
;
.
push
(
localize
(
'chatAgent.runCommand'
,
'To take the action, use the accept tool command{0}.'
,
'<keybinding:workbench.action.chat.acceptTool>'
)
)
;
.
push
(
localize
(
'chatAgent.autoApprove'
,
'To automatically approve tool actions without manual confirmation, set {0} to {1} in your settings.'
,
.
,
'true'
)
)
;
.
push
(
localize
(
'chatAgent.acceptTool'
,
'To accept a tool action, use the Accept Tool Confirmation command{0}.'
,
'<keybinding:workbench.action.chat.acceptTool>'
)
)
;
.
push
(
localize
(
'chatAgent.openEditedFilesSetting'
,
'By default, when edits are made to files, they will be opened. To change this behavior, set accessibility.openChatEditedFiles to false in your settings.'
)
)
;
.
push
(
localize
(
'chatAgent.focusTodosView'
,
'To toggle focus between the Agent TODOs view and the chat input, use Agent TODOs: Toggle Focus{0}.'
"Inline chat occurs within a code editor and takes into account the current selection. It is useful for making changes to the current editor. For example, fixing diagnostics, documenting or refactoring code. Keep in mind that AI generated code may be incorrect."
)
)
;
.
push
(
localize
(
'inlineChat.access'
,
"It can be activated via code actions or directly using the command: Inline Chat: Start Inline Chat{0}."
,
'<keybinding:inlineChat.start>'
)
)
;
.
push
(
localize
(
'inlineChat.requestHistory'
,
'In the input box, use Show Previous{0} and Show Next{1} to navigate your request history. Edit input and use enter or the submit button to run a new request.'
,
'<keybinding:history.showPrevious>'
,
'<keybinding:history.showNext>'
)
)
;
.
push
(
localize
(
'inlineChat.inspectResponse'
,
'In the input box, inspect the response in the accessible view{0}.'
,
'<keybinding:editor.action.accessibleView>'
)
)
;
.
push
(
localize
(
'inlineChat.contextActions'
,
"Context menu actions may run a request prefixed with a /. Type / to discover such ready-made commands."
)
)
;
.
push
(
localize
(
'inlineChat.fix'
,
"If a fix action is invoked, a response will indicate the problem with the current code. A diff editor will be rendered and can be reached by tabbing."
)
)
;
.
push
(
localize
(
'inlineChat.diff'
,
"Once in the diff editor, enter review mode with{0}. Use up and down arrows to navigate lines with the proposed changes."
,
.
)
)
;
.
push
(
localize
(
'inlineChat.toolbar'
,
"Use tab to reach conditional parts like commands, status, message responses and more."
)
)
;
}
// Find is enabled on the chat view, chat editors and the Agents window, but not on quick
// chat, inline chat or the input window (see `enableFind` in each host's view options).
if
(
===
'panelChat'
||
===
'editsView'
||
===
'agentView'
)
{
.
push
(
localize
(
'chat.find'
,
'To search the chat transcript, invoke Find in Chat{0}. Find Next{1} and Find Previous{2} move between results, scrolling each one into view.'
,
'<keybinding:workbench.action.chat.find>'
,
'<keybinding:workbench.action.chat.findNext>'
,
'<keybinding:workbench.action.chat.findPrevious>'
)
)
;
}
if
(
!
&&
(
===
'panelChat'
||
===
'editsView'
||
===
'agentView'
)
)
{
.
push
(
localize
(
'chat.renameSession'
,
'To rename the current chat session when supported, invoke the Rename command{0}. Agent Host sessions can be renamed after sending the first request.'
,
`<keybinding:${AGENT_SESSION_RENAME_ACTION_ID}>`
)
)
;
}
.
push
(
localize
(
'chat.attachments.pastedText'
,
"Long pasted text is stored as an attached text item and replaced in the input with a numbered inline reference."
)
)
;
.
push
(
localize
(
'chat.paste.asText'
,
"To paste the clipboard as plain text, without converting it to Markdown or storing it as an attachment, invoke Paste as Text{0}."
,
'<keybinding:editor.action.pasteAsText>'
)
)
;
.
push
(
localize
(
'chat.signals'
,
"Accessibility Signals can be changed via settings with a prefix of signals.chat. By default, if a request takes more than 4 seconds, you will hear a sound indicating that progress is still occurring."
)
)
;
return
.
join
(
'\n'
)
;
}
export
function
getChatAccessibilityHelpProvider
(
:
,
:
|
undefined
,
:
'panelChat'
|
'inlineChat'
|
'quickChat'
|
'editsView'
|
'agentView'
)
:
|
undefined
{
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
;
if
(
!
)
{
return
;
}
const
:
=
.
;
const
=
.
getDomNode
(
)
??
undefined
;
if
(
!
)
{
return
;
}
const
=
.
getPosition
(
)
;
.
getSupportedActions
(
)
;
const
=
getAccessibilityHelpText
(
,
,
.
,
.
,
isStickyPromptHeaderShown
(
,
)
)
;
return
new
AccessibleContentProvider
(
===
'panelChat'
?
.
:
===
'inlineChat'
?
.
:
===
'agentView'
?
.
:
.
,
{
:
.
}
,
(
)
=>
,
(
)
=>
{
if
(
===
'quickChat'
||
===
'editsView'
||
===
'agentView'
||
===
'panelChat'
)
{
if
(
)
{
.
setPosition
(
)
;
}
.
focus
(
)
;
}
else
if
(
===
'inlineChat'
)
{
// TODO@jrieken find a better way for this
const
=
<
{
focus
(
)
:
void
}
|
undefined
>
?.
getContribution
(
INLINE_CHAT_ID
)
;
?.
focus
(
)
;
}
}
,
===
'inlineChat'
?
.
:
.
,
)
;
}
// The when clauses for actions may not be true when we invoke the accessible view, so we need to provide the keybinding label manually