15 lines
391 B
JavaScript
15 lines
391 B
JavaScript
|
import { getManifest } from "@budibase/string-templates"
|
||
|
|
||
|
export function handlebarsCompletions() {
|
||
|
const manifest = getManifest()
|
||
|
|
||
|
return Object.keys(manifest).flatMap(key =>
|
||
|
Object.entries(manifest[key]).map(([helperName, helperConfig]) => ({
|
||
|
text: helperName,
|
||
|
path: helperName,
|
||
|
displayText: helperName,
|
||
|
description: helperConfig.description,
|
||
|
}))
|
||
|
)
|
||
|
}
|