public IEnumerable<ITemplateScopePoint> ProvideScopePoints(TemplateAcceptanceContext context) { if (context.ProjectFile != null && context.ProjectFile.Name.EndsWith(".ts", StringComparison.InvariantCultureIgnoreCase)) { var scopePoint = new InFileWithMask("*.ts"); return new[] { new ReplacingAllowedPrefixCharsScopePoint(scopePoint, context.Document, context.CaretOffset, JsAllowedPrefixes.Chars) }; } return EmptyList<ITemplateScopePoint>.InstanceList; }
public IEnumerable <ITemplateScopePoint> ProvideScopePoints(TemplateAcceptanceContext context) { if (context.ProjectFile != null && context.ProjectFile.Name.EndsWith(".ts", StringComparison.InvariantCultureIgnoreCase)) { var scopePoint = new InFileWithMask("*.ts"); return(new[] { new DelegatingScopePoint(scopePoint, context.Document, context.CaretOffset) }); } return(EmptyList <ITemplateScopePoint> .InstanceList); }