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 exception when the list only contains a suggestion mode item #67132

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

dibarbet
Copy link
Member

@dibarbet dibarbet commented Mar 1, 2023

Fixes AB#1755138

@dibarbet dibarbet added Area-IDE LSP issues related to the roslyn language server protocol implementation labels Mar 1, 2023
@dibarbet dibarbet requested a review from a team as a code owner March 1, 2023 19:12
@dibarbet dibarbet force-pushed the lsp_only_suggestion_mode_item branch from 1e2ab52 to 48764ee Compare March 1, 2023 19:13
@dibarbet dibarbet force-pushed the lsp_only_suggestion_mode_item branch from 48764ee to 51469c4 Compare March 1, 2023 19:14
@dibarbet dibarbet enabled auto-merge March 1, 2023 19:23
SuggestionMode = list.SuggestionModeItem != null,
// If we have a suggestion mode item, we just need to keep the list in suggestion mode.
// We don't need to return the fake suggestion mode item.
SuggestionMode = list.SuggestionModeItem is not null,
IsIncomplete = isIncomplete,
};
Copy link
Member

Choose a reason for hiding this comment

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

so it's ok if there are no items in teh list and no suggestion item for us to return this guy?

@dibarbet dibarbet merged commit 50e8196 into dotnet:main Mar 2, 2023
@ghost ghost added this to the Next milestone Mar 2, 2023
@allisonchou allisonchou modified the milestones: Next, 17.6 P3 Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE LSP issues related to the roslyn language server protocol implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants