File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/vscode-tailwindcss/src Expand file tree Collapse file tree 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) {
1111
1212 async function workspaceNeedsLanguageServer ( ) {
1313 if ( folderAnalysis ) return folderAnalysis
14+ let found = false
1415
1516 let source : CancellationTokenSource | null = new CancellationTokenSource ( )
1617 source . token . onCancellationRequested ( ( ) => {
1718 source ?. dispose ( )
1819 source = null
20+ if ( found ) return
1921
2022 outputChannel . appendLine (
2123 '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) {
3234 } )
3335
3436 let result = await folderAnalysis
35- source ?. dispose ( )
37+ found = true
38+ source ?. cancel ( )
3639 return result
3740 }
3841
You can’t perform that action at this time.
0 commit comments