You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling CurrentSuggestion() when there is no suggestion causes a panic, and unless I am being daft, there is no public way to check if there is an available suggestion. I had to get round it with reflection to access a private field (matchedSuggestions).
Describe the bug
Calling
CurrentSuggestion()
when there is no suggestion causes a panic, and unless I am being daft, there is no public way to check if there is an available suggestion. I had to get round it with reflection to access a private field (matchedSuggestions
).Setup
To Reproduce
Steps to reproduce the behavior:
<source_file.go>
<tab>
when there are no suggestionsSource Code
Expected behavior
CurrentSuggestion()
to return ""The text was updated successfully, but these errors were encountered: