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 { LRUCache } from '../../../../base/common/map.js';
import { getComparisonKey } from '../../../../base/common/resources.js';
import { URI } from '../../../../base/common/uri.js';
import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
import { CHAT_WIDGET_VIEW_STATE_CACHE_LIMIT, IChatWidgetViewState } from '../../../../workbench/contrib/chat/browser/chat.js';
export const ISessionsChatViewStateService = createDecorator<ISessionsChatViewStateService>('sessionsChatViewStateService');
export interface ISessionsChatViewStateService {
readonly _serviceBrand: undefined;
get(resource: URI): IChatWidgetViewState | undefined;
set(resource: URI, state: IChatWidgetViewState): void;
}
export class SessionsChatViewStateService implements ISessionsChatViewStateService {
declare readonly _serviceBrand: undefined;
private readonly _states = new LRUCache<string, IChatWidgetViewState>(CHAT_WIDGET_VIEW_STATE_CACHE_LIMIT);
get(resource: URI): IChatWidgetViewState | undefined {
return this._states.get(getComparisonKey(resource));
}
set(resource: URI, state: IChatWidgetViewState): void {
this._states.set(getComparisonKey(resource), state);
}
}