From bf48564cc8bd49e9223353f636c6d9dd067fba22 Mon Sep 17 00:00:00 2001 From: Arthur Ozga Date: Tue, 29 Nov 2016 13:36:09 -0600 Subject: [PATCH] FIx typo in method stub. --- src/services/codefixes/helpers.ts | 2 +- tests/cases/fourslash/codeFixClassExtendsAbstractMethod.ts | 2 +- ...ClassExtendsAbstractMethodTypeParamsInstantiateNumber.ts | 2 +- ...deFixClassExtendsAbstractMethodTypeParamsInstantiateU.ts | 2 +- .../codeFixUnImplementedClassMissingFunctionVoidInferred.ts | 2 +- .../codeFixUnImplementedClassMissingMethodViaHeritage.ts | 2 +- tests/cases/fourslash/codeFixUnImplementedInterface36.ts | 2 +- tests/cases/fourslash/codeFixUnImplementedInterface39.ts | 2 +- .../fourslash/codeFixUnImplementedInterfaceMissingMethod.ts | 2 +- .../codeFixUnImplementedInterfaceMissingMethodWithParams.ts | 2 +- ...eFixUnImplementedInterfaceMissingMethodWithReturnType.ts | 2 +- .../codeFixUnImplementedInterfaceTypeParamMethod.ts | 2 +- ...lementedInterfaceMissingMultipleMembersAndPunctuation.ts | 6 +++--- 13 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/services/codefixes/helpers.ts b/src/services/codefixes/helpers.ts index 5ad99e7b389..bcab7d59b37 100644 --- a/src/services/codefixes/helpers.ts +++ b/src/services/codefixes/helpers.ts @@ -50,7 +50,7 @@ namespace ts.codefix { } function getMethodBodyStub(newLineChar: string) { - return `{${newLineChar}throw new Error('Method not Implemented');${newLineChar}}${newLineChar}`; + return `{${newLineChar}throw new Error('Method not implemented.');${newLineChar}}${newLineChar}`; } function getVisibilityPrefix(flags: ModifierFlags): string { diff --git a/tests/cases/fourslash/codeFixClassExtendsAbstractMethod.ts b/tests/cases/fourslash/codeFixClassExtendsAbstractMethod.ts index a946d6386a0..cf1322ff8b3 100644 --- a/tests/cases/fourslash/codeFixClassExtendsAbstractMethod.ts +++ b/tests/cases/fourslash/codeFixClassExtendsAbstractMethod.ts @@ -8,6 +8,6 @@ //// |]} verify.rangeAfterCodeFix(`f(){ - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); \ No newline at end of file diff --git a/tests/cases/fourslash/codeFixClassExtendsAbstractMethodTypeParamsInstantiateNumber.ts b/tests/cases/fourslash/codeFixClassExtendsAbstractMethodTypeParamsInstantiateNumber.ts index 1faa572b5bc..bdf198b89e3 100644 --- a/tests/cases/fourslash/codeFixClassExtendsAbstractMethodTypeParamsInstantiateNumber.ts +++ b/tests/cases/fourslash/codeFixClassExtendsAbstractMethodTypeParamsInstantiateNumber.ts @@ -8,6 +8,6 @@ //// |]} verify.rangeAfterCodeFix(`f(x: number): number{ - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); \ No newline at end of file diff --git a/tests/cases/fourslash/codeFixClassExtendsAbstractMethodTypeParamsInstantiateU.ts b/tests/cases/fourslash/codeFixClassExtendsAbstractMethodTypeParamsInstantiateU.ts index abb8b6fd2a7..647a533c1c5 100644 --- a/tests/cases/fourslash/codeFixClassExtendsAbstractMethodTypeParamsInstantiateU.ts +++ b/tests/cases/fourslash/codeFixClassExtendsAbstractMethodTypeParamsInstantiateU.ts @@ -8,6 +8,6 @@ //// |]} verify.rangeAfterCodeFix(`f(x: U): U{ - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); \ No newline at end of file diff --git a/tests/cases/fourslash/codeFixUnImplementedClassMissingFunctionVoidInferred.ts b/tests/cases/fourslash/codeFixUnImplementedClassMissingFunctionVoidInferred.ts index e78bf00f854..d9b9f57d4d2 100644 --- a/tests/cases/fourslash/codeFixUnImplementedClassMissingFunctionVoidInferred.ts +++ b/tests/cases/fourslash/codeFixUnImplementedClassMissingFunctionVoidInferred.ts @@ -8,6 +8,6 @@ verify.rangeAfterCodeFix(` f(): void{ - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); diff --git a/tests/cases/fourslash/codeFixUnImplementedClassMissingMethodViaHeritage.ts b/tests/cases/fourslash/codeFixUnImplementedClassMissingMethodViaHeritage.ts index af20c19561d..4365a160531 100644 --- a/tests/cases/fourslash/codeFixUnImplementedClassMissingMethodViaHeritage.ts +++ b/tests/cases/fourslash/codeFixUnImplementedClassMissingMethodViaHeritage.ts @@ -13,6 +13,6 @@ //// } verify.rangeAfterCodeFix(`f1(): void{ - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); diff --git a/tests/cases/fourslash/codeFixUnImplementedInterface36.ts b/tests/cases/fourslash/codeFixUnImplementedInterface36.ts index 6c25b4b55cf..f9fc48991fc 100644 --- a/tests/cases/fourslash/codeFixUnImplementedInterface36.ts +++ b/tests/cases/fourslash/codeFixUnImplementedInterface36.ts @@ -15,6 +15,6 @@ //// |]} verify.rangeAfterCodeFix(`f1(){ - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); \ No newline at end of file diff --git a/tests/cases/fourslash/codeFixUnImplementedInterface39.ts b/tests/cases/fourslash/codeFixUnImplementedInterface39.ts index 42dfae91e3e..f81dea49782 100644 --- a/tests/cases/fourslash/codeFixUnImplementedInterface39.ts +++ b/tests/cases/fourslash/codeFixUnImplementedInterface39.ts @@ -13,6 +13,6 @@ //// |]} verify.rangeAfterCodeFix(`f1(): string{ - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); diff --git a/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethod.ts b/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethod.ts index 976c0dba56d..b5ba2e20697 100644 --- a/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethod.ts +++ b/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethod.ts @@ -8,6 +8,6 @@ //// |]} verify.rangeAfterCodeFix(`f1(){ - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); diff --git a/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethodWithParams.ts b/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethodWithParams.ts index a21c7074b50..f0b1e669b46 100644 --- a/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethodWithParams.ts +++ b/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethodWithParams.ts @@ -9,6 +9,6 @@ verify.rangeAfterCodeFix(` f(x: number,y: string){ - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); diff --git a/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethodWithReturnType.ts b/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethodWithReturnType.ts index 89ee457a521..c85f1d0043a 100644 --- a/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethodWithReturnType.ts +++ b/tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethodWithReturnType.ts @@ -8,6 +8,6 @@ //// |]} verify.rangeAfterCodeFix(`f1(): string { - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); diff --git a/tests/cases/fourslash/codeFixUnImplementedInterfaceTypeParamMethod.ts b/tests/cases/fourslash/codeFixUnImplementedInterfaceTypeParamMethod.ts index bd221ceb8cb..4d6afaefedc 100644 --- a/tests/cases/fourslash/codeFixUnImplementedInterfaceTypeParamMethod.ts +++ b/tests/cases/fourslash/codeFixUnImplementedInterfaceTypeParamMethod.ts @@ -7,6 +7,6 @@ //// class C implements I {[| |]} verify.rangeAfterCodeFix(`f(x: T){ - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); \ No newline at end of file diff --git a/tests/cases/fourslash/codeFixUnimplementedInterfaceMissingMultipleMembersAndPunctuation.ts b/tests/cases/fourslash/codeFixUnimplementedInterfaceMissingMultipleMembersAndPunctuation.ts index 01f7789620a..beab89c06a5 100644 --- a/tests/cases/fourslash/codeFixUnimplementedInterfaceMissingMultipleMembersAndPunctuation.ts +++ b/tests/cases/fourslash/codeFixUnimplementedInterfaceMissingMultipleMembersAndPunctuation.ts @@ -17,12 +17,12 @@ x: number; y: number; z: number; f() { - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } g() { - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } h() { - throw new Error('Method not Implemented'); + throw new Error('Method not implemented.'); } `); \ No newline at end of file