Repository navigation
Conversation
### Description `findFiles` was called with an explicit `**/node_modules` exclude, which makes VS Code ignore `files.exclude`. Configs in hidden folders such as git worktrees were then picked as the project's `firebase.json`. Merge enabled `files.exclude` patterns into the exclude glob. Fixes #11465 ### Scenarios Tested - Unit tests for the exclude glob builder. ### Sample Commands N/A
Contributor
There was a problem hiding this comment.
Code Review
This pull request ensures that firebase.json files in folders hidden by files.exclude (such as git worktrees) are no longer picked up as the project configuration by merging files.exclude patterns with the default **/node_modules glob. Unit tests have been added to verify this glob-building logic. Feedback on the changes includes: 1) adding a defensive check to ensure workspace.value is defined before calling .getConfiguration to prevent runtime crashes, 2) handling the case where filesExclude is null explicitly (e.g., using filesExclude ?? {}) to avoid a TypeError when calling Object.entries(), and 3) adding a test case passing null to _buildExcludeGlob to verify this null-safety.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
findFileswas called with an explicit**/node_modulesexclude, which makes VS Code ignorefiles.exclude. Configs in hidden folders such as git worktrees were then picked as the project'sfirebase.json. Merge enabledfiles.excludepatterns into the exclude glob.Partially fixes #11465
Scenarios Tested
Sample Commands
N/A
Description
Scenarios Tested
Sample Commands