Skip to content

Commit ab1671a

Browse files
committed
Moved minified file exclusion
1 parent 49b3dbd commit ab1671a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/server/editorServices.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -2257,7 +2257,13 @@ namespace ts.server {
22572257
}
22582258
}
22592259
if (!exclude) {
2260-
filesToKeep.push(proj.rootFiles[i]);
2260+
// Exclude any minified files that get this far
2261+
if (/^.+[\.-]min\.js$/.test(normalizedNames[i])) {
2262+
excludedFiles.push(normalizedNames[i]);
2263+
}
2264+
else {
2265+
filesToKeep.push(proj.rootFiles[i]);
2266+
}
22612267
}
22622268
}
22632269
}

src/server/typesMap.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"types": ["winjs"]
1111
},
1212
"Kendo": {
13-
"match": "^(.*\\/kendo)\\/kendo\\.all\\.min\\.js$",
13+
"match": "^(.*\\/kendo(-ui)?)\\/kendo\\.all(\\.min)?\\.js$",
1414
"exclude": [["^", 1, "/.*"]],
1515
"types": ["kendo-ui"]
1616
},
@@ -19,8 +19,8 @@
1919
"exclude": [["^", 1, "/.*"]],
2020
"types": ["office"]
2121
},
22-
"Minified files": {
23-
"match": "^(.+\\.min\\.js)$",
22+
"References": {
23+
"match": "^(.*\\/_references\\.js)$",
2424
"exclude": [["^", 1, "$"]]
2525
}
2626
},

0 commit comments

Comments
 (0)