Remove helpers not available in js
This commit is contained in:
parent
82b4af1436
commit
d1712bda52
|
@ -47,9 +47,10 @@
|
|||
})
|
||||
$: filteredHelpers = helpers?.filter(helper => {
|
||||
return (
|
||||
!search ||
|
||||
helper.label.match(searchRgx) ||
|
||||
helper.description.match(searchRgx)
|
||||
(!search ||
|
||||
helper.label.match(searchRgx) ||
|
||||
helper.description.match(searchRgx)) &&
|
||||
(mode.name !== "javascript" || !helper.requiresBlock)
|
||||
)
|
||||
})
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ export function handlebarsCompletions() {
|
|||
label: helperName,
|
||||
displayText: helperName,
|
||||
description: helperConfig.description,
|
||||
requiresBlock: helperConfig.requiresBlock,
|
||||
}))
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue