mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-16 13:41:15 +01:00
Handle enabled/disabled variables and render multi
This commit is contained in:
1 parent
a44e88f53d
commit
677f436bcb
2 files changed
+9
-3
No files matched your search
@@ -14,7 +14,7 @@ export function twig(
|
||||
environment: Environment | null,
|
||||
autocomplete?: GenericCompletionConfig,
|
||||
) {
|
||||
const variables = environment?.variables ?? [];
|
||||
const variables = environment?.variables.filter(v => v.enabled) ?? [];
|
||||
const completions = twigCompletion({ options: variables });
|
||||
|
||||
const language = mixLanguage(base);
|
||||
|
||||
Reference in new issue
Block a user