Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner October 10, 2022 23:55
@ghost ghost added the Area-IDE label Oct 10, 2022
// Snippets perform extremely complex logic to determine their text change. We don't care about that,
// we only want to know what the text was that was shown the user (like `if`).
if (provider is AbstractSnippetCompletionProvider)
return item.DisplayText;
Copy link
Member

@genlu genlu Oct 11, 2022

Choose a reason for hiding this comment

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

I wonder if we could simply do this for all instead of special case one provider here. It should cover most cases, and for any complex edit that differ from display test, spellchecker might not be able to handle the change well anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

WDYM :)

Note: spell-checking does handle cases where the text is different i believe. For example it can emit @int or [integer].

@build-analysis build-analysis bot mentioned this pull request Oct 11, 2022
2 tasks
@CyrusNajmabadi CyrusNajmabadi merged commit 5b86499 into dotnet:main Oct 11, 2022
@ghost ghost added this to the Next milestone Oct 11, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the spellCheckingSnippet branch October 11, 2022 18:42
akhera99 pushed a commit to akhera99/roslyn that referenced this pull request Oct 17, 2022
Workaround crash in spellchecking in snippet layer
@RikkiGibson RikkiGibson modified the milestones: Next, 17.5 P1 Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants