55
66declare module 'vscode' {
77 /**
8- * Provides a list of chat sessions
8+ * Provides a list of information about chat sessions.
99 */
10- export interface ChatSessionsProvider extends Disposable {
10+ export interface ChatSessionItemProvider {
1111 /**
12- * Type to identify providers .
12+ * Label of the extension that registers the provider .
1313 */
14- readonly chatSessionType : string ;
14+ readonly label : string ;
1515
1616 /**
17- * Fired when chat sessions change .
17+ * Event that the provider can fire to signal that chat sessions have changed .
1818 */
19- readonly onDidChangeChatSessionContent : Event < void > ;
19+ readonly onDidChangeChatSessionItems : Event < void > ;
2020
2121 /**
22- * Provide a list of chat sessions.
23- * * /
24- provideChatSessions ( token : CancellationToken ) : Thenable < ChatSessionContent [ ] > ;
22+ * Provides a list of chat sessions.
23+ */
24+ provideChatSessionItems ( token : CancellationToken ) : ProviderResult < ChatSessionItem [ ] > ;
2525 }
2626
27- export interface ChatSessionContent {
27+ export interface ChatSessionItem {
2828 /**
29- * Identifies the session
30- * * /
31- uri : Uri ;
29+ * Unique identifier for the chat session.
30+ */
31+ id : string ;
3232
3333 /**
3434 * Human readable name of the session shown in the UI
@@ -42,6 +42,6 @@ declare module 'vscode' {
4242 }
4343
4444 export namespace chat {
45- export function registerChatSessionsProvider ( provider : ChatSessionsProvider ) : Disposable ;
45+ export function registerChatSessionItemProvider ( chatSessionType : string , provider : ChatSessionItemProvider ) : Disposable ;
4646 }
4747}
0 commit comments