add requestChatAccess proposal

This commit is contained in:
Johannes
2023-07-19 15:04:44 +02:00
parent b085936579
commit 3cfa5b9ad4
9 changed files with 105 additions and 28 deletions

View File

@@ -1337,6 +1337,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
registerSlashCommand(name: string, command: vscode.SlashCommand) {
checkProposedApiEnabled(extension, 'chatSlashCommands');
return extHostChatSlashCommands.registerCommand(extension.identifier, name, command);
},
requestChatAccess(id: string) {
checkProposedApiEnabled(extension, 'chatRequestAccess');
return extHostChatProvider.requestChatResponseProvider(extension.identifier, id);
}
};