mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 10:46:28 -05:00
Fix incorrect message when incremental is false with composite projects
This commit is contained in:
@@ -2721,7 +2721,7 @@ namespace ts {
|
||||
createDiagnosticForOptionName(Diagnostics.Composite_projects_may_not_disable_declaration_emit, "declaration");
|
||||
}
|
||||
if (options.incremental === false) {
|
||||
createDiagnosticForOptionName(Diagnostics.Composite_projects_may_not_disable_declaration_emit, "declaration");
|
||||
createDiagnosticForOptionName(Diagnostics.Composite_projects_may_not_disable_incremental_compilation, "declaration");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error TS6304: Composite projects may not disable declaration emit.
|
||||
error TS6379: Composite projects may not disable incremental compilation.
|
||||
|
||||
|
||||
!!! error TS6304: Composite projects may not disable declaration emit.
|
||||
!!! error TS6379: Composite projects may not disable incremental compilation.
|
||||
==== tests/cases/compiler/optionsCompositeWithIncrementalFalse.ts (0 errors) ====
|
||||
const x = "Hello World";
|
||||
|
||||
Reference in New Issue
Block a user