Implement "followup commands" for interactive session API (#176436)

* Implement "followup commands" for interactive session API

* Support icons

* Only support icons for command followups

* Remove todo
This commit is contained in:
Rob Lourens
2023-03-07 18:23:30 -05:00
committed by GitHub
parent 94138129c6
commit 3d6e57bea8
9 changed files with 57 additions and 15 deletions

View File

@@ -78,12 +78,19 @@ declare module 'vscode' {
export interface InteractiveResponseForProgress {
followups?: string[];
commands?: InteractiveResponseCommand[];
}
export interface InteractiveProgress {
content: string;
}
export interface InteractiveResponseCommand {
commandId: string;
args: any[];
title: string; // supports codicon strings
}
export interface InteractiveSessionProvider {
provideInitialSuggestions?(token: CancellationToken): ProviderResult<string[]>;
prepareSession(initialState: InteractiveSessionState | undefined, token: CancellationToken): ProviderResult<InteractiveSession>;