Skip to content

Commit b6ec526

Browse files
committed
Handles IOException in DirectoryHelper
Similar to #8219
1 parent b46e013 commit b6ec526

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/DirectoryHelper.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ internal static IEnumerable<string> GetFilteredFiles(
106106
logger?.LogWarning("PathTooLong: {exception}", ex.Message);
107107
yield break;
108108
}
109+
catch (IOException ex)
110+
{
111+
logger?.LogWarning("IOException: {exception}", ex.Message);
112+
yield break;
113+
}
109114

110115
foreach (var path in directories)
111116
{

0 commit comments

Comments
 (0)