Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/util/common/test/shims/terminal.ts
13405 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
export enum TerminalShellExecutionCommandLineConfidence {
8
/**
9
* The command line value confidence is low. This means that the value was read from the
10
* terminal buffer using markers reported by the shell integration script. Additionally one
11
* of the following conditions will be met:
12
*
13
* - The command started on the very left-most column which is unusual, or
14
* - The command is multi-line which is more difficult to accurately detect due to line
15
* continuation characters and right prompts.
16
* - Command line markers were not reported by the shell integration script.
17
*/
18
Low = 0,
19
20
/**
21
* The command line value confidence is medium. This means that the value was read from the
22
* terminal buffer using markers reported by the shell integration script. The command is
23
* single-line and does not start on the very left-most column (which is unusual).
24
*/
25
Medium = 1,
26
27
/**
28
* The command line value confidence is high. This means that the value was explicitly sent
29
* from the shell integration script or the command was executed via the
30
* {@link TerminalShellIntegration.executeCommand} API.
31
*/
32
High = 2
33
}
34