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 { Disposable } from '../../../base/common/lifecycle.js';
import { IChatEntitlementService } from '../../services/chat/common/chatEntitlementService.js';
import { IExtHostContext, extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
import { IQuotaSnapshotsDto, MainContext, MainThreadChatQuotaShape } from '../common/extHost.protocol.js';
@extHostNamedCustomer(MainContext.MainThreadChatQuota)
export class MainThreadChatQuota extends Disposable implements MainThreadChatQuotaShape {
constructor(
extHostContext: IExtHostContext,
@IChatEntitlementService private readonly _chatEntitlementService: IChatEntitlementService,
) {
super();
}
$updateQuotas(quotas: IQuotaSnapshotsDto): void {
this._chatEntitlementService.acceptQuotas({ ...this._chatEntitlementService.quotas, ...quotas });
}
}