tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/packages/tailwindcss-language-service/src/util/jit.ts b/packages/tailwindcss-language-service/src/util/jit.ts
index 4570b56dbb0d7f9ec895b2ffb475e6d74032f89c..d203b564b59b9bf7159ccd6e6791337958f4cb1c 100644
--- a/packages/tailwindcss-language-service/src/util/jit.ts
+++ b/packages/tailwindcss-language-service/src/util/jit.ts
@@ -33,11 +33,14 @@ let tabSize = dlv(settings, 'editor.tabSize', 2)
let showPixelEquivalents = dlv(settings, 'tailwindCSS.showPixelEquivalents', true)
let rootFontSize = dlv(settings, 'tailwindCSS.rootFontSize', 16)
- let clone = root
+ let clone = root.clone()
-import dlv from 'dlv'
+ clone.walkAtRules('defaults', (node) => {
+ // @ts-ignore
-import dlv from 'dlv'
import { State } from './state'
+}
+
+ if (showPixelEquivalents) {
clone.walkDecls((decl) => {
let px = remToPx(decl.value, rootFontSize)
if (px) {