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

Fix up implementation for parameterless requests. #68077

Merged
merged 2 commits into from
May 4, 2023

Conversation

tmat
Copy link
Member

@tmat tmat commented May 3, 2023

No description provided.

@tmat tmat requested a review from a team as a code owner May 3, 2023 20:50
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 3, 2023
@tmat
Copy link
Member Author

tmat commented May 3, 2023

What would be the best way to test this? Apparently this code path is not tested right now.

Copy link
Member

@dibarbet dibarbet left a comment

Choose a reason for hiding this comment

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

lgtm (pending the test)

{
public static VoidReturn Instance = new();
public static NoValue Instance = new();
Copy link
Member

Choose a reason for hiding this comment

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

I couldn't find anyone else using this, so this might not need a dual insertion

Copy link
Member Author

Choose a reason for hiding this comment

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

It's internal, so shouldn't be used, no?

Copy link
Member

Choose a reason for hiding this comment

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

I believe everyone using this has IVTs

@Cosifne
Copy link
Member

Cosifne commented May 3, 2023

What would be the best way to test this? Apparently this code path is not tested right now.

The only way I know is to create a mock client in unit test, and find a scenario and test it. but it depends on if you could find a lsp scenario hitting this

@tmat
Copy link
Member Author

tmat commented May 4, 2023

@dibarbet Tests added.

@tmat tmat merged commit f731f97 into dotnet:main May 4, 2023
@tmat tmat deleted the ParameterlessHandler branch May 4, 2023 15:48
@ghost ghost added this to the Next milestone May 4, 2023
@Cosifne Cosifne modified the milestones: Next, 17.7 P2 May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants