mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Fix initial apply text
This commit is contained in:
@@ -55,10 +55,10 @@ export function twigCompletion({ options }: TwigCompletionConfig) {
|
|||||||
options: options
|
options: options
|
||||||
.filter((v) => v.name.trim())
|
.filter((v) => v.name.trim())
|
||||||
.map((v) => {
|
.map((v) => {
|
||||||
const tagSyntax = openTag + v.label + closeTag;
|
const inner = v.type === 'function' ? `${v.name}()` : v.name;
|
||||||
return {
|
return {
|
||||||
label: v.label,
|
label: v.label,
|
||||||
apply: tagSyntax,
|
apply: openTag + inner + closeTag,
|
||||||
type: v.type === 'variable' ? 'variable' : 'function',
|
type: v.type === 'variable' ? 'variable' : 'function',
|
||||||
matchLen: matchLen,
|
matchLen: matchLen,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user