1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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)
|