mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Merge pull request #7466 from Microsoft/issue7292
AllowJS files in tsserver when no project is given
This commit is contained in:
commit
e668835b1d
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user