@@ -9,25 +9,11 @@ namespace Rubberduck.AutoComplete
99 public class AutoCompleteService : IAutoCompleteService , IDisposable
1010 {
1111 public event EventHandler TypingCode ;
12- private readonly IReadOnlyList < IAutoComplete > _autocompletions = new IAutoComplete [ ]
13- {
14- new AutoCompleteClosingParenthese ( ) ,
15- new AutoCompleteClosingString ( ) ,
16- new AutoCompleteClosingBracket ( ) ,
17- new AutoCompleteClosingBrace ( ) ,
18- new AutoCompleteDoBlock ( ) ,
19- new AutoCompleteEnumBlock ( ) ,
20- new AutoCompleteForBlock ( ) ,
21- new AutoCompleteIfBlock ( ) ,
22- new AutoCompleteOnErrorResumeNextBlock ( ) ,
23- new AutoCompleteSelectBlock ( ) ,
24- new AutoCompleteTypeBlock ( ) ,
25- new AutoCompleteWhileBlock ( ) ,
26- new AutoCompleteWithBlock ( ) ,
27- } ;
12+ private readonly IReadOnlyList < IAutoComplete > _autocompletions ;
2813
29- public AutoCompleteService ( )
14+ public AutoCompleteService ( IReadOnlyList < IAutoComplete > autoCompletes )
3015 {
16+ _autocompletions = autoCompletes ;
3117 VBENativeServices . TypingCode += VBENativeServices_TypingCode ;
3218 }
3319
0 commit comments