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