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.
*--------------------------------------------------------------------------------------------*/
//! Resolves the platform "user data" directory used to home the
//! agent-host discovery registry (`<userDataPath>/agent-host/local-endpoint/entries/`,
//! a directory of one atomic entry file per agent host instance).
//!
//! Mirrors the precedence and per-platform rules implemented by the
//! TypeScript resolver in `src/vs/platform/environment/node/userDataPath.ts`
//! (which is passed `product.nameShort`), with one deliberate ordering
//! change: an explicit `--user-data-dir` always wins here. In the Electron
//! main process, `VSCODE_PORTABLE`/`VSCODE_APPDATA` are checked *before* the
//! CLI argument only to work around Electron implicitly re-injecting
//! `--user-data-dir` into argv; that quirk does not apply to this
//! standalone-CLI-only flag, so we can use the simpler, more predictable
//! "explicit flag always wins" order.
use std::path::PathBuf;
use crate::constants::PRODUCT_NAME_SHORT;
/// The platform family used to select default user-data directory rules.
/// Kept distinct from `std::env::consts::OS` so unit tests can exercise all
/// three branches regardless of the host running the tests.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum
target_os
target_os
vscode_portable
vscode_appdata
appdata
userprofile
xdg_config_home
home_dir
vscode_portable
vscode_appdata
appdata
userprofile
xdg_config_home
home_dir
name
name
v v v
_
explicit
explicit
explicit
product_name
os
env
explicit explicit
explicit os
portable envvscode_portable
portable os os
appdata envvscode_appdata
appdata os product_name os
product_name os env
product_name
os
env
os
base appdata envappdata
appdata
userprofile envuserprofile
base userprofile os
base os
env
base product_name os
base env os
base base os
base product_name os
base xdg envxdg_config_home
xdg
env os
base product_name os
env
envhome_dir
path os
os
bytes path
has_drive_root bytes
bytes
bytes
bytes bytes
has_drive_root path path
path
base component os
sep os
s base
s
ssep
scomponent
s
path os
path os
path
cwd cwdpath
_ path
home
home_dir home
env
envappdata
path env
path
env
envuserprofile
path env
path
env
path env
path
env
envxdg_config_home
path env
path
env
path env
path
env
envvscode_portable
path env
path
env
envvscode_appdata
path env
path
env
envvscode_portable
envvscode_appdata
path
env
path
env
path
env
path
env
path env
path