コード例 #1
0
        public Antlr4IntellisenseController(ITextView textView, Antlr4IntellisenseControllerProvider provider, Antlr4BackgroundParser backgroundParser)
            : base(textView, provider)
        {
            BackgroundParser = backgroundParser;
            ClassificationTagAggregator = provider.AggregatorFactory.CreateTagAggregator<ClassificationTag>(textView.TextBuffer);

            var shell = Provider.GlobalServiceProvider.GetShell();
            var package = shell.LoadPackage<AntlrLanguagePackage>();
            _intellisenseOptions = package.IntellisenseOptions;
        }
コード例 #2
0
        public Antlr4IntellisenseController(ITextView textView, Antlr4IntellisenseControllerProvider provider, Antlr4BackgroundParser backgroundParser)
            : base(textView, provider)
        {
            BackgroundParser            = backgroundParser;
            ClassificationTagAggregator = provider.AggregatorFactory.CreateTagAggregator <ClassificationTag>(textView.TextBuffer);

            var shell   = Provider.GlobalServiceProvider.GetShell();
            var package = shell.LoadPackage <AntlrLanguagePackage>();

            _intellisenseOptions = package.IntellisenseOptions;
        }