Path: blob/main/extensions/copilot/src/util/common/test/shims/terminal.ts
13405 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*--------------------------------------------------------------------------------------------*/456export enum TerminalShellExecutionCommandLineConfidence {7/**8* The command line value confidence is low. This means that the value was read from the9* terminal buffer using markers reported by the shell integration script. Additionally one10* of the following conditions will be met:11*12* - The command started on the very left-most column which is unusual, or13* - The command is multi-line which is more difficult to accurately detect due to line14* continuation characters and right prompts.15* - Command line markers were not reported by the shell integration script.16*/17Low = 0,1819/**20* The command line value confidence is medium. This means that the value was read from the21* terminal buffer using markers reported by the shell integration script. The command is22* single-line and does not start on the very left-most column (which is unusual).23*/24Medium = 1,2526/**27* The command line value confidence is high. This means that the value was explicitly sent28* from the shell integration script or the command was executed via the29* {@link TerminalShellIntegration.executeCommand} API.30*/31High = 232}3334