Function
scheduleParseWarning
(ctx: PluginInput, title: string, message: string)
Source from the content-addressed store, hash-verified
| 952 | } |
| 953 | |
| 954 | function scheduleParseWarning(ctx: PluginInput, title: string, message: string): void { |
| 955 | setTimeout(() => { |
| 956 | try { |
| 957 | ctx.client.tui.showToast({ |
| 958 | body: { |
| 959 | title, |
| 960 | message, |
| 961 | variant: "warning", |
| 962 | duration: 7000, |
| 963 | }, |
| 964 | }) |
| 965 | } catch {} |
| 966 | }, 7000) |
| 967 | } |
| 968 | |
| 969 | export function getConfig(ctx: PluginInput): PluginConfig { |
| 970 | let config = deepCloneConfig(defaultConfig) |
Tested by
no test coverage detected