dotnet/vscode-csharp

Wrong autocomplete for predicates

squalsoft opened this issue · 1 comments

Environment data

dotnet --info output:

Программы командной строки .NET (2.1.4)

Product Information:
 Version:            2.1.4
 Commit SHA-1 hash:  5e8add2190

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.13
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/2.1.4/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.5
  Build    : 17373eb129b3b05aa18ece963f8795d65ef8ea54

VS Code version:
C# Extension version:
1.13.0

Steps to reproduce

Type ( in collections and then letter c.

Expected behavior

No intellisense suggestions

Actual behavior

Autocomplition for c = char. And if i type "c=>c." it will complete with "c=>char". How to disable that?

2018-01-23 14 43 24

@rchande : This should work, as we've got special code in completion that will avoid setting SPACE as a commit character if OmniSharp reports that we're in suggestion mode: https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/features/completionItemProvider.ts#L68-L70. (That is, if the completion API returns a list with a SuggestionModeItem.)

This needs to be assigned out to someone to take a look.