-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Workaround crash in spellchecking in snippet layer #64622
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
Workaround crash in spellchecking in snippet layer #64622
Conversation
| // 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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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].
Workaround crash in spellchecking in snippet layer
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1640728