fix: complete css variable properly in code inputs (#4360)

Fixes https://github.com/webstudio-is/webstudio/issues/4357
This commit is contained in:
Bogdan Chadkin authored and GitHub committed 2024-11-04 00:26:34 +04:00
1 parent cfef7718a4
commit 65a58de7c0
1 file changed
+1 -1
@@ -45,7 +45,7 @@ const scopeCompletionSource: CompletionSource = (context) => {
const search = word.text;
const availableVariables = $availableVariables.get();
const options = availableVariables.map((varValue) => ({
label: `--var(${varValue.value})`,
label: `var(--${varValue.value})`,
displayLabel: `--${varValue.value}`,
}));
const matches = matchSorter(options, search, {