Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/PowerShellEditorServices/Workspace/Workspace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,14 @@ private void RecursivelyEnumerateFiles(string folderPath, ref List<string> found

continue;
}
catch (Exception e)
{
this.logger.WriteHandledException(
$"Could not enumerate files in the path '{folderPath}' due to an exception",
e);

continue;
}

foundFiles.AddRange(psFiles);
}
Expand Down Expand Up @@ -386,6 +394,15 @@ private void RecursivelyEnumerateFiles(string folderPath, ref List<string> found

return;
}
catch (Exception e)
{
this.logger.WriteHandledException(
$"Could not enumerate directories in the path '{folderPath}' due to an exception",
e);

return;
}


foreach (string subDir in subDirs)
{
Expand Down