Skip to content

Commit 19ed864

Browse files
committed
Chat sessions view
1 parent 16c5a9a commit 19ed864

File tree

6 files changed

+565
-5
lines changed

6 files changed

+565
-5
lines changed

src/vs/workbench/api/browser/mainThreadChatSessions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ export class MainThreadChatSessions extends Disposable implements MainThreadChat
2323
super();
2424
}
2525

26-
$registerChatSessionItemProvider(handle: number, chatSessionType: string): void {
26+
$registerChatSessionItemProvider(handle: number, chatSessionType: string, label: string): void {
2727
// Register the provider handle - this tracks that a provider exists
2828
const provider: IChatSessionItemProvider = {
29+
label,
2930
chatSessionType,
3031
provideChatSessionItems: (token) => this._provideChatSessionItems(handle, token)
3132
};

src/vs/workbench/api/common/extHost.protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3102,7 +3102,7 @@ export interface MainThreadChatStatusShape {
31023102
}
31033103

31043104
export interface MainThreadChatSessionsShape extends IDisposable {
3105-
$registerChatSessionItemProvider(handle: number, chatSessionType: string): void;
3105+
$registerChatSessionItemProvider(handle: number, chatSessionType: string, label: string): void;
31063106
$unregisterChatSessionItemProvider(handle: number): void;
31073107
}
31083108

src/vs/workbench/api/common/extHostChatSessions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class ExtHostChatSessions extends Disposable implements ExtHostChatSessio
5151
const disposables = new DisposableStore();
5252

5353
this._statusProviders.set(handle, { provider, disposable: disposables });
54-
this._proxy.$registerChatSessionItemProvider(handle, chatSessionType);
54+
this._proxy.$registerChatSessionItemProvider(handle, chatSessionType, provider.label);
5555

5656
return {
5757
dispose: () => {

src/vs/workbench/contrib/chat/browser/chat.contribution.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ import { ChatCompatibilityNotifier, ChatExtensionPointHandler } from './chatPart
9494
import { ChatPasteProvidersFeature } from './chatPasteProviders.js';
9595
import { QuickChatService } from './chatQuick.js';
9696
import { ChatResponseAccessibleView } from './chatResponseAccessibleView.js';
97+
import './chatSessions.js';
9798
import { ChatSetupContribution } from './chatSetup.js';
9899
import { ChatStatusBarEntry } from './chatStatus.js';
99100
import { ChatVariablesService } from './chatVariables.js';
@@ -362,7 +363,7 @@ configurationRegistry.registerConfiguration({
362363
},
363364
[ChatConfiguration.AgentSessionsViewLocation]: {
364365
type: 'string',
365-
enum: ['disabled', 'showChatsMenu'],
366+
enum: ['disabled', 'showChatsMenu', 'view'],
366367
description: nls.localize('chat.sessionsViewLocation.description', "Controls where to show the agent sessions menu."),
367368
default: 'disabled',
368369
tags: ['experimental'],

0 commit comments

Comments
 (0)