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 fs from 'fs';
import path from 'path';
import crypto from 'crypto';
import { getCurrentExtensionTarget } from '../../lib/extensionTarget.ts';
const productjson = JSON.parse(fs.readFileSync(path.join(import.meta.dirname, '../../../product.json'), 'utf8'));
const shasum = crypto.createHash('sha256');
// Only fold the build target into the key when at least one built-in extension is platform-specific.
// Otherwise the cache stays shared across platforms (as before), so a single platform populates it
// and the rest reuse it instead of each re-downloading.
const hasPlatformSpecific = (productjson.builtInExtensions as { platformSpecific?: unknown }[]).some(ext => ext.platformSpecific);
const target = hasPlatformSpecific ? getCurrentExtensionTarget() : undefined;
if (target) {
shasum.update(`target:${target}`);
}
for (const ext of productjson.builtInExtensions) {
shasum.update(`${ext.name}@${ext.version}`);
if (ext.platformSpecific && target && ext.platformSpecific[target]) {
shasum.update(`:${ext.platformSpecific[target]}`);
}
}
process.stdout.write(shasum.digest('hex'));