Skip to content

Commit c1a3afd

Browse files
committed
Mark more options as affecting errors/resolution
1 parent 29eac1b commit c1a3afd

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/compiler/commandLineParser.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,9 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
652652
{
653653
name: "checkJs",
654654
type: "boolean",
655+
affectsBuildInfo: true,
656+
affectsModuleResolution: true,
657+
affectsSemanticDiagnostics: true,
655658
showInSimplifiedHelpView: true,
656659
category: Diagnostics.JavaScript_Support,
657660
description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,
@@ -664,6 +667,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
664667
affectsEmit: true,
665668
affectsBuildInfo: true,
666669
affectsModuleResolution: true,
670+
affectsSemanticDiagnostics: true,
667671
paramType: Diagnostics.KIND,
668672
showInSimplifiedHelpView: true,
669673
category: Diagnostics.Language_and_Environment,

tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-change.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ Program files::
9696
/user/username/projects/myproject/index.tsx
9797

9898
Semantic diagnostics in builder refreshed for::
99+
/a/lib/lib.d.ts
100+
/user/username/projects/myproject/index.tsx
99101

100102
No shapes updated in the builder::
101103

tests/baselines/reference/tscWatch/programUpdates/when-changing-`checkJs`-of-config-file.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ Program files::
135135
/user/username/projects/myproject/a.js
136136
/user/username/projects/myproject/b.ts
137137

138-
Semantic diagnostics in builder refreshed for::
139-
/user/username/projects/myproject/a.js
140-
/user/username/projects/myproject/b.ts
138+
No cached semantic diagnostics in the builder::
141139

142140
Shape signatures in builder refreshed for::
143141
/user/username/projects/myproject/a.js (computed .d.ts)

0 commit comments

Comments
 (0)