Skip to content

During Tab Completion, skip file if can't read file attributes - #10910

Merged
Ilya (iSazonov) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:file-tabcomplete
Oct 28, 2019
Merged

Ilya (iSazonov) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:file-tabcomplete

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Oct 27, 2019 •

Copy link
Copy Markdown
Member

PR Summary

During tab completion, while enumerating files, if the file attributes can't be read, just ignore error and skip that file. Previously, the file access exception wasn't handled and tab completion completely failed without returning any results.

PR Context

Fix #7648

PR Checklist

@iSazonov Ilya (iSazonov) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Oct 28, 2019
@iSazonov Ilya (iSazonov) added this to the 7.0.0-preview.6 milestone Oct 28, 2019
@iSazonov
Ilya (iSazonov) merged commit 2746cb7 into PowerShell:master Oct 28, 2019
@ghost

Copy link
Copy Markdown

🎉v7.0.0-preview.6 has been released which incorporates this pull request.:tada:

Handy links:

@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the file-tabcomplete branch June 6, 2020 02:29
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tab completion under /mnt/c stymied by hiberfil.sys

2 participants