Skip to content

Commit c7c7555

Browse files
author
Diler Zaza
committed
Reverting changes
1 parent ea965d9 commit c7c7555

File tree

3 files changed

+8
-67
lines changed

3 files changed

+8
-67
lines changed

packages/core/src/stepFunctions/executionDetails/executionDetailProvider.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -108,22 +108,6 @@ export class ExecutionDetailProvider {
108108
executionArn,
109109
}
110110

111-
// Create execution details context
112-
const context: ExecutionDetailsContext = {
113-
stateMachineName: executionArn.split(':').pop() || 'Unknown',
114-
mode: WorkflowMode.Readonly, // Execution details are typically read-only
115-
panel,
116-
textDocument: {} as vscode.TextDocument, // Not applicable for execution details
117-
disposables: [],
118-
workSpacePath: '',
119-
defaultTemplatePath: '',
120-
defaultTemplateName: '',
121-
fileStates: {},
122-
loaderNotification: undefined,
123-
fileId: executionArn,
124-
executionArn,
125-
}
126-
127111
// Handle messages from the webview
128112
panel.webview.onDidReceiveMessage(async (message) => {
129113
this.logger.debug('Received message from execution details webview: %O', message)

packages/core/src/stepFunctions/executionDetails/handleMessage.ts

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
>>>>>>> 5aa458d7d (feat(stepfunctions): enable hardcoded execution details page)

packages/core/src/stepFunctions/messageHandlers/stepFunctionApiHandler.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,28 @@ export class stepFunctionApiHandler {
4141
response = await this.testState(params)
4242
break
4343
case ApiAction.SFNDescribeStateMachine:
44-
response = await this.clients.sfn.getStateMachineDetails(params.stateMachineArn)
44+
response = await this.clients.sfn.getStateMachineDetails(params)
4545
break
4646
case ApiAction.SFNDescribeStateMachineForExecution:
47-
response = await this.clients.sfn.getStateMachineDetailsForExecution(params.executionArn)
47+
response = await this.clients.sfn.getStateMachineDetailsForExecution(params)
4848
break
4949
case ApiAction.SFNDescribeExecution:
50-
response = await this.clients.sfn.getExecutionDetails(params.executionArn)
50+
response = await this.clients.sfn.getExecutionDetails(params)
5151
break
5252
case ApiAction.SFNDescribeMapRun:
53-
response = await this.clients.sfn.getMapRunDetails(params.mapRunArn)
53+
response = await this.clients.sfn.getMapRunDetails(params)
5454
break
5555
case ApiAction.SFNGetExecutionHistory:
56-
response = await this.clients.sfn.getExecutionHistory(params.executionArn)
56+
response = await this.clients.sfn.getExecutionHistory(params)
5757
break
5858
case ApiAction.SFNRedriveExecution:
59-
response = await this.clients.sfn.reDriveExecution(params.executionArn)
59+
response = await this.clients.sfn.reDriveExecution(params)
6060
break
6161
case ApiAction.SFNStartExecution:
62-
response = await this.clients.sfn.executeStateMachine(params.stateMachineArn, params.input)
62+
response = await this.clients.sfn.executeStateMachine(params)
6363
break
6464
case ApiAction.SFNStopExecution:
65-
response = await this.clients.sfn.stopExecution(params.executionArn)
65+
response = await this.clients.sfn.stopExecution(params)
6666
break
6767
default:
6868
throw new Error(`Unknown API: ${apiName}`)

0 commit comments

Comments
 (0)