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

Adapt IDE to new record syntax #44880

Merged
merged 1 commit into from
Jun 5, 2020
Merged

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Jun 5, 2020

In particular, this removes completion for data and adds completion for records. This also fixes some other recommenders and fixers that didn't trigger on the new type syntax.

Relates to #40726 (test plan)

@jcouv jcouv marked this pull request as ready for review June 5, 2020 15:56
@jcouv jcouv requested a review from a team as a code owner June 5, 2020 15:56
using Microsoft.CodeAnalysis.Test.Utilities;
using Roslyn.Test.Utilities;
using Xunit;

namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Recommendations
{
public class DataKeywordRecommenderTests : KeywordRecommenderTests
public class RecordKeywordRecommenderTests : KeywordRecommenderTests
Copy link
Member Author

Choose a reason for hiding this comment

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

RecordKeywordRecommenderTests [](start = 17, length = 29)

📝 this file is a duplicate of ClassKeywordRecommenderTests with one or two tests added, such as typing in position nested in record.

@jcouv
Copy link
Member Author

jcouv commented Jun 5, 2020

Pulled in @mavasani to help out with review since we're trying to merge this today. Thanks!

Copy link
Contributor

@mavasani mavasani left a comment

Choose a reason for hiding this comment

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

LGTM. All the changes look reasonable, though I don't have enough context to know if some places were missed out from being updated. If it turns out so, I don't see a problem in updating them later on.

@mavasani
Copy link
Contributor

mavasani commented Jun 5, 2020

@dotnet/roslyn-ide Can someone else also do a quick review as an additional sanity?

@jcouv
Copy link
Member Author

jcouv commented Jun 5, 2020

@dotnet/roslyn-ide If anyone wants to take a look, please do it quick. We're aiming to get all records PRs merged by tonight.

@jcouv jcouv merged commit d85e5e2 into dotnet:features/records Jun 5, 2020
@jcouv jcouv deleted the records-ide branch June 5, 2020 20:24
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