Get rid of bad Copilot Chat warning, add a proper API version (#212453)

This commit is contained in:
Rob Lourens
2024-05-10 10:24:14 -07:00
committed by GitHub
parent 26c4a07b47
commit ef54c4eb7b
4 changed files with 13 additions and 23 deletions

View File

@@ -1377,9 +1377,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
// namespace: interactive
const interactive: typeof vscode.interactive = {
// IMPORTANT
// this needs to be updated whenever the API proposal changes
_version: 1,
transferActiveChat(toWorkspace: vscode.Uri) {
checkProposedApiEnabled(extension, 'interactive');
return extHostChatAgents2.transferActiveChat(toWorkspace);
@@ -1404,6 +1401,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
// namespace: chat
const chat: typeof vscode.chat = {
// IMPORTANT
// this needs to be updated whenever the API proposal changes and breaks backwards compatibility
_version: 1,
registerChatResponseProvider(id: string, provider: vscode.ChatResponseProvider, metadata: vscode.ChatResponseProviderMetadata) {
checkProposedApiEnabled(extension, 'chatProvider');
return extHostLanguageModels.registerLanguageModel(extension, id, provider, metadata);