Skip to content

Hide files excluded with files.exclude from Project Panel #1626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

plemarquand
Copy link
Contributor

The project panel should respect the files.exclude VS Code setting. This setting is combined with the existing
swift.excludePathsFromPackageDependencies.

The tests required an update to updateSettings, as the existing global files.exclude settings are combined with the ones set in the test. When setting the settings, verify that all expected settings are present before continuing, but don't require the settings object to be an exact match of what we set.

The project panel should respect the `files.exclude` VS Code setting.
This setting is combined with the existing
`swift.excludePathsFromPackageDependencies`.

The tests required an update to `updateSettings`, as the existing global
`files.exclude` settings are combined with the ones set in the test.
When setting the settings, verify that all expected settings are present
before continuing, but don't require the settings object to be an exact
match of what we set.
@plemarquand plemarquand force-pushed the hide-excluded-files-project-panel branch from ba46346 to 9a34ec4 Compare June 18, 2025 19:14
@award999
Copy link
Contributor

@plemarquand can we save owning some of this logic by using vscode.workspace.findFiles API?

Copy link
Contributor

@award999 award999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to make sure last comment is pondered :)

@plemarquand plemarquand force-pushed the hide-excluded-files-project-panel branch from ea29558 to 074f676 Compare June 19, 2025 13:40
@plemarquand
Copy link
Contributor Author

@award999 vscode.workspace.findFiles was only finding files, not directories, so had to go back to glob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants