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

Merge main into features/nameof-parameter #60625

Merged
merged 956 commits into from
Apr 7, 2022

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Apr 7, 2022

No description provided.

CyrusNajmabadi and others added 30 commits March 29, 2022 13:21
Initial work to move indentation services down to codestyle layer (step 9/N)
…ted through CodeAction.Create factory methods

Fixes dotnet#4919
Currently, we always use the CodeAction's full type name to generate the telemetry ID to log for applied code actions. This is reasonable for special CodeActions that sub-type the CodeAction type and have custom logic. However, majority of fixers and refactorings do not need special CodeAction sub-type and can/should use the CodeAction.Create factory methods to create the code actions to register. Until now, these providers were forced to create a dummy nested type (generally named MyCodeAction) and use it to allow telemetry to capture the outer type's full type name.

With this change, we now keep track of whether a CodeAction was created with a factory method or not. If it was created with a factory method, then we use the registering fixer/refactoring provider's full type name for telemetry. Otherwise, we use the CodeAction's full type name. Additionally, we also append the EquivalenceKey in the telemetry ID in both the cases, which should allow multiple code actions registered by the same fixer/refactoring to be differentiated.

NOTE: I will create a follow-up PRs in both Roslyn and Roslyn-Analyzers repos to delete all the stub MyCodeAction types once this goes in.
…329.1 (dotnet#60481)

[main] Update dependencies from dotnet/arcade
Enable CSharpGoToBase.GoToBaseFromMetadataAsSource
…_switch_enum

Inline Diagnostics: Fix conflicting diagnostics and general code cleanup
@jcouv jcouv marked this pull request as ready for review April 7, 2022 20:07
@jcouv jcouv requested review from 333fred, JoeRobich and a team as code owners April 7, 2022 20:07
@jcouv jcouv self-assigned this Apr 7, 2022
@jcouv jcouv merged commit 48e3d2a into dotnet:features/nameof-parameter Apr 7, 2022
@jcouv jcouv deleted the merge-main branch April 7, 2022 21:28
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.