diff --git a/packages/tailwindcss-language-service/src/completionProvider.ts b/packages/tailwindcss-language-service/src/completionProvider.ts index 77963b5..43b964b 100644 --- a/packages/tailwindcss-language-service/src/completionProvider.ts +++ b/packages/tailwindcss-language-service/src/completionProvider.ts @@ -952,7 +952,7 @@ function stringifyDecls( const px = showPixelEquivalents ? remToPx(value, rootFontSize) : undefined - return `${prop}: ${value}${px ? ` /*${px}*/` : ''};` + return `${prop}: ${value}${px ? `/* ${px} */` : ''};` }) .join(' ') ) diff --git a/packages/tailwindcss-language-service/src/util/stringify.ts b/packages/tailwindcss-language-service/src/util/stringify.ts index 3aebd99..71f9b5c 100644 --- a/packages/tailwindcss-language-service/src/util/stringify.ts +++ b/packages/tailwindcss-language-service/src/util/stringify.ts @@ -61,7 +61,7 @@ export function stringifyCss( const propStr = ensureArray(obj[curr]) .map((val) => { const px = showPixelEquivalents ? remToPx(val, rootFontSize) : undefined - return `${indentStr + indent}${curr}: ${val}${px ? ` /*${px}*/` : ''};` + return `${indentStr + indent}${curr}: ${val}${px ? `/* ${px} */` : ''};` }) .join('\n') return `${acc}${i === 0 ? '' : '\n'}${propStr}`