Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/contrib/chat/common/tools/terminalToolIds.ts
13406 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
/**
7
* Terminal-related tool IDs shared between chat infrastructure and terminal
8
* contrib. The canonical enum lives here so that `chat/common` can reference
9
* the IDs without depending on `terminalContrib/`.
10
*
11
* `terminalContrib/chatAgentTools/browser/tools/toolIds.ts` re-exports this
12
* enum so existing imports in that layer continue to work.
13
*/
14
export const enum TerminalToolId {
15
RunInTerminal = 'run_in_terminal',
16
SendToTerminal = 'send_to_terminal',
17
GetTerminalOutput = 'get_terminal_output',
18
KillTerminal = 'kill_terminal',
19
TerminalSelection = 'terminal_selection',
20
TerminalLastCommand = 'terminal_last_command',
21
ConfirmTerminalCommand = 'vscode_get_terminal_confirmation',
22
CreateAndRunTask = 'create_and_run_task',
23
GetTaskOutput = 'get_task_output',
24
RunTask = 'run_task',
25
}
26
27