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