tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/packages/tailwindcss-language-service/src/completionProvider.ts b/packages/tailwindcss-language-service/src/completionProvider.ts
index f5d361455c387057be39534126ccb64e72d26406..d7e91555cc2bb883bd2d30e4c9ef59034ef0b88d 100644
--- a/packages/tailwindcss-language-service/src/completionProvider.ts
+++ b/packages/tailwindcss-language-service/src/completionProvider.ts
@@ -334,7 +334,7 @@ position: Position,
context?: CompletionContext
): Promise<CompletionList> {
let str = document.getText({
- start: document.positionAt(Math.max(0, document.offsetAt(position) - 500)),
+ start: document.positionAt(Math.max(0, document.offsetAt(position) - 1000)),
end: position,
})
@@ -400,8 +400,8 @@
const positionOffset = document.offsetAt(position)
const searchRange: Range = {
- start: document.positionAt(Math.max(0, positionOffset - 500)),
- end: document.positionAt(positionOffset + 500),
+ start: document.positionAt(Math.max(0, positionOffset - 1000)),
+ end: document.positionAt(positionOffset + 1000),
}
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 a522de0d18855a37afbc86e73b529d2be3ef9cfe..8da583311cc81196cd2a5f4f3be4f29460a51570 100644
--- a/packages/tailwindcss-language-service/src/util/find.ts
+++ b/packages/tailwindcss-language-service/src/util/find.ts
@@ -379,8 +379,8 @@ ): Promise<DocumentClassName> {
let classNames = []
const positionOffset = doc.offsetAt(position)
const searchRange: Range = {
- start: doc.positionAt(Math.max(0, positionOffset - 500)),
- end: doc.positionAt(positionOffset + 500),
+ start: doc.positionAt(Math.max(0, positionOffset - 1000)),
+ end: doc.positionAt(positionOffset + 1000),
}
if (isCssContext(state, doc, position)) {