mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-21 14:07:20 +08:00
style(cli): add kilocode markers on command block
This commit is contained in:
@@ -596,7 +596,8 @@ export namespace Config {
|
||||
const message = ConfigMarkdown.FrontmatterError.isInstance(err)
|
||||
? err.data.message
|
||||
: `Failed to parse command ${item}`
|
||||
if (warnings) warnings.push({ path: item, message }) // kilocode_change
|
||||
// kilocode_change start
|
||||
if (warnings) warnings.push({ path: item, message })
|
||||
try {
|
||||
const { Session } = await import("@/session")
|
||||
Bus.publish(Session.Event.Error, { error: new NamedError.Unknown({ message }).toObject() })
|
||||
@@ -605,6 +606,7 @@ export namespace Config {
|
||||
}
|
||||
log.error("failed to load command", { command: item, err })
|
||||
return undefined
|
||||
// kilocode_change end
|
||||
})
|
||||
if (!md) continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user