mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
Add API for custom slash command providers (#181604)
Likely temporary API for experimentation
This commit is contained in:
@@ -1271,6 +1271,13 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
}
|
||||
};
|
||||
|
||||
const interactiveSlashCommands: typeof vscode.interactiveSlashCommands = {
|
||||
registerSlashCommandProvider(chatProviderId: string, provider: vscode.InteractiveSlashCommandProvider) {
|
||||
checkProposedApiEnabled(extension, 'interactiveSlashCommands');
|
||||
return extHostInteractiveSession.registerSlashCommandProvider(extension, chatProviderId, provider);
|
||||
}
|
||||
};
|
||||
|
||||
// namespace: ai
|
||||
const ai: typeof vscode.ai = {
|
||||
registerSemanticSimilarityProvider(provider: vscode.SemanticSimilarityProvider) {
|
||||
@@ -1290,6 +1297,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
env,
|
||||
extensions,
|
||||
interactive,
|
||||
interactiveSlashCommands,
|
||||
l10n,
|
||||
languages,
|
||||
notebooks,
|
||||
|
||||
Reference in New Issue
Block a user