*/
waitForModelDisposals(): Promise<void> {
}
private get isEmptyWindow(): boolean {
Frontier kind: Code frontier
unlabeled · c_bbc485c9fb3e
65 tests · 70109 LOC · 309 files · introduces 0 tests · 50 LOC · 3 files
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatService/chatService.test|title=ChatService untitled session materialization is idempotent/serialized (avoids duplicate sessions) a failed materialization does not poison the latch (retry re-attempts)|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatService/chatService.test|title=ChatService untitled session materialization is idempotent/serialized (avoids duplicate sessions) a load failure after alias registration does not poison the late-send re-target|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/instantiation/test/common/instantiationService.test|title=Instantiation Service @Param - fixed args|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/instantiation/test/common/instantiationService.test|title=Instantiation Service @Param - simple clase|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/model/chatSessionOperationLog.test|title=ChatSessionOperationLog Transform factories primitive uses strict equality|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/model/chatSessionOperationLog.test|title=ChatSessionOperationLog Transform factories primitive with custom comparator|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/model/chatSessionOperationLog.test|title=ChatSessionOperationLog Transform factories key uses custom comparator|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/model/chatSessionOperationLog.test|title=ChatSessionOperationLog Transform factories key uses strict equality by default|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
3 files ranked by introduced lines: 50 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
*/
waitForModelDisposals(): Promise<void> {
}
private get isEmptyWindow(): boolean {
constructor(
@ILogService private readonly logService: ILogService,
@ITelemetryService private readonly telemetryService: ITelemetryService,
@IExtensionService private readonly extensionService: IExtensionService,
@IInstantiationService private readonly instantiationService: IInstantiationService,
@IWorkspaceContextService private readonly workspaceContextService: IWorkspaceContextService,
@IChatSlashCommandService private readonly chatSlashCommandService: IChatSlashCommandService,
@IChatAgentService private readonly chatAgentService: IChatAgentService,
@IConfigurationService private readonly configurationService: IConfigurationService,
@IChatTransferService private readonly chatTransferService: IChatTransferService,
@IChatSessionsService private readonly chatSessionService: IChatSessionsService,
@IMcpService private readonly mcpService: IMcpService,
@IPromptsService private readonly promptsService: IPromptsService,
@IChatEntitlementService private readonly chatEntitlementService: IChatEntitlementService,
@ILanguageModelsService private readonly languageModelsService: ILanguageModelsService,
@IChatDebugService private readonly chatDebugService: IChatDebugService,
) {
super();
this._sessionModels = this._register(instantiationService.createInstance(ChatModelStore, {
createModel: (props: IStartSessionProps) => this._startSession(props),
willDisposeModel: async (model: ChatModel) => {
const localSessionId = LocalChatSessionUri.parseLocalSessionId(model.sessionResource);
if (localSessionId && this.shouldStoreSession(model)) {
}
}
this._register(this._sessionModels.onDidDisposeModel(model => {
clearChatMarks(model.sessionResource);
this.chatDebugService.endSession(model.sessionResource);
this.chatSessionService.clearMaterializedSessionResource(model.sessionResource);
this._onDidDisposeSession.fire({ sessionResources: [model.sessionResource], reason: 'cleared' });
this._chatServiceTelemetry = this.instantiationService.createInstance(ChatServiceTelemetry);
this._chatSessionStore = this._register(this.instantiationService.createInstance(ChatSessionStore));
this._chatSessionStore.migrateDataIfNeeded(() => this.migrateData());
const transferredData = this._chatSessionStore.getTransferredSessionData();
if (transferredData) {
this.trace('constructor', `Transferred session ${transferredData}`);
this._transferredSessionResource = transferredData;
}
this._register(storageService.onWillSaveState(() => this.saveState()));
this.chatModels = derived(this, reader => [...this._sessionModels.observable.read(reader).values()]);
this.requestInProgressObs = derived(reader => {
const models = this._sessionModels.observable.read(reader).values();
return Iterable.some(models, model => model.requestInProgress.read(reader));
}
public get editingSessions() {
async migrateDataIfNeeded(getInitialData: () => ISerializableChatsData | undefined): Promise<void> {
const data = this.storageService.get(ChatIndexStorageKey, this.getIndexStorageScope(), undefined);
const needsMigrationFromStorageService = !data;
if (needsMigrationFromStorageService) {
const initialData = getInitialData();
if (initialData) {
}
}
}
private async migrate(initialData: ISerializableChatsData): Promise<void> {
export class ChatServiceTelemetry {
constructor(
@ITelemetryService private readonly telemetryService: ITelemetryService,
chatServiceTelemetry.ts
) { }
notifyUserAction(action: IChatUserActionEvent): void {