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 { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
import { IRectangle } from '../../../../platform/window/common/window.js';
export const IScreenshotService = createDecorator<IScreenshotService>('screenshotService');
export interface IScreenshotService {
readonly _serviceBrand: undefined;
/**
* Captures a screenshot of the current window, optionally within a specified rectangle.
* Returns a JPEG data URL, or undefined if capture is not supported.
*/
captureScreenshot(rect?: IRectangle): Promise<string | undefined>;
}
/**
* Browser fallback — screenshot not available in web.
*/
export class BrowserScreenshotService implements IScreenshotService {
readonly _serviceBrand: undefined;
async captureScreenshot(_rect?: IRectangle): Promise<string | undefined> {
// Screen capture is not available in web browsers without permission APIs.
return undefined;
}
}