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

Merged

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

@award999 award999 merged commit 49c4c9a into swiftlang:main Jun 23, 2025
64 of 72 checks passed
@award999 award999 self-assigned this Jun 24, 2025
@award999 award999 added the needs verification Issue has been fixed, but requires verification before closing label Jun 24, 2025
award999 added a commit to award999/vscode-swift that referenced this pull request Jun 24, 2025
@award999 award999 moved this to Needs Verification in Swift Extension for Visual Studio Code Jun 24, 2025
plemarquand pushed a commit that referenced this pull request Jun 24, 2025
@award999
Copy link
Contributor

Verified with 7d54def

@award999 award999 removed their assignment Jun 25, 2025
@award999 award999 removed the needs verification Issue has been fixed, but requires verification before closing label Jun 25, 2025
@award999 award999 moved this from Needs Verification to Done in Swift Extension for Visual Studio Code Jun 25, 2025
@plemarquand plemarquand deleted the hide-excluded-files-project-panel branch June 25, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants