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

Adds support for aliases on both ProjectReference and Reference #1701

Merged
merged 4 commits into from
Feb 12, 2020

Conversation

bjorkstromm
Copy link
Member

The previous implementation (alias on Reference) may or may not have worked previously. It's hard to know as the tests only checks that the values are present in the ProjectFileInfo. It currently lacks tests in ProjectManager, which is where the logic resides for actually adding the alias to the reference (Project or Metadata).

This PR also adds support for aliases on ProjectReference.

I don't think we have any tests on ProjectManager at this point, but should I just att a simple test that verifies that there are no errors in the test-projects that currently use aliases for references? That's a quick way to ensure we don't break this in the future.

@filipw
Copy link
Member

filipw commented Feb 10, 2020

I don't think we have any tests on ProjectManager at this point, but should I just att a simple test that verifies that there are no errors in the test-projects that currently use aliases for references? That's a quick way to ensure we don't break this in the future.

maybe you could test via WorkspaceInformationTests?

@bjorkstromm
Copy link
Member Author

Added tests (which verifies from workspace). WorkspaceInformation itself doesn't contain information needed. But I can fetch it from the Workspace directly.

ping @filipw

Copy link
Member

@filipw filipw left a comment

Choose a reason for hiding this comment

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

LGTM

@filipw filipw merged commit 2812373 into OmniSharp:master Feb 12, 2020
filipw added a commit that referenced this pull request Feb 14, 2020
bjorkstromm added a commit that referenced this pull request Feb 15, 2020
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.

2 participants