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 diagnostics from loaded cake files shown in the current file #1201

Merged

Conversation

bjorkstromm
Copy link
Member

Fixes issue reported here

@bjorkstromm
Copy link
Member Author

ping @jnm2


bool PathsAreEqual(string x, string y)
{
if (x == null && y == null)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could be ReferenceEquals(x, y) to be even more efficient in case the same string instance happens to be reused.

{
return true;
}
if (x == null || y == null)
Copy link
Contributor

Choose a reason for hiding this comment

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

Another tip I had from a contributor at corefx was that x == null | y == null performs better than the branch introduced by ||. Not that this is performance-critical though.

@bjorkstromm bjorkstromm force-pushed the fix/cake-loaded-codecheck-error branch from 7f84c60 to e740da6 Compare May 30, 2018 19:29
Copy link
Contributor

@DustinCampbell DustinCampbell left a comment

Choose a reason for hiding this comment

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

Looks good to me

@DustinCampbell DustinCampbell merged commit da84a3b into OmniSharp:master May 30, 2018
@bjorkstromm bjorkstromm deleted the fix/cake-loaded-codecheck-error branch August 1, 2018 20:43
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.

3 participants