Merge pull request #20115 from Microsoft/dev/billti/port20109toMaster
Port #20109 to master
This commit is contained in:
commit
6c4c10c7cf
|
@ -155,9 +155,8 @@ namespace ts.server {
|
|||
exclude: [["^", 1, "/.*"]], // Exclude that whole folder if the file indicated above is found in it
|
||||
types: ["office"] // @types package to fetch instead
|
||||
},
|
||||
"Minified files": {
|
||||
// e.g. /whatever/blah.min.js
|
||||
match: /^(.+\.min\.js)$/i,
|
||||
"References": {
|
||||
match: /^(.*\/_references\.js)$/i,
|
||||
exclude: [["^", 1, "$"]]
|
||||
}
|
||||
};
|
||||
|
@ -2287,7 +2286,13 @@ namespace ts.server {
|
|||
}
|
||||
}
|
||||
if (!exclude) {
|
||||
filesToKeep.push(proj.rootFiles[i]);
|
||||
// Exclude any minified files that get this far
|
||||
if (/^.+[\.-]min\.js$/.test(normalizedNames[i])) {
|
||||
excludedFiles.push(normalizedNames[i]);
|
||||
}
|
||||
else {
|
||||
filesToKeep.push(proj.rootFiles[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
"exclude": [["^", 1, "/.*"]],
|
||||
"types": ["office"]
|
||||
},
|
||||
"Minified files": {
|
||||
"match": "^(.+\\.min\\.js)$",
|
||||
"References": {
|
||||
"match": "^(.*\\/_references\\.js)$",
|
||||
"exclude": [["^", 1, "$"]]
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue