JS: Treat d.ts as a single extension in Folder.getJavaScriptFile

This commit is contained in:
Asger F
2022-05-20 20:06:54 +02:00
parent 987a830029
commit c8bb0e2117
3 changed files with 17 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ int getFileExtensionPriority(string ext) {
ext = "json" and result = 8
or
ext = "node" and result = 9
or
ext = "d.ts" and result = 10
}
int prioritiesPerCandidate() { result = 3 * (numberOfExtensions() + 1) }