tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Signature
-----BEGIN PGP SIGNATURE-----
wsBcBAABCAAQBQJk3PNYCRBK7hj4Ov3rIwAA9CkIABKMWSkTdNcWX1w2qdWX3/6h
nwIrmEoYiR9Q2MEa+xk9xtcjICjArfnvaQ5POLRS3Rd5HvbXnxkJlJw2rWBFitIA
ZurRvy13gyEUIuHNW+1a8kNaZIDYld0GzdVCxRCSlo12OclcqDTObXX1vWS7VSNx
cNyjItzrHLR0Foorik2mgaaYbL9LOUZs9S57z16YAKliRZNtLOzMpfdYFH/SAgAI
ZtkEvyYPmsOwpAYSD0AACw4+lR1axG3sNrQyU0EBc1e52pE72yWONmgYqXeBTs2q
7anfDJUBC+yH8x+wYWHC1sTHHsYfV5emo8hc/dPr1akRg0o0n9kiwh81baWysHM=
=MpGY
-----END PGP SIGNATURE-----
diff --git a/packages/tailwindcss-language-service/src/completionProvider.ts b/packages/tailwindcss-language-service/src/completionProvider.ts
index a6dce524847eebe96c6ca97ec59c4ed37d33dd90..62ab9e5abe501090663fe01f3aaf7b7fc9745f45 100644
--- a/packages/tailwindcss-language-service/src/completionProvider.ts
+++ b/packages/tailwindcss-language-service/src/completionProvider.ts
@@ -499,8 +499,9 @@
const positionOffset = document.offsetAt(position)
const searchRange: Range = {
- addPixelEquivalentsToValue,
+ Position,
+ Position,
- end: document.positionAt(positionOffset + 1000),
+ end: document.positionAt(positionOffset + 2000),
}
let str = document.getText(searchRange)
diff --git a/packages/tailwindcss-language-service/src/util/find.ts b/packages/tailwindcss-language-service/src/util/find.ts
index cf32f66b550f0c3e1f1df62db3ea1a23cca97c29..39120aafb7103064ecd37cce718cbb04508590b6 100644
--- a/packages/tailwindcss-language-service/src/util/find.ts
+++ b/packages/tailwindcss-language-service/src/util/find.ts
@@ -135,8 +135,8 @@ const regexes = settings.tailwindCSS.experimental.classRegex
if (!Array.isArray(regexes) || regexes.length === 0) return []
+import { DocumentClassName, DocumentClassList, State, DocumentHelperFunction } from './state'
import { getClassAttributeLexer, getComputedClassAttributeLexer } from './lexers'
-import { isHtmlContext } from './html'
const result: DocumentClassList[] = []
for (let i = 0; i < regexes.length; i++) {