Always set allowNonTsExtensions for allowJs

This commit is contained in:
Jason Ramsay committed 2017-02-10 11:13:12 -08:00
1 parent 2fc634f460
commit 3480fcc69a
2 files changed
+111 -2

No files matched your search

+2 -2
View File
@@ -165,8 +165,8 @@ namespace ts.server {
this.compilerOptions.allowNonTsExtensions = true;
this.compilerOptions.allowJs = true;
}
else if (hasExplicitListOfFiles) {
// If files are listed explicitly, allow all extensions
else if (hasExplicitListOfFiles || this.compilerOptions.allowJs) {
// If files are listed explicitly or allowJs is specified, allow all extensions
this.compilerOptions.allowNonTsExtensions = true;
}