Skip to content
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

Fix isSubfolderOf to correctly determine if a folder is a subfolder #6380

Merged
merged 1 commit into from
Sep 16, 2023

Conversation

dibarbet
Copy link
Member

Was testing project loading in O# and discovered this issue. Not sure how long it has been broken. Shoud only affect O#.

@dibarbet dibarbet requested a review from a team as a code owner September 15, 2023 23:48
*/
export function isSubfolderOf(subfolder: string, folder: string): boolean {
export function isSubfolderOf(subfolder: string, parentFolder: string): boolean {
Copy link
Member Author

Choose a reason for hiding this comment

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

the previous version of this made no sense - it was checking that folder was a subfolder of subfolder. I renamed the parameters to be more clear and reversed the check.

There was only one usage of this function in the O# workspace configuration provider.

@dibarbet dibarbet merged commit 0394b99 into dotnet:main Sep 16, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants