Skip to content

Conversation

@brettfo
Copy link
Member

@brettfo brettfo commented Nov 22, 2016

This prevents VS from crashing when the cached project options don't know about a newly added file.

Fixes #1769.

This also fixes the crash when renaming a file that @cartermp mentioned.

@KevinRansom @Pilchie @cartermp @OmarTawfik @dsyme

Copy link
Member

@Pilchie Pilchie left a comment

Choose a reason for hiding this comment

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

LGTM but I'd love another set of eyes on it.

Is there a way to add a test?

Copy link
Member

Choose a reason for hiding this comment

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

If these are source file paths, should we be using an OrdinalIgnoreCase comparer for the HashSets?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, adding that now.

@brettfo
Copy link
Member Author

brettfo commented Nov 23, 2016

@Pilchie, we don't currently have IDE tests or a quick mechanism to add them; that's an item on my backlog that I just added as #1822.

@brettfo brettfo merged commit 3fbc133 into dotnet:master Nov 23, 2016
@brettfo brettfo deleted the add-file-crash branch November 23, 2016 22:54
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
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.

Adding a new file to existing project crashes VS

3 participants