mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 03:24:54 +00:00
11 lines
286 B
TypeScript
11 lines
286 B
TypeScript
import { Plugin } from "@opencode/plugin/tui"
|
|
|
|
// A dialog that throws while rendering (anomalyco/opencode#61101).
|
|
export default Plugin.define({
|
|
id: "fixture.dialog-throw",
|
|
setup(context) {
|
|
context.ui.dialog.show(() => {
|
|
throw new Error("dialog exploded")
|
|
})
|
|
},
|
|
})
|