Skip to content

Commit b3f7cd9

Browse files
committed
JS: Extract TS snippets with no tsconfig.json file
1 parent 53557db commit b3f7cd9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,12 @@ private Set<Path> extractTypeScript(
10871087
remainingTypeScriptFiles.add(f);
10881088
}
10891089
}
1090+
for (Map.Entry<Path, FileSnippet> entry : state.getSnippets().entrySet()) {
1091+
if (!extractedFiles.contains(entry.getKey())
1092+
&& FileType.forFileExtension(entry.getKey().toFile()) == FileType.TYPESCRIPT) {
1093+
remainingTypeScriptFiles.add(entry.getKey());
1094+
}
1095+
}
10901096
if (!remainingTypeScriptFiles.isEmpty()) {
10911097
extractTypeScriptFiles(remainingTypeScriptFiles, extractedFiles, extractors);
10921098
}

0 commit comments

Comments
 (0)