Skip to content

Commit ff6ad9b

Browse files
committed
Fix
1 parent 5f91f5c commit ff6ad9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/tailwindcss-language-server/src/util/v4/design-system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export async function loadDesignSystem(
6464
if (str === null) return postcss.root()
6565

6666
try {
67-
return postcss.parse(str)
67+
return postcss.parse(str.trimEnd())
6868
} catch {
6969
return null
7070
}

packages/tailwindcss-language-server/tests/completions/completions.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ withFixture('v4/basic', (c) => {
442442
detail: 'text-transform: uppercase',
443443
documentation: {
444444
kind: 'markdown',
445-
value: '```css\n.uppercase {\n text-transform: uppercase;\n}\n```',
445+
value: '```css\n.uppercase {\n text-transform: uppercase;\n}\n```',
446446
},
447447
})
448448
})

0 commit comments

Comments
 (0)