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
Original file line number Diff line number Diff line change
Expand Up @@ -4275,10 +4275,17 @@ internal static IEnumerable<CompletionResult> CompleteFilename(CompletionContext
continue;

var fileInfo = new FileInfo(entry);
if ((fileInfo.Attributes & FileAttributes.Hidden) != 0)
try
{
PSObject wrapper = PSObject.AsPSObject(entry);
psobjs.Add(wrapper);
if ((fileInfo.Attributes & FileAttributes.Hidden) != 0)
{
PSObject wrapper = PSObject.AsPSObject(entry);
psobjs.Add(wrapper);
}
}
catch
{
// do nothing if can't get file attributes
Comment thread
SteveL-MSFT marked this conversation as resolved.
Resolved
}
}
}
Expand Down