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(
273
273
const insertClosingBrace : boolean =
274
274
text . charAt ( text . length - 1 ) !== ']' &&
275
275
( replaceDot || ( separator && separator . endsWith ( '[' ) ) )
276
+ const detail = stringifyConfigValue ( obj [ item ] )
276
277
277
278
return {
278
279
label : item ,
@@ -283,7 +284,8 @@ function provideCssHelperCompletions(
283
284
: isObject ( obj [ item ] )
284
285
? CompletionItemKind . Module
285
286
: 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 ,
287
289
documentation : color ,
288
290
textEdit : {
289
291
newText : `${ replaceDot ? '[' : '' } ${ item } ${
You can’t perform that action at this time.
0 commit comments