Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saranshsaini committed Jan 25, 2025
1 parent c7ca2e0 commit 48efb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeiumVS/LanguageServer/LanguageServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,9 @@ private async Task<List<string>> GetFilesToIndex(HashSet<string> processedProjec
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
HashSet<string> openFilesProjectsToIndexPath = new HashSet<string>();
HashSet<string> remainingProjectsToIndexPath = new HashSet<string>();
async Task AddFilesToIndexLists(EnvDTE.Project project);
// Safeguard against any edge case I didn't think of
int maxRecursiveCalls = 50;
async Task AddFilesToIndexLists(EnvDTE.Project project)
{
maxRecursiveCalls--;
if (openFilesProjectsToIndexPath.Count >= remainingToFind || (openFilePaths.Count == 0 && remainingProjectsToIndexPath.Count >= remainingToFind) || maxRecursiveCalls == 0)
Expand Down

0 comments on commit 48efb48

Please sign in to comment.