mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-26 13:19:42 +00:00
Remove obsolete api _version number (#225541)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user