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

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

                return completionController;
            }

            return null;
        }
Exemplo n.º 2
0
        public IIntellisenseController TryCreateIntellisenseController(ITextView view, IList <ITextBuffer> subjectBuffers)
        {
            if (subjectBuffers[0].ContentType.IsOfType(CssContentTypeDefinition.CssContentType))
            {
                var completionController = ServiceManager.GetService <TypeThroughController>(subjectBuffers[0]);

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

                return(completionController);
            }

            return(null);
        }