From 788f344689f350b0f5403688315cd3745049281d Mon Sep 17 00:00:00 2001 From: Fabio Zadrozny Date: Fri, 9 Aug 2024 14:03:59 -0300 Subject: [PATCH] Fix prettier --- sema4ai/vscode-client/src/common.ts | 4 ++-- .../vscode-client/src/robo/actionPackage.ts | 3 +-- .../vscode-client/src/robo/agentPackage.ts | 22 +++++++------------ .../vscode-client/src/robo/oauth2InInput.ts | 12 ++++++---- 4 files changed, 19 insertions(+), 22 deletions(-) diff --git a/sema4ai/vscode-client/src/common.ts b/sema4ai/vscode-client/src/common.ts index 64774b57..f142f18b 100644 --- a/sema4ai/vscode-client/src/common.ts +++ b/sema4ai/vscode-client/src/common.ts @@ -57,12 +57,12 @@ export async function getWorkspacePackages(): Promise { } else { localRobots = actionResultListLocalRobots.result; } - + let localAgents: any[]; if (!actionResultListAgents.success) { feedbackRobocorpCodeError("ACT_LIST_AGENTS"); window.showErrorMessage("Error listing agents: " + actionResultListAgents.message); - + // This shouldn't happen, but let's proceed as if there were no Agents in the workspace. localAgents = []; } else { diff --git a/sema4ai/vscode-client/src/robo/actionPackage.ts b/sema4ai/vscode-client/src/robo/actionPackage.ts index dd7c4454..be4a61ff 100644 --- a/sema4ai/vscode-client/src/robo/actionPackage.ts +++ b/sema4ai/vscode-client/src/robo/actionPackage.ts @@ -288,8 +288,7 @@ async function askActionPackageTargetDir(ws: WorkspaceFolder): Promise => { /* We make sure Agent Server exists - if not, getAgentServerLocation will ask user to download it. */ @@ -33,11 +27,11 @@ export const createAgentPackage = async (): Promise => { } const targetDir = await getPackageTargetDirectory(ws, { - title: "Where do you want to create the Agent Package?", - useWorkspaceFolderPrompt: "The workspace will only have a single Agent Package.", - useChildFolderPrompt: "Multiple Agent Packages can be created in this workspace.", - provideNamePrompt: "Please provide the name for the Agent Package folder name." - }); + title: "Where do you want to create the Agent Package?", + useWorkspaceFolderPrompt: "The workspace will only have a single Agent Package.", + useChildFolderPrompt: "Multiple Agent Packages can be created in this workspace.", + provideNamePrompt: "Please provide the name for the Agent Package folder name.", + }); /* Operation cancelled. */ if (!targetDir) { diff --git a/sema4ai/vscode-client/src/robo/oauth2InInput.ts b/sema4ai/vscode-client/src/robo/oauth2InInput.ts index c56fa9d0..da11a560 100644 --- a/sema4ai/vscode-client/src/robo/oauth2InInput.ts +++ b/sema4ai/vscode-client/src/robo/oauth2InInput.ts @@ -78,10 +78,14 @@ export const oauth2Logout = async () => { return; // user cancelled. } progress.report({ message: "Logging out...", increment: 20 }); - const logoutResult = await langServer.sendRequest>("oauth2Logout", { - action_server_location: actionServerLocation, - provider: selected, - }, token); + const logoutResult = await langServer.sendRequest>( + "oauth2Logout", + { + action_server_location: actionServerLocation, + provider: selected, + }, + token + ); if (!logoutResult.success) { window.showErrorMessage(`Error in OAuth2 logout. Details: ${logoutResult.message}`); return;