File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/tailwindcss-language-server/src/providers Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -273,6 +273,7 @@ function provideCssHelperCompletions(
273273 const insertClosingBrace : boolean =
274274 text . charAt ( text . length - 1 ) !== ']' &&
275275 ( replaceDot || ( separator && separator . endsWith ( '[' ) ) )
276+ const detail = stringifyConfigValue ( obj [ item ] )
276277
277278 return {
278279 label : item ,
@@ -283,7 +284,8 @@ function provideCssHelperCompletions(
283284 : isObject ( obj [ item ] )
284285 ? CompletionItemKind . Module
285286 : CompletionItemKind . Property ,
286- detail : stringifyConfigValue ( obj [ item ] ) ,
287+ // VS Code bug causes '0' to not display in some cases
288+ detail : detail === '0' ? '0 ' : detail ,
287289 documentation : color ,
288290 textEdit : {
289291 newText : `${ replaceDot ? '[' : '' } ${ item } ${
You can’t perform that action at this time.
0 commit comments