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

Route razor/simplifyMethod to Roslyn #5982

Merged
merged 6 commits into from
Aug 10, 2023
Merged

Conversation

lonitra
Copy link
Member

@lonitra lonitra commented Aug 1, 2023

This PR adds logic to route LSP call razor/simplifyMethod to Roslyn's roslyn/simplifyMethod (new LSP method added by dotnet/roslyn#69323) so that 'Generate EventHandler' code action will behave the same as VS and will generate an event handler with the simplified type names.

It also bumps the razor/roslyn server versions to include changes dotnet/razor#9070 and dotnet/roslyn#69323

@lonitra lonitra changed the title Route razor/simplifyTypeNames to Roslyn Route razor/simplifyMethod to Roslyn Aug 9, 2023
@lonitra lonitra force-pushed the razorsimplifyhandler branch from 2b421cf to 9f6bdcc Compare August 9, 2023 18:43
@lonitra lonitra force-pushed the razorsimplifyhandler branch from 96cf203 to abed43e Compare August 9, 2023 20:23
@lonitra lonitra force-pushed the razorsimplifyhandler branch from d9b7b49 to aee3db1 Compare August 9, 2023 22:45
@lonitra lonitra marked this pull request as ready for review August 9, 2023 22:47
@lonitra lonitra requested review from a team as code owners August 9, 2023 22:47
import { TextEdit } from 'vscode-html-languageservice';

export interface SerializableDelegatedSimplifyMethodParams {
identifier: SerializableTextDocumentIdentifierAndVersion;
Copy link
Contributor

@davidwengier davidwengier Aug 9, 2023

Choose a reason for hiding this comment

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

I forgot we changed to use TextDocumentIdentifierAndVersion. @ryzngard do we need to update other types in the extension to this, or is the serialization compatible with whatever they currently have?

@lonitra lonitra merged commit 3444bed into dotnet:main Aug 10, 2023
@lonitra lonitra deleted the razorsimplifyhandler branch August 10, 2023 18:28
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