コード例 #1
0
 public IIntellisenseController TryCreateIntellisenseController(ITextView textView, IList<ITextBuffer> subjectBuffers) {
     IntellisenseController controller;
     if (!textView.Properties.TryGetProperty<IntellisenseController>(typeof(IntellisenseController), out controller)) {
         controller = new IntellisenseController(this, textView);
         controller.AttachKeyboardFilter();
     }
     return controller;
 }
        public IIntellisenseController TryCreateIntellisenseController(ITextView textView, IList <ITextBuffer> subjectBuffers)
        {
            IntellisenseController controller;

            if (!textView.Properties.TryGetProperty <IntellisenseController>(typeof(IntellisenseController), out controller))
            {
                controller = new IntellisenseController(this, textView);
                controller.AttachKeyboardFilter();
            }
            return(controller);
        }
コード例 #3
0
        public IIntellisenseController TryCreateIntellisenseController(ITextView textView, IList <ITextBuffer> subjectBuffers)
        {
            if (!_validator.Validate())
            {
                return(null);
            }

            IntellisenseController controller;

            if (!textView.Properties.TryGetProperty <IntellisenseController>(typeof(IntellisenseController), out controller))
            {
                controller = new IntellisenseController(this, textView, PowerShellToolsPackage.Instance.IntelliSenseServiceContext);
                controller.AttachKeyboardFilter();
            }
            return(controller);
        }