Add skill provider API (#287948)

This commit is contained in:
Paul
2026-01-16 12:18:44 -08:00
committed by GitHub
parent 5afeaf6d19
commit 14cddf3952
4 changed files with 87 additions and 12 deletions

View File

@@ -1558,6 +1558,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
checkProposedApiEnabled(extension, 'chatPromptFiles');
return extHostChatAgents2.registerPromptFileProvider(extension, PromptsType.prompt, provider);
},
registerSkillProvider(provider: vscode.SkillProvider): vscode.Disposable {
checkProposedApiEnabled(extension, 'chatPromptFiles');
return extHostChatAgents2.registerPromptFileProvider(extension, PromptsType.skill, provider);
},
};
// namespace: lm
@@ -1963,6 +1967,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
CustomAgentChatResource: extHostTypes.CustomAgentChatResource,
InstructionsChatResource: extHostTypes.InstructionsChatResource,
PromptFileChatResource: extHostTypes.PromptFileChatResource,
SkillChatResource: extHostTypes.SkillChatResource,
};
};
}