Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 16125c6

Browse files
fix #362: Code completion when typing lambda expression parameters
1 parent fa56721 commit 16125c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/CSharpCompletionBinding.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ bool ShowCompletion(ITextEditor editor, char completionChar, bool ctrlSpace)
127127

128128
DefaultCompletionItemList list = new DefaultCompletionItemList();
129129
list.Items.AddRange(FilterAndAddTemplates(editor, completionData.Cast<ICompletionItem>().ToList()));
130-
if (list.Items.Count > 0) {
130+
if (list.Items.Count > 0 && (ctrlSpace || cce.AutoCompleteEmptyMatch)) {
131131
list.SortItems();
132132
list.PreselectionLength = caretOffset - startPos;
133133
list.PostselectionLength = Math.Max(0, startPos + triggerWordLength - caretOffset);

0 commit comments

Comments
 (0)