mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user