diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 9e1afc218ae..d4f32d98ea4 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -20903,10 +20903,10 @@ namespace ts { switch (operatorToken.kind) { case SyntaxKind.EqualsEqualsEqualsToken: case SyntaxKind.EqualsEqualsToken: - return chainDiagnosticMessages(elaboration, Diagnostics.The_types_of_these_values_indicates_that_this_condition_will_always_be_0, "false"); + return chainDiagnosticMessages(elaboration, Diagnostics.The_types_of_these_values_indicate_that_this_condition_will_always_be_0, "false"); case SyntaxKind.ExclamationEqualsEqualsToken: case SyntaxKind.ExclamationEqualsToken: - return chainDiagnosticMessages(elaboration, Diagnostics.The_types_of_these_values_indicates_that_this_condition_will_always_be_0, "true"); + return chainDiagnosticMessages(elaboration, Diagnostics.The_types_of_these_values_indicate_that_this_condition_will_always_be_0, "true"); } return elaboration; } diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 362c41e9d58..5550cad86b7 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1252,7 +1252,7 @@ "category": "Error", "code": 2366 }, - "The types of these values indicates that this condition will always be '{0}'.": { + "The types of these values indicate that this condition will always be '{0}'.": { "category": "Error", "code": 2367 }, diff --git a/src/testRunner/unittests/tsserverProjectSystem.ts b/src/testRunner/unittests/tsserverProjectSystem.ts index 81d486b4b10..d626692e91a 100644 --- a/src/testRunner/unittests/tsserverProjectSystem.ts +++ b/src/testRunner/unittests/tsserverProjectSystem.ts @@ -4999,7 +4999,7 @@ namespace ts.projectSystem { ); const errorResult = session.executeCommand(getErrRequest).response; assert.isTrue(errorResult.length === 1); - assert.equal(errorResult[0].code, Diagnostics.The_types_of_these_values_indicates_that_this_condition_will_always_be_0.code); + assert.equal(errorResult[0].code, Diagnostics.The_types_of_these_values_indicate_that_this_condition_will_always_be_0.code); }); it("should report semantic errors for configured js project with '// @ts-check' and skipLibCheck=true", () => { @@ -5026,7 +5026,7 @@ namespace ts.projectSystem { ); const errorResult = session.executeCommand(getErrRequest).response; assert.isTrue(errorResult.length === 1); - assert.equal(errorResult[0].code, Diagnostics.The_types_of_these_values_indicates_that_this_condition_will_always_be_0.code); + assert.equal(errorResult[0].code, Diagnostics.The_types_of_these_values_indicate_that_this_condition_will_always_be_0.code); }); it("should report semantic errors for configured js project with checkJs=true and skipLibCheck=true", () => { @@ -5055,7 +5055,7 @@ namespace ts.projectSystem { ); const errorResult = session.executeCommand(getErrRequest).response; assert.isTrue(errorResult.length === 1); - assert.equal(errorResult[0].code, Diagnostics.The_types_of_these_values_indicates_that_this_condition_will_always_be_0.code); + assert.equal(errorResult[0].code, Diagnostics.The_types_of_these_values_indicate_that_this_condition_will_always_be_0.code); }); });