Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit a9cf0c2

Browse files
Tweaking ImportMany command
1 parent 9fd2cac commit a9cf0c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/Services/AutoCompleteAdvisor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class AutoCompleteAdvisor : IAutoCompleteAdvisor
2525
readonly Lazy<Dictionary<string, IAutoCompleteSource>> prefixSourceMap;
2626

2727
[ImportingConstructor]
28-
public AutoCompleteAdvisor([ImportMany]IEnumerable<IAutoCompleteSource> autocompleteSources)
28+
public AutoCompleteAdvisor([ImportMany(typeof(IAutoCompleteSource))]IEnumerable<IAutoCompleteSource> autocompleteSources)
2929
{
3030
prefixSourceMap = new Lazy<Dictionary<string, IAutoCompleteSource>>(
3131
() => autocompleteSources.ToDictionary(s => s.Prefix, s => s));

0 commit comments

Comments
 (0)