@@ -73,46 +73,3 @@ async function initMessageHandler(context: ExecutionDetailsContext) {
7373 } as InitResponseMessage )
7474 }
7575}
76- << < < < << HEAD
77-
78- /**
79- * Handler for managing webview stage load, which updates load notifications.
80- * @param context The context object containing the necessary information for the webview.
81- */
82- async function loadStageMessageHandler ( context : ExecutionDetailsContext ) {
83- context . loaderNotification ?. progress . report ( { increment : 25 } )
84- setTimeout ( ( ) => {
85- context . loaderNotification ?. resolve ( )
86- } , 100 )
87- }
88-
89- /**
90- * Handler for making API calls from the webview and returning the response.
91- * @param request The request message containing the API to call and the parameters
92- * @param context The webview context used for returning the API response to the webview
93- */
94- function apiCallMessageHandler ( request : ApiCallRequestMessage , context : WebviewContext ) {
95- const logger = getLogger ( 'stepfunctions' )
96- const apiHandler = new WorkflowStudioApiHandler ( globals . awsContext . getCredentialDefaultRegion ( ) , context )
97- apiHandler . performApiCall ( request ) . catch ( ( error ) => logger . error ( '%s API call failed: %O' , request . apiName , error ) )
98- }
99-
100- /**
101- * Handles unsupported or unrecognized messages by sending a response to the webview. Ensures compatibility with future
102- * commands and message types, preventing issues if the user has an outdated extension version.
103- * @param context The context object containing information about the webview environment
104- * @param originalMessage The original message that was not supported
105- */
106- async function handleUnsupportedMessage ( context : ExecutionDetailsContext , originalMessage : Message ) {
107- const logger = getLogger ( 'stepfunctions' )
108-
109- logger . warn ( 'Received unsupported message: %O' , originalMessage )
110-
111- await context . panel . webview . postMessage ( {
112- messageType : MessageType . RESPONSE ,
113- command : Command . UNSUPPORTED_COMMAND ,
114- originalMessage,
115- } as UnsupportedMessage )
116- }
117- === = ===
118- >>> > >>> 5 aa458d7d ( feat ( stepfunctions ) : enable hardcoded execution details page )
0 commit comments