feat(core): add workspace lifecycle
This commit is contained in:
parent
d1b9b6c9ce
commit
650d5a5e92
4 changed files with 307 additions and 23 deletions
|
|
@ -92,6 +92,7 @@ describe("Location", () => {
|
|||
const workspaceLayer = Layer.succeed(
|
||||
WorkspaceV2.Service,
|
||||
WorkspaceV2.Service.of({
|
||||
create: () => Effect.die("Unsupported fake Workspace operation"),
|
||||
get: () =>
|
||||
Effect.succeed(
|
||||
WorkspaceV2.Info.make({
|
||||
|
|
@ -109,6 +110,9 @@ describe("Location", () => {
|
|||
connections.count++
|
||||
return providerEnvironment
|
||||
}),
|
||||
connect: () => Effect.die("Unsupported fake Workspace operation"),
|
||||
suspend: () => Effect.die("Unsupported fake Workspace operation"),
|
||||
remove: () => Effect.die("Unsupported fake Workspace operation"),
|
||||
}),
|
||||
)
|
||||
const hostedRef = { directory, workspaceID }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue