mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
fix: complete css variable properly in code inputs (#4360)
Fixes https://github.com/webstudio-is/webstudio/issues/4357
This commit is contained in:
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, {
|
||||
|
||||
Reference in new issue
Block a user