mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
Get rid of bad Copilot Chat warning, add a proper API version (#212453)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user