mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
add support for fetching active chat session (#294992)
* add support for fetching active chat session * refactor: rename activeChatSession to activeChatPanelSession and update related events
This commit is contained in:
@@ -1044,6 +1044,14 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
checkProposedApiEnabled(extension, 'chatStatusItem');
|
||||
return extHostChatStatus.createChatStatusItem(extension, id);
|
||||
},
|
||||
get activeChatPanelSessionResource() {
|
||||
checkProposedApiEnabled(extension, 'chatParticipantPrivate');
|
||||
return extHostChatAgents2.activeChatPanelSessionResource;
|
||||
},
|
||||
onDidChangeActiveChatPanelSessionResource: (listeners, thisArgs?, disposables?) => {
|
||||
checkProposedApiEnabled(extension, 'chatParticipantPrivate');
|
||||
return _asExtensionEvent(extHostChatAgents2.onDidChangeActiveChatPanelSessionResource)(listeners, thisArgs, disposables);
|
||||
},
|
||||
};
|
||||
|
||||
// namespace: workspace
|
||||
|
||||
Reference in New Issue
Block a user