diff --git a/packages/tailwindcss-language-server/src/providers/completionProvider.ts b/packages/tailwindcss-language-server/src/providers/completionProvider.ts index e44d1399d2a8d7938ae404f71830eee48214f8d3..dd44439318bece2ee932ce42073b3d0a4db4794c 100644 --- a/packages/tailwindcss-language-server/src/providers/completionProvider.ts +++ b/packages/tailwindcss-language-server/src/providers/completionProvider.ts @@ -273,7 +273,6 @@ item.indexOf('.') !== -1 && separator && separator.endsWith('.') const insertClosingBrace: boolean = text.charAt(text.length - 1) !== ']' && (replaceDot || (separator && separator.endsWith('['))) - const detail = stringifyConfigValue(obj[item]) return { label: item, @@ -284,8 +283,7 @@ ? CompletionItemKind.Color : isObject(obj[item]) ? CompletionItemKind.Module : CompletionItemKind.Property, - // VS Code bug causes '0' to not display in some cases - detail: detail === '0' ? '0 ' : detail, + detail: stringifyConfigValue(obj[item]), documentation: color, textEdit: { newText: `${replaceDot ? '[' : ''}${item}${