示例#1
0
        ITagger <T> IViewTaggerProvider.CreateTagger <T>(ITextView textView, ITextBuffer textBuffer)
        {
            if (textView.TextBuffer != textBuffer || !_vim.ShouldCreateVimBuffer(textView))
            {
                return(null);
            }

            return(EditorUtilsFactory.CreateTagger(
                       textView.Properties,
                       _key,
                       () => CreateCharDisplayTaggerSource(textView)) as ITagger <T>);
        }
示例#2
0
        ITagger <T> IViewTaggerProvider.CreateTagger <T>(ITextView textView, ITextBuffer textBuffer)
        {
            if (textView.TextBuffer != textBuffer || !_vim.ShouldCreateVimBuffer(textView))
            {
                return(null);
            }

            Func <IBasicTaggerSource <IntraTextAdornmentTag> > func = () => CreateCharDisplayTaggerSource(textView);

            return(TaggerUtil.CreateBasicTagger(
                       textView.Properties,
                       _key,
                       func.ToFSharpFunc()) as ITagger <T>);
        }