-
Notifications
You must be signed in to change notification settings - Fork 144
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
Fixing autocomplete #278
Fixing autocomplete #278
Conversation
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.
Looks good!
@@ -80,11 +80,11 @@ public ExpectedCaretPosition ParseFor(int caretPosition) | |||
|
|||
bool detected = false; | |||
|
|||
foreach (var tok in new AutocompleteTokenizer(_text)) | |||
foreach ((int position, int length, var token) in new AutocompleteTokenizer(_text)) |
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.
That makes it so much easier to read. Thanks!
[MemberData(nameof(DoTheParsing_TestCases))] | ||
public void DoTheParsing_IdentifiesAliases(string query, Dictionary<string, string> expected) | ||
{ | ||
var p = new AutocompleteProvider(query); |
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.
p
is a very short name. provider
, maybe?
Making the autocomplete case insensitive again. Fixes issue #264