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 { OperatingSystem, OS } from '../../../base/common/platform.js';
import { IShellLaunchConfig, TerminalShellType, PosixShellType, WindowsShellType, GeneralShellType } from './terminal.js';
/**
* Aggressively escape non-windows paths to prepare for being sent to a shell. This will do some
* escaping inaccurately to be careful about possible script injection via the file path. For
* example, we're trying to prevent this sort of attack: `/foo/file$(echo evil)`.
*/
export function escapeNonWindowsPath(path: string, shellType?: TerminalShellType): string {
let newPath = path;
if (newPath.includes('\\')
newPath newPath
path
path
path
escapeConfig ShellEscapeConfig
shellType
PosixShellTypeBash
PosixShellTypeSh
PosixShellTypeZsh
WindowsShellTypeGitBash
escapeConfig
path
path
path
PosixShellTypeFish
escapeConfig
path
path
path
GeneralShellTypePowerShell
escapeConfig
path
path
path
escapeConfig
path
path
path
bannedChars
newPath newPathbannedChars
newPath newPath
escapeConfignewPath
newPath
escapeConfignewPath
escapeConfignewPath
$separator$pathuserHomelength `
cwd
cwd
cwd cwd cwdlength
OperatingSystemWindows cwd cwd
cwd cwd
cwd
slc IShellLaunchConfig
slcstrictEnv