chore: generate
This commit is contained in:
@@ -50,22 +50,21 @@ export const WorktreeAdapter: WorkspaceAdapter = {
|
|||||||
directory: config.directory,
|
directory: config.directory,
|
||||||
...(config.branch ? { branch: config.branch } : {}),
|
...(config.branch ? { branch: config.branch } : {}),
|
||||||
}),
|
}),
|
||||||
).pipe(
|
).pipe(Effect.provideService(InstanceRef, ctx), Effect.provideService(WorkspaceRef, workspaceID)),
|
||||||
Effect.provideService(InstanceRef, ctx),
|
|
||||||
Effect.provideService(WorkspaceRef, workspaceID),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
async list() {
|
async list() {
|
||||||
const { AppRuntime, Instance, Worktree } = await loadWorktree()
|
const { AppRuntime, Instance, Worktree } = await loadWorktree()
|
||||||
const ctx = Instance.current
|
const ctx = Instance.current
|
||||||
const workspaceID = WorkspaceContext.workspaceID
|
const workspaceID = WorkspaceContext.workspaceID
|
||||||
return (await AppRuntime.runPromise(
|
return (
|
||||||
Worktree.Service.use((svc) => svc.list()).pipe(
|
await AppRuntime.runPromise(
|
||||||
Effect.provideService(InstanceRef, ctx),
|
Worktree.Service.use((svc) => svc.list()).pipe(
|
||||||
Effect.provideService(WorkspaceRef, workspaceID),
|
Effect.provideService(InstanceRef, ctx),
|
||||||
),
|
Effect.provideService(WorkspaceRef, workspaceID),
|
||||||
)).map((info) => ({
|
),
|
||||||
|
)
|
||||||
|
).map((info) => ({
|
||||||
type: "worktree",
|
type: "worktree",
|
||||||
name: info.name,
|
name: info.name,
|
||||||
branch: info.branch,
|
branch: info.branch,
|
||||||
|
|||||||
Reference in New Issue
Block a user