示例#1
0
        internal IPythonAnalyzer PythonAnalyzer = null;                 // Set by MEF

        public void VsTextViewCreated(VisualStudio.TextManager.Interop.IVsTextView textViewAdapter)
        {
            // TODO: We should probably only track text views in Python projects or loose files.
            ITextView textView = AdapterService.GetWpfTextView(textViewAdapter);

            if (textView != null)
            {
                PythonAnalyzer.AnalyzeTextView(textView);
            }
        }
示例#2
0
        internal IIncrementalSearchFactoryService _IncrementalSearch = null; // Set via MEF

        public IIntellisenseController TryCreateIntellisenseController(ITextView textView, IList <ITextBuffer> subjectBuffers)
        {
            // Only use the analyzer if the view is actually file backed. If it is the REPL window
            // we don't use this.
            if (textView.GetFilePath() != null)
            {
                _Analyzer.AnalyzeTextView(textView);
            }

            return(new IntellisenseController(this, subjectBuffers, textView));
        }