mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
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:
@@ -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
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user