fix(tui): gate Zed context on terminal env (#28517)
This commit is contained in:
@@ -48,12 +48,14 @@ export const Service =
|
||||
}
|
||||
|
||||
static get defaultLayer() {
|
||||
const tag = this
|
||||
return Layer.effect(
|
||||
this,
|
||||
Config.all(fields).pipe(
|
||||
tag,
|
||||
Effect.gen(function* () {
|
||||
const config = yield* Config.all(fields)
|
||||
// oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion -- Config.all preserves the field shape, but its conditional return type also supports iterable inputs.
|
||||
Effect.map((config) => this.of(config as Shape<Fields>)),
|
||||
),
|
||||
return tag.of(config as Shape<Fields>)
|
||||
}),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user