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

Utilize C# Code Action Identifiers #3335

Merged
merged 24 commits into from
Apr 2, 2021

Conversation

TanayParikh
Copy link
Contributor

@TanayParikh TanayParikh commented Mar 29, 2021

Summary of the changes

  • Utilize C# Code Action Identifiers
  • Adds a bunch of new code actions!

Fixes: https://github.com/dotnet/aspnetcore/issues/25939

@TanayParikh
Copy link
Contributor Author

Putting this up to give a general idea of the design. Note; this'll likely end up requiring VSCode changes as well.

@TanayParikh TanayParikh requested a review from a team March 29, 2021 20:03
Copy link
Contributor

@ryanbrandenburg ryanbrandenburg left a comment

Choose a reason for hiding this comment

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

Some things to resolve but nothing structural.

@TanayParikh TanayParikh marked this pull request as ready for review March 31, 2021 00:12
Removing these three tests. The start/end tests no longer make sense as we aren't enforcing diagnostics as we did previously.

Handle_ValidDiagnostic_InvalidCodeAction_ReturnsEmpty also doesn't make sense any longer as we aren't enforcing the code action suffix must match the diagnostic.
Copy link
Contributor

@NTaylorMullen NTaylorMullen left a comment

Choose a reason for hiding this comment

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

Excited to land this!

.editorconfig Outdated Show resolved Hide resolved
eng/Versions.props Outdated Show resolved Hide resolved
TanayParikh and others added 2 commits April 1, 2021 11:46
…3361)

* Refactor Fully Qualify Code Action to Remove Diagnostics Dependency

* Feedback

* Update Versions.props

* Update eng/Versions.props

* Update TestLanguageServiceBroker.cs

* PR Feedback

* Disable Fully Qualify in Explicit Expressions

* Tests
Copy link
Contributor

@ryanbrandenburg ryanbrandenburg left a comment

Choose a reason for hiding this comment

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

LGTM

* Update Versions.props

* Update Versions.props

* Pin MicrosoftVisualStudioRpcContractsPackageVersion

* Try older client impl version

* Add back deprecated functions
@TanayParikh
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@TanayParikh
Copy link
Contributor Author

TanayParikh commented Apr 1, 2021

Ah looks like the LSP upgrade will be required.

There was a conflict between "Microsoft.VisualStudio.LanguageServer.Protocol.Extensions, Version=16.10.138.56166, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "Microsoft.VisualStudio.LanguageServer.Protocol.Extensions, Version=16.10.139.55522, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
    "Microsoft.VisualStudio.LanguageServer.Protocol.Extensions, Version=16.10.138.56166, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "Microsoft.VisualStudio.LanguageServer.Protocol.Extensions, Version=16.10.139.55522, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not.

https://dev.azure.com/dnceng/public/_build/results?buildId=1068874&view=results

Moving to 16.10.170-g435581052d

cc/ @ToddGrun

@TanayParikh TanayParikh merged commit f73e841 into main Apr 2, 2021
@TanayParikh TanayParikh deleted the taparik/utilizeCodeActionIdentifiers branch April 2, 2021 02:29
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.

Get Code Action Identifiers From Roslyn
3 participants