mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
type errors
This commit is contained in:
parent
247ce44776
commit
6555a33eff
2 changed files with 5 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ import {
|
|||
t,
|
||||
dim,
|
||||
fg,
|
||||
type KeyBinding,
|
||||
} from "@opentui/core"
|
||||
import { createEffect, createMemo, Match, Switch, type JSX, onMount, batch } from "solid-js"
|
||||
import { useLocal } from "@tui/context/local"
|
||||
|
|
@ -84,7 +85,7 @@ export function Prompt(props: PromptProps) {
|
|||
shift: binding.shift || undefined,
|
||||
action: "submit" as const,
|
||||
})),
|
||||
]
|
||||
] satisfies KeyBinding[]
|
||||
})
|
||||
|
||||
const fileStyleId = syntax().getStyleId("extmark.file")!
|
||||
|
|
|
|||
|
|
@ -65,9 +65,10 @@ export namespace Log {
|
|||
const logfile = Bun.file(logpath)
|
||||
await fs.truncate(logpath).catch(() => {})
|
||||
const writer = logfile.writer()
|
||||
write = (msg: any) => {
|
||||
writer.write(msg)
|
||||
write = async (msg: any) => {
|
||||
const num = writer.write(msg)
|
||||
writer.flush()
|
||||
return num
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue