Skip to content

Commit

Permalink
When generating a tsconfig with checkJs, make sure we also set allowJs
Browse files Browse the repository at this point in the history
For #87972
  • Loading branch information
mjbvz committed Jan 6, 2020
1 parent f105af6 commit 629a08e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/typescript-language-features/src/utils/tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export function inferredProjectCompilerOptions(

if (serviceConfig.checkJs) {
projectConfig.checkJs = true;
if (isTypeScriptProject) {
projectConfig.allowJs = true;
}
}

if (serviceConfig.experimentalDecorators) {
Expand Down

0 comments on commit 629a08e

Please sign in to comment.