Skip to content

Commit 4b7d7be

Browse files
committed
revert
1 parent bc9b17b commit 4b7d7be

2 files changed

Lines changed: 1 addition & 73 deletions

File tree

src/@types/vscode.proposed.chatParticipantPrivate.d.ts

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
// version: 11
6+
// version: 10
77

88
declare module 'vscode' {
99

@@ -285,24 +285,4 @@ declare module 'vscode' {
285285
}
286286

287287
// #endregion
288-
289-
// #region LanguageModelProxyProvider
290-
291-
/**
292-
* Duplicated so that this proposal and languageModelProxy can be independent.
293-
*/
294-
export interface LanguageModelProxy extends Disposable {
295-
readonly uri: Uri;
296-
readonly key: string;
297-
}
298-
299-
export interface LanguageModelProxyProvider {
300-
provideModelProxy(forExtensionId: string, token: CancellationToken): ProviderResult<LanguageModelProxy>;
301-
}
302-
303-
export namespace lm {
304-
export function registerLanguageModelProxyProvider(provider: LanguageModelProxyProvider): Disposable;
305-
}
306-
307-
// #endregion
308288
}

src/@types/vscode.proposed.chatSessionsProvider.d.ts

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,9 @@ declare module 'vscode' {
7171
export interface ChatSessionItem {
7272
/**
7373
* Unique identifier for the chat session.
74-
*
75-
* @deprecated Will be replaced by `resource`
7674
*/
7775
id: string;
7876

79-
/**
80-
* The resource associated with the chat session.
81-
*
82-
* This is uniquely identifies the chat session and is used to open the chat session.
83-
*/
84-
resource: Uri | undefined;
85-
8677
/**
8778
* Human readable name of the session shown in the UI
8879
*/
@@ -148,11 +139,6 @@ declare module 'vscode' {
148139
// TODO: link request + response to encourage correct usage?
149140
readonly history: ReadonlyArray<ChatRequestTurn | ChatResponseTurn2>;
150141

151-
/**
152-
* Options configured for this session.
153-
*/
154-
readonly options?: { model?: LanguageModelChatInformation };
155-
156142
/**
157143
* Callback invoked by the editor for a currently running response. This allows the session to push items for the
158144
* current response and stream these in as them come in. The current response will be considered complete once the
@@ -180,32 +166,6 @@ declare module 'vscode' {
180166
* @param token A cancellation token that can be used to cancel the operation.
181167
*/
182168
provideChatSessionContent(sessionId: string, token: CancellationToken): Thenable<ChatSession> | ChatSession;
183-
184-
/**
185-
*
186-
* @param sessionId Identifier of the chat session being updated.
187-
* @param updates Collection of option identifiers and their new values. Only the options that changed are included.
188-
* @param token A cancellation token that can be used to cancel the notification if the session is disposed.
189-
*/
190-
provideHandleOptionsChange?(sessionId: string, updates: ReadonlyArray<ChatSessionOptionUpdate>, token: CancellationToken): void;
191-
192-
/**
193-
* Called as soon as you register (call me once)
194-
* @param token
195-
*/
196-
provideChatSessionProviderOptions?(token: CancellationToken): Thenable<ChatSessionProviderOptions> | ChatSessionProviderOptions;
197-
}
198-
199-
export interface ChatSessionOptionUpdate {
200-
/**
201-
* Identifier of the option that changed (for example `model`).
202-
*/
203-
readonly optionId: string;
204-
205-
/**
206-
* The new value assigned to the option. When `undefined`, the option is cleared.
207-
*/
208-
readonly value: string | undefined;
209169
}
210170

211171
export namespace chat {
@@ -252,16 +212,6 @@ declare module 'vscode' {
252212
supportsInterruptions?: boolean;
253213
}
254214

255-
export interface ChatSessionProviderOptions {
256-
/**
257-
* Set of available models.
258-
*/
259-
models?: LanguageModelChatInformation[];
260-
}
261-
262-
/**
263-
* @deprecated
264-
*/
265215
export interface ChatSessionShowOptions {
266216
/**
267217
* The editor view column to show the chat session in.
@@ -274,8 +224,6 @@ declare module 'vscode' {
274224
export namespace window {
275225
/**
276226
* Shows a chat session in the panel or editor.
277-
*
278-
* @deprecated
279227
*/
280228
export function showChatSession(chatSessionType: string, sessionId: string, options: ChatSessionShowOptions): Thenable<void>;
281229
}

0 commit comments

Comments
 (0)