refactor: save request handle in tabs and remove tabs related logic from personal provider definition

This commit is contained in:
jamesgeorge007
2024-02-09 13:48:19 +05:30
parent 1abbdb0fe0
commit c1a8a871d2
9 changed files with 133 additions and 166 deletions

View File

@@ -331,8 +331,7 @@ export class NewWorkspaceService extends Service {
public async createRESTRequest(
parentCollectionHandle: HandleRef<WorkspaceCollection>,
requestName: string,
openInNewTab: boolean
newRequest: HoppRESTRequest
): Promise<
E.Either<
WorkspaceError<"INVALID_HANDLE" | "INVALID_PROVIDER">,
@@ -353,8 +352,7 @@ export class NewWorkspaceService extends Service {
const result = await provider.createRESTRequest(
parentCollectionHandle,
requestName,
openInNewTab
newRequest
)
if (E.isLeft(result)) {