Remove obsolete api _version number (#225541)

This commit is contained in:
Rob Lourens
2024-08-13 16:19:58 -07:00
committed by GitHub
parent 4713458c2d
commit a9046c89b4
3 changed files with 0 additions and 16 deletions

View File

@@ -1464,8 +1464,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
// namespace: interactive
const interactive: typeof vscode.interactive = {
// TODO Can be deleted after another Insiders
_version: 1,
transferActiveChat(toWorkspace: vscode.Uri) {
checkProposedApiEnabled(extension, 'interactive');
return extHostChatAgents2.transferActiveChat(toWorkspace);
@@ -1490,10 +1488,6 @@ 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);

View File

@@ -236,14 +236,6 @@ declare module 'vscode' {
*/
export function createChatParticipant(id: string, handler: ChatExtendedRequestHandler): ChatParticipant;
/**
* Current version of the proposal. Changes whenever backwards-incompatible changes are made.
* If a new feature is added that doesn't break existing code, the version is not incremented. When the extension uses this new feature, it should set its engines.vscode version appropriately.
* But if a change is made to an existing feature that would break existing code, the version should be incremented.
* The chat extension should not activate if it doesn't support the current version.
*/
export const _version: 1 | number;
export function registerChatParticipantDetectionProvider(participantDetectionProvider: ChatParticipantDetectionProvider): Disposable;
}

View File

@@ -6,8 +6,6 @@
declare module 'vscode' {
export namespace interactive {
// Can be deleted after another insiders
export const _version: number;
export function transferActiveChat(toWorkspace: Uri): void;
}
}