Add event fired when the user performs actions on interactive session responses (#176829)

* Add an id to responses that comes from the provider

* Add event fired when the user performs actions on interactive session responses

* Only show user action buttons when the provider has added a response ID
This commit is contained in:
Rob Lourens
2023-03-11 00:48:37 -05:00
committed by GitHub
parent 1d01754788
commit cd1d31179d
16 changed files with 306 additions and 79 deletions

View File

@@ -1229,6 +1229,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
addInteractiveRequest(context: vscode.InteractiveSessionRequestArgs) {
checkProposedApiEnabled(extension, 'interactive');
return extHostInteractiveSession.addInteractiveSessionRequest(context);
},
get onDidPerformUserAction() {
return extHostInteractiveSession.onDidPerformUserAction;
}
};
@@ -1435,7 +1438,8 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
TabInputInteractiveWindow: extHostTypes.InteractiveWindowInput,
TelemetryTrustedValue: TelemetryTrustedValue,
LogLevel: LogLevel,
EditSessionIdentityMatch: EditSessionIdentityMatch
EditSessionIdentityMatch: EditSessionIdentityMatch,
InteractiveSessionVoteDirection: extHostTypes.InteractiveSessionVoteDirection
};
};
}