Skip to content

Commit

Permalink
Set AsyncLazy.SuppressRecursiveFactoryDetection true
Browse files Browse the repository at this point in the history
This avoids the overhead associated with the instance's re-entrancy prevention.
  • Loading branch information
drewnoakes committed Dec 17, 2024
1 parent 67f60bf commit ca6820a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ public LanguageServiceHost(
return !await vsShell.IsCommandLineModeAsync()
|| await vsShell.IsPopulateSolutionCacheModeAsync();
},
threadingService.JoinableTaskFactory);
threadingService.JoinableTaskFactory)
{
SuppressRecursiveFactoryDetection = true
};
}

public Task LoadAsync()
Expand Down

0 comments on commit ca6820a

Please sign in to comment.