Skip to content

Commit d226d16

Browse files
Copilotalexr00
andauthored
Initial analysis
Agent-Logs-Url: https://github.com/microsoft/vscode-pull-request-github/sessions/2e5f5355-cccd-4ac6-b866-9d00dcd8b8b4 Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent f2e4ea6 commit d226d16

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,15 @@ declare module 'vscode' {
594594
/**
595595
* The initial option selections for the session, provided with the first request.
596596
* Contains the options the user selected (or defaults) before the session was created.
597+
*
598+
* @deprecated Use `inputState` instead
597599
*/
598600
readonly initialSessionOptions?: ReadonlyArray<{ optionId: string; value: string | ChatSessionProviderOptionItem }>;
601+
602+
/**
603+
* The current input state of the chat session.
604+
*/
605+
readonly inputState: ChatSessionInputState;
599606
}
600607

601608
export interface ChatSessionCapabilities {
@@ -692,6 +699,8 @@ declare module 'vscode' {
692699
*
693700
* These commands will be displayed at the bottom of the group.
694701
*
702+
* For extensions using the legacy `commands` API, these commands are passed the sessionResource as the first argument.
703+
*
695704
* For extensions that use the new `provideChatSessionInputState` API, these commands are passed a context object
696705
* `{ inputState: ChatSessionInputState; sessionResource: Uri | undefined }` that they can use to determine which session and options they are being invoked for.
697706
*/

0 commit comments

Comments
 (0)