public SelfClosingPairHandler(ICodePaneHandler pane, SelfClosingPairCompletionService scpService)
            : base(pane)
        {
            _selfClosingPairs = new[]
            {
                new SelfClosingPair('(', ')'),
                new SelfClosingPair('"', '"'),
                new SelfClosingPair('[', ']'),
                new SelfClosingPair('{', '}'),
            };
            _scpInputLookup = _selfClosingPairs
                              .Select(p => new { Key = p.OpeningChar, Pair = p })
                              .Union(_selfClosingPairs.Where(p => !p.IsSymetric).Select(p => new { Key = p.ClosingChar, Pair = p }))
                              .ToDictionary(p => p.Key, p => p.Pair);

            _scpService = scpService;
        }
Пример #2
0
 public SmartConcatenationHandler(ICodePaneHandler pane)
     : base(pane)
 {
 }
 protected AutoCompleteHandlerBase(ICodePaneHandler pane)
 {
     CodePaneHandler = pane;
 }