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

for single character completions, treat the completion list as incomplete #1813

Merged
merged 1 commit into from
Oct 27, 2017

Conversation

filipw
Copy link
Contributor

@filipw filipw commented Oct 27, 2017

Since we now have OmniSharp/omnisharp-roslyn#990, which will offer good subsequence matching, we should treat completion lists for short words (empty and single letters) as incomplete. At the moment every completion list is considered complete and VS Code doesn't go back to the server for better matches as we type more characters.

This will force the editor to go again to the server with 2 letters, at which point the server will offer a much better result (as it will include the subsequence matches originally withheld for performance reasons). We may want to change that to 3 letters or more if the length of 2 is still too aggressive.

@DustinCampbell
Copy link
Member

I'm OK with doing this at 2 letters. In Visual Studio, note that we don't apply any substring filtering until at least two characters are typed.

Copy link
Member

@DustinCampbell DustinCampbell left a comment

Choose a reason for hiding this comment

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

LGTM. @rchande?

Copy link

@rchande rchande left a comment

Choose a reason for hiding this comment

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

LGTM. Do we currently have tests for OmniSharpCompletionItemProvider? If so, mind adding a test?

@DustinCampbell
Copy link
Member

We do not have tests that specifically test OmniSharpCompletionItemProvider yet.

@DustinCampbell DustinCampbell merged commit de33215 into dotnet:master Oct 27, 2017
@filipw
Copy link
Contributor Author

filipw commented Oct 27, 2017

I'm OK with doing this at 2 letters. In Visual Studio, note that we don't apply any substring filtering until at least two characters are typed.

great - it appeared so to me but I wasn't 100% sure.
Should have just asked you straight away 😊

Thanks for merging!

@filipw filipw deleted the feature/incomplete-completions branch October 27, 2017 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants