Skip to content

Commit bfd1602

Browse files
rkeithhillTylerLeonhardt
authored andcommitted
1 parent d6bd5b1 commit bfd1602

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/PowerShellEditorServices/Workspace/Workspace.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,12 @@ public bool TryGetFile(string filePath, out ScriptFile scriptFile)
148148
return true;
149149
}
150150
catch (Exception e) when (
151-
e is IOException ||
152-
e is SecurityException ||
151+
e is NotSupportedException ||
153152
e is FileNotFoundException ||
154153
e is DirectoryNotFoundException ||
155154
e is PathTooLongException ||
155+
e is IOException ||
156+
e is SecurityException ||
156157
e is UnauthorizedAccessException)
157158
{
158159
this.logger.WriteHandledException($"Failed to get file for {nameof(filePath)}: '{filePath}'", e);

0 commit comments

Comments
 (0)