ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это 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 { extUriBiasedIgnorePathCase } from '../../../base/common/resources.js';
import { URI } from '../../../base/common/uri.js';
/**
* Result of {@link extractCdPrefix}: the directory the `cd` jumps to and the
* remaining command after the chain operator.
*/
export interface IExtractedCdPrefix {
readonly directory: string;
readonly command: string;
}
/**
* Extracts a `cd <dir> &&` (or PowerShell equivalent) prefix from a command
* line, returning the directory and remaining command. Does not check whether
* the directory matches anything — callers do that comparison themselves.
*
* The separator between the `cd` and the remaining command may be `&&` or a
* newline (bash treats a bare newline as a command separator like `;`).
* PowerShell additionally accepts `;`. The remaining command may span multiple
* lines (the model frequently emits `cd <dir>` on its own line followed by a
* multi-line script).
*
* Recognized forms:
* - bash: `cd <dir> && <suffix>`, `cd <dir>\n<suffix>`
* - powershell: `cd <dir> && <suffix>`, `cd <dir>; <suffix>`, `cd <dir>\n<suffix>`
* `cd /d <dir> && <suffix>`, `cd /d <dir>; <suffix>`
* `Set-Location <dir> && <suffix>`, `Set-Location <dir>; <suffix>`
* `Set-Location -Path <dir> && <suffix>`, `Set-Location -Path <dir>; <suffix>`
*
* Surrounding double quotes around `<dir>` are stripped.
*/
commandLine isPowerShell IExtractedCdPrefix
cdPrefixMatch commandLine
isPowerShell
cdDir cdPrefixMatchgroupsdir
cdSuffix cdPrefixMatchgroupssuffix
cdDir cdSuffix
cdDirPath cdDir
cdDirPath cdDirPath
cdDirPath cdDirPath
directory cdDirPath command cdSuffix
toolName
parameters Record
workingDirectory
workingDirectory parameters
isBash toolName
isPowerShell toolName
isBash isPowerShell
command parameterscommand
command
extracted command isPowerShell
extracted
extracteddirectory workingDirectory
parameterscommand extractedcommand
extractedDir workingDirectory
extractedDir
p p
trimmedExtracted extractedDir
trimmedWd workingDirectoryfsPath
trimmedExtracted trimmedWd
extractedUri
wdUri
extractedUri trimmedExtracted
wdUri trimmedWd
extUriBiasedIgnorePathCaseextractedUri wdUri