Skip to content

Commit 439f1c7

Browse files
committed
Fix regex for real this time
1 parent 857b762 commit 439f1c7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/server/editorServices.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,20 @@ namespace ts.server {
6868
"types": ["jquery"]
6969
},
7070
"WinJS": {
71-
"match": /^(.*\/winjs)\/base\.js$/i, // If the winjs/base.js file is found..
71+
// e.g. c:/temp/UWApp1/lib/winjs-4.0.1/js/base.js
72+
"match": /^(.*\/winjs-[.\d]+)\/js\/base\.js$/i, // If the winjs/base.js file is found..
7273
"exclude": [["^", 1, "/.*"]], // ..then exclude all files under the winjs folder
7374
"types": ["winjs"] // And fetch the @types package for WinJS
7475
},
7576
"Kendo": {
76-
"match": /^(.*\/kendo\/.+\.js$/i,
77-
"exclude": [["^", 1, "/.*"]]
77+
// e.g. /Kendo3/wwwroot/lib/kendo/kendo.all.min.js
78+
"match": /^(.*\/kendo)\/kendo\.all\.min\.js$/i,
79+
"exclude": [["^", 1, "/.*"]],
80+
"types": ["kendo-ui"]
7881
},
7982
"Office Nuget": {
80-
"match": /^(.*\/1\/office)\/excel\.debug\.js$/i, // Office NuGet package is installed under a "1/office" folder
83+
// e.g. /scripts/Office/1/excel-15.debug.js
84+
"match": /^(.*\/office\/1)\/excel-\d+\.debug\.js$/i, // Office NuGet package is installed under a "1/office" folder
8185
"exclude": [["^", 1, "/.*"]], // Exclude that whole folder if the file indicated above is found in it
8286
"types": ["office"] // @types package to fetch instead
8387
}

0 commit comments

Comments
 (0)