mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-13 07:47:46 +08:00
chore(vscode): format scheduled prompt label changes
This commit is contained in:
@@ -68,7 +68,11 @@ const SCHEDULED = [
|
||||
function scheduled(body: string): InjectedView | undefined {
|
||||
const hit = SCHEDULED.find((item) => body.startsWith(item.tag))
|
||||
if (!hit) return undefined
|
||||
const first = body.slice(hit.tag.length).trim().split(/\n\s*\n/, 1)[0]?.trim()
|
||||
const first = body
|
||||
.slice(hit.tag.length)
|
||||
.trim()
|
||||
.split(/\n\s*\n/, 1)[0]
|
||||
?.trim()
|
||||
return { label: hit.label, preview: first || undefined }
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,8 @@ export const VscodeUserMessage: Component<VscodeUserMessageProps> = (props) => {
|
||||
const text = createMemo(() =>
|
||||
props.parts.find(
|
||||
(part): part is TextPart =>
|
||||
part.type === "text" && (!part.synthetic || (part.metadata as { wakeup?: unknown } | undefined)?.wakeup === true),
|
||||
part.type === "text" &&
|
||||
(!part.synthetic || (part.metadata as { wakeup?: unknown } | undefined)?.wakeup === true),
|
||||
),
|
||||
)
|
||||
const attribution = createMemo(() => text()?.text.match(ATTRIBUTION)?.[1])
|
||||
|
||||
Reference in New Issue
Block a user