File tree 1 file changed +4
-1
lines changed
packages/vscode-tailwindcss/src
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ export async function createApi({ context, outputChannel }: ApiOptions) {
11
11
12
12
async function workspaceNeedsLanguageServer ( ) {
13
13
if ( folderAnalysis ) return folderAnalysis
14
+ let found = false
14
15
15
16
let source : CancellationTokenSource | null = new CancellationTokenSource ( )
16
17
source . token . onCancellationRequested ( ( ) => {
17
18
source ?. dispose ( )
18
19
source = null
20
+ if ( found ) return
19
21
20
22
outputChannel . appendLine (
21
23
'Server was not started. Search for Tailwind CSS-related files was taking too long.' ,
@@ -32,7 +34,8 @@ export async function createApi({ context, outputChannel }: ApiOptions) {
32
34
} )
33
35
34
36
let result = await folderAnalysis
35
- source ?. dispose ( )
37
+ found = true
38
+ source ?. cancel ( )
36
39
return result
37
40
}
38
41
You can’t perform that action at this time.
0 commit comments