Merge pull request #7470 from Microsoft/port7466

AllowJS files in tsserver when no project is given
This commit is contained in:
Bill Ticehurst
2016-03-10 13:55:45 -08:00

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);