microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.51k stars 28.98k forks source link

Hide Files/Directories in Explorer Based on File Permissions #229458

Open codermapuche opened 3 weeks ago

codermapuche commented 3 weeks ago

Description

I would like to request the ability to hide files and directories in the VS Code file explorer based on their file system permissions. This feature would be particularly beneficial for users who connect to remote servers via the official Microsoft SSH extension, as it would align with the permissions structure of Linux-based servers.

Use Case

In Linux, users often have access to directories where they might not have read or execute permissions for all contents. However, Linux still allows these users to see the existence of files and folders. This creates a confusing and potentially frustrating user experience when working in VS Code's remote environment, especially for developers who cannot open or interact with files that they can see but do not have permissions to access.

When connecting to a server using the Microsoft SSH extension, developers may not have access to every file in a given directory. For example, certain directories may be visible but contain files that the user cannot open or modify due to restrictive permissions (e.g., 700 permissions). Being able to hide these files and directories in the file explorer—based on the user’s actual file system permissions—would provide a cleaner, more intuitive interface and help avoid permission errors.

Why This is Important

Proposed Functionality

Relevant Context

This request aligns with existing use cases for remote development, especially on Linux systems, where file permissions are an integral part of user and directory management. By adding this feature, the file explorer will provide a more accurate representation of what users can interact with, improving productivity and usability for developers connecting to remote servers via the SSH extension.

Thank you for considering this feature request. I believe it would be a valuable addition for users working in secure or complex permission-based environments.

Best regards

vs-code-engineering[bot] commented 3 weeks ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!