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 * as fs from 'fs/promises';
import { URI } from '../../../base/common/uri.js';
import { workspacelessScratchDir } from '../common/workspacelessScratchDir.js';
/**
* Stable, deterministic per-session scratch directory for a workspace-less
* (workspace-less chat) session: `<userHome>/.copilot/chats/<sessionId>`. Shared by the
* Copilot and Claude agents so both resolve the same cwd for a session that was
* created with no `workingDirectory`.
*/
/** Ensures the workspace-less scratch dir exists (mkdir -p), returning it. */
export async function ensureWorkspacelessScratchDir(userHome: URI, sessionId: string): Promise<URI> {
const dir = workspacelessScratchDir(userHome, sessionId);
await fs.mkdir(dir.fsPath, { recursive: true });
return dir;
}