Merge pull request #7466 from Microsoft/issue7292

AllowJS files in tsserver when no project is given
This commit is contained in:
Bill Ticehurst 2016-03-10 11:17:56 -08:00
commit e668835b1d

View File

@ -1317,6 +1317,7 @@ namespace ts.server {
else {
const defaultOpts = ts.getDefaultCompilerOptions();
defaultOpts.allowNonTsExtensions = true;
defaultOpts.allowJs = true;
this.setCompilerOptions(defaultOpts);
}
this.languageService = ts.createLanguageService(this.host, this.documentRegistry);