Add utitlity for stringContains

This commit is contained in:
Sheetal Nandi
2017-10-10 17:08:47 -07:00
parent aa22c56282
commit e30a66d22f
12 changed files with 18 additions and 15 deletions

View File

@@ -1608,7 +1608,7 @@ namespace ts.server {
}
// No need to analyze lib.d.ts
const fileNamesInProject = fileNames.filter(value => value.indexOf("lib.d.ts") < 0);
const fileNamesInProject = fileNames.filter(value => !stringContains(value, "lib.d.ts"));
if (fileNamesInProject.length === 0) {
return;
}