public IIntellisenseController TryCreateIntellisenseController(ITextView view, IList<ITextBuffer> subjectBuffers)
        {
            if (subjectBuffers.Count > 0 && (subjectBuffers[0].ContentType.IsOfType("JavaScript")))
            {
                var completionController = ServiceManager.GetService<TypeThroughController>(subjectBuffers[0]);

                if (completionController == null)
                    completionController = new JavaScriptTypeThroughController(view, subjectBuffers);

                return completionController;
            }

            return null;
        }
Пример #2
0
        public IIntellisenseController TryCreateIntellisenseController(ITextView view, IList <ITextBuffer> subjectBuffers)
        {
            if (subjectBuffers.Count > 0 && (subjectBuffers[0].ContentType.IsOfType("JavaScript")))
            {
                var completionController = ServiceManager.GetService <TypeThroughController>(subjectBuffers[0]);

                if (completionController == null)
                {
                    completionController = new JavaScriptTypeThroughController(view, subjectBuffers);
                }

                return(completionController);
            }

            return(null);
        }