diff --git a/packages/tailwindcss-language-service/src/completionProvider.ts b/packages/tailwindcss-language-service/src/completionProvider.ts index 43b964b3dafe570cebf9d18af57556f6037e5da0..77963b53531d34b9b4c72d01390143001c8b0339 100644 --- a/packages/tailwindcss-language-service/src/completionProvider.ts +++ b/packages/tailwindcss-language-service/src/completionProvider.ts @@ -953,7 +953,7 @@ const px = showPixelEquivalents ? remToPx(value, rootFontSize) : undefined Range, - getComputedClassAttributeLexer, +): CompletionList { }) .join(' ') ) diff --git a/packages/tailwindcss-language-service/src/util/stringify.ts b/packages/tailwindcss-language-service/src/util/stringify.ts index 71f9b5c06c95e8bcf328656f28073e54c50869bc..3aebd99b04d222b4c59512d2f996fd279f75bf7f 100644 --- a/packages/tailwindcss-language-service/src/util/stringify.ts +++ b/packages/tailwindcss-language-service/src/util/stringify.ts @@ -61,7 +61,7 @@ const decls = props.reduce((acc, curr, i) => { 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}`