From 65af685b498d24d1a1c8af284326561a2bd52553 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Fri, 1 Dec 2017 16:38:59 -0800 Subject: [PATCH] Remove periods from refactor/quickfix messages (#20237) * Fix #19959 and #19958: Remove un-localizable messages * Update message * Reorder error messages * Fix https://github.com/Microsoft/TypeScript/issues/15399: remove periods at the end of messages * Accept baselines for error code changes * accept baselines for removed periods * Update diagnostic messages --- src/compiler/diagnosticMessages.json | 70 +++++++++---------- ...signmentOfIdenticallyNamedTypes.errors.txt | 4 +- ...onWithSymlinks_preserveSymlinks.errors.txt | 6 +- .../codeFixAddForgottenDecoratorCall01.ts | 2 +- .../fourslash/codeFixAddForgottenThis01.ts | 2 +- .../fourslash/codeFixAddForgottenThis02.ts | 2 +- .../fourslash/codeFixAddMissingMember.ts | 2 +- .../fourslash/codeFixAddMissingMember2.ts | 2 +- .../fourslash/codeFixAddMissingMember3.ts | 2 +- .../fourslash/codeFixAddMissingMember4.ts | 2 +- .../fourslash/codeFixAddMissingMember5.ts | 2 +- .../fourslash/codeFixAddMissingMember6.ts | 2 +- .../fourslash/codeFixAddMissingMember7.ts | 2 +- .../codeFixChangeExtendsToImplements.ts | 2 +- ...angeExtendsToImplementsAbstractModifier.ts | 2 +- ...eFixChangeExtendsToImplementsTypeParams.ts | 2 +- ...xChangeExtendsToImplementsWithDecorator.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax1.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax10.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax11.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax12.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax13.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax14.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax15.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax16.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax17.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax18.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax19.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax2.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax20.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax21.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax22.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax23.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax24.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax25.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax26.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax4.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax5.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax6.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax7.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax8.ts | 2 +- .../fourslash/codeFixChangeJSDocSyntax9.ts | 2 +- ...ClassImplementClassFunctionVoidInferred.ts | 2 +- ...prExtendsAbstractExpressionWithTypeArgs.ts | 2 +- ...assExtendAbstractExpressionWithTypeArgs.ts | 2 +- .../codeFixClassExtendAbstractGetterSetter.ts | 2 +- .../codeFixClassExtendAbstractMethod.ts | 2 +- .../codeFixClassExtendAbstractMethodThis.ts | 2 +- ...stractMethodTypeParamsInstantiateNumber.ts | 2 +- ...endAbstractMethodTypeParamsInstantiateU.ts | 2 +- .../codeFixClassExtendAbstractProperty.ts | 2 +- .../codeFixUndeclaredInStaticMethod.ts | 8 +-- .../fourslash/codeFixUndeclaredMethod.ts | 6 +- ...letionsImport_default_addToNamedImports.ts | 2 +- ...ionsImport_default_addToNamespaceImport.ts | 2 +- ...Import_default_alreadyExistedWithRename.ts | 2 +- .../completionsImport_default_anonymous.ts | 2 +- ...letionsImport_default_didNotExistBefore.ts | 2 +- .../completionsImport_fromAmbientModule.ts | 2 +- .../completionsImport_multipleWithSameName.ts | 2 +- ...mpletionsImport_named_addToNamedImports.ts | 2 +- ...mpletionsImport_named_didNotExistBefore.ts | 2 +- ...tionsImport_named_namespaceImportExists.ts | 2 +- .../fourslash/completionsImport_ofAlias.ts | 2 +- ...mpletionsImport_ofAlias_preferShortPath.ts | 2 +- .../fourslash/completionsImport_require.ts | 4 +- tests/cases/fourslash/unusedMethodInClass1.ts | 2 +- tests/cases/fourslash/unusedMethodInClass2.ts | 2 +- tests/cases/fourslash/unusedMethodInClass3.ts | 2 +- tests/cases/fourslash/unusedMethodInClass4.ts | 2 +- tests/cases/fourslash/unusedMethodInClass5.ts | 2 +- tests/cases/fourslash/unusedMethodInClass6.ts | 2 +- .../fourslash/unusedNamespaceInNamespace.ts | 2 +- .../unusedParameterInConstructor1.ts | 2 +- ...sedParameterInConstructor1AddUnderscore.ts | 2 +- .../unusedParameterInConstructor2.ts | 2 +- .../unusedParameterInConstructor3.ts | 2 +- .../unusedParameterInConstructor4.ts | 2 +- .../fourslash/unusedParameterInFunction1.ts | 2 +- ...unusedParameterInFunction1AddUnderscore.ts | 2 +- .../fourslash/unusedParameterInFunction2.ts | 2 +- .../fourslash/unusedParameterInFunction3.ts | 2 +- .../fourslash/unusedParameterInFunction4.ts | 2 +- .../fourslash/unusedParameterInLambda1.ts | 2 +- .../unusedParameterInLambda1AddUnderscore.ts | 2 +- .../fourslash/unusedTypeAliasInNamespace1.ts | 2 +- .../fourslash/unusedTypeParametersInClass1.ts | 2 +- .../fourslash/unusedTypeParametersInClass2.ts | 2 +- .../fourslash/unusedTypeParametersInClass3.ts | 3 +- .../unusedTypeParametersInFunction1.ts | 2 +- .../unusedTypeParametersInFunction2.ts | 2 +- .../unusedTypeParametersInFunction3.ts | 2 +- .../unusedTypeParametersInInterface1.ts | 2 +- .../unusedTypeParametersInLambda1.ts | 2 +- .../unusedTypeParametersInLambda2.ts | 2 +- .../unusedTypeParametersInLambda3.ts | 2 +- .../unusedTypeParametersInLambda4.ts | 2 +- .../unusedTypeParametersInMethod1.ts | 2 +- .../unusedTypeParametersInMethod2.ts | 2 +- .../unusedTypeParametersInMethods1.ts | 2 +- .../cases/fourslash/unusedVariableInBlocks.ts | 2 +- .../cases/fourslash/unusedVariableInClass1.ts | 2 +- .../cases/fourslash/unusedVariableInClass2.ts | 2 +- .../cases/fourslash/unusedVariableInClass3.ts | 2 +- .../fourslash/unusedVariableInForLoop1FS.ts | 2 +- .../fourslash/unusedVariableInForLoop2FS.ts | 2 +- .../fourslash/unusedVariableInForLoop3FS.ts | 2 +- .../fourslash/unusedVariableInForLoop4FS.ts | 2 +- ...unusedVariableInForLoop5FSAddUnderscore.ts | 2 +- .../fourslash/unusedVariableInForLoop6FS.ts | 2 +- ...unusedVariableInForLoop6FSAddUnderscore.ts | 2 +- .../fourslash/unusedVariableInForLoop7FS.ts | 2 +- .../fourslash/unusedVariableInModule1.ts | 2 +- .../fourslash/unusedVariableInModule2.ts | 2 +- .../fourslash/unusedVariableInModule3.ts | 2 +- .../fourslash/unusedVariableInModule4.ts | 2 +- .../fourslash/unusedVariableInNamespace1.ts | 2 +- .../fourslash/unusedVariableInNamespace2.ts | 2 +- .../fourslash/unusedVariableInNamespace3.ts | 2 +- 119 files changed, 163 insertions(+), 162 deletions(-) diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 965735debf..67650ab44d 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -2272,6 +2272,10 @@ "category": "Error", "code": 2718 }, + "Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated.": { + "category": "Error", + "code": 2719 + }, "Import declaration '{0}' is using private name '{1}'.": { "category": "Error", @@ -2719,6 +2723,11 @@ "category": "Error", "code": 5067 }, + "Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.": { + "category": "Error", + "code": 5068 + }, + "Concatenate and emit output to single file.": { "category": "Message", "code": 6001 @@ -3710,7 +3719,7 @@ }, "JSX fragment is not supported when using --jsxFactory": { "category": "Error", - "code":17016 + "code": 17016 }, "Circularity detected while resolving configuration: {0}": { @@ -3730,104 +3739,95 @@ "code": 18003 }, - "Add missing 'super()' call.": { + "Add missing 'super()' call": { "category": "Message", "code": 90001 }, - "Make 'super()' call the first statement in the constructor.": { + "Make 'super()' call the first statement in the constructor": { "category": "Message", "code": 90002 }, - "Change 'extends' to 'implements'.": { + "Change 'extends' to 'implements'": { "category": "Message", "code": 90003 }, - "Remove declaration for: '{0}'.": { + "Remove declaration for: '{0}'": { "category": "Message", "code": 90004 }, - "Implement interface '{0}'.": { + "Implement interface '{0}'": { "category": "Message", "code": 90006 }, - "Implement inherited abstract class.": { + "Implement inherited abstract class": { "category": "Message", "code": 90007 }, - "Add 'this.' to unresolved variable.": { + "Add 'this.' to unresolved variable": { "category": "Message", "code": 90008 }, - "Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.": { - "category": "Error", - "code": 90009 - }, - "Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated.": { - "category": "Error", - "code": 90010 - }, - "Import '{0}' from module \"{1}\".": { + "Import '{0}' from module \"{1}\"": { "category": "Message", "code": 90013 }, - "Change '{0}' to '{1}'.": { + "Change '{0}' to '{1}'": { "category": "Message", "code": 90014 }, - "Add '{0}' to existing import declaration from \"{1}\".": { + "Add '{0}' to existing import declaration from \"{1}\"": { "category": "Message", "code": 90015 }, - "Declare property '{0}'.": { + "Declare property '{0}'": { "category": "Message", "code": 90016 }, - "Add index signature for property '{0}'.": { + "Add index signature for property '{0}'": { "category": "Message", "code": 90017 }, - - "Disable checking for this file.": { + "Disable checking for this file": { "category": "Message", "code": 90018 }, - "Ignore this error message.": { + "Ignore this error message": { "category": "Message", "code": 90019 }, - "Initialize property '{0}' in the constructor.": { + "Initialize property '{0}' in the constructor": { "category": "Message", "code": 90020 }, - "Initialize static property '{0}'.": { + "Initialize static property '{0}'": { "category": "Message", "code": 90021 }, - "Change spelling to '{0}'.": { + "Change spelling to '{0}'": { "category": "Message", "code": 90022 }, - "Declare method '{0}'.": { + "Declare method '{0}'": { "category": "Message", "code": 90023 }, - "Declare static method '{0}'.": { + "Declare static method '{0}'": { "category": "Message", "code": 90024 }, - "Prefix '{0}' with an underscore.": { + "Prefix '{0}' with an underscore": { "category": "Message", "code": 90025 }, - "Rewrite as the indexed access type '{0}'.": { + "Rewrite as the indexed access type '{0}'": { "category": "Message", "code": 90026 }, - "Declare static property '{0}'.": { + "Declare static property '{0}'": { "category": "Message", "code": 90027 }, - "Call decorator expression.": { + "Call decorator expression": { "category": "Message", "code": 90028 }, @@ -3871,11 +3871,11 @@ "category": "Message", "code": 95010 }, - "Infer type of '{0}' from usage.": { + "Infer type of '{0}' from usage": { "category": "Message", "code": 95011 }, - "Infer parameter types from usage.": { + "Infer parameter types from usage": { "category": "Message", "code": 95012 }, diff --git a/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.errors.txt b/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.errors.txt index 3f1de47c34..e36eaf2131 100644 --- a/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.errors.txt +++ b/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/incompatibleAssignmentOfIdenticallyNamedTypes.ts(6,9): error TS90010: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +tests/cases/compiler/incompatibleAssignmentOfIdenticallyNamedTypes.ts(6,9): error TS2719: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. ==== tests/cases/compiler/incompatibleAssignmentOfIdenticallyNamedTypes.ts (1 errors) ==== @@ -9,7 +9,7 @@ tests/cases/compiler/incompatibleAssignmentOfIdenticallyNamedTypes.ts(6,9): erro fn() { this.x = a; ~~~~~~ -!!! error TS90010: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2719: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. } } \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.errors.txt b/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.errors.txt index 229fec978e..b6459ad491 100644 --- a/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.errors.txt +++ b/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.errors.txt @@ -1,4 +1,4 @@ -/app/app.ts(9,1): error TS90010: Type 'C' is not assignable to type 'C'. Two different types with this name exist, but they are unrelated. +/app/app.ts(9,1): error TS2719: Type 'C' is not assignable to type 'C'. Two different types with this name exist, but they are unrelated. Types have separate declarations of a private property 'x'. @@ -13,8 +13,8 @@ // Should fail. We no longer resolve any symlinks. x = new C2(); ~ -!!! error TS90010: Type 'C' is not assignable to type 'C'. Two different types with this name exist, but they are unrelated. -!!! error TS90010: Types have separate declarations of a private property 'x'. +!!! error TS2719: Type 'C' is not assignable to type 'C'. Two different types with this name exist, but they are unrelated. +!!! error TS2719: Types have separate declarations of a private property 'x'. ==== /linked/index.d.ts (0 errors) ==== export { real } from "real"; diff --git a/tests/cases/fourslash/codeFixAddForgottenDecoratorCall01.ts b/tests/cases/fourslash/codeFixAddForgottenDecoratorCall01.ts index 17ae7f626f..ee58aa73c3 100644 --- a/tests/cases/fourslash/codeFixAddForgottenDecoratorCall01.ts +++ b/tests/cases/fourslash/codeFixAddForgottenDecoratorCall01.ts @@ -9,6 +9,6 @@ ////} verify.codeFix({ - description: "Call decorator expression.", + description: "Call decorator expression", newRangeContent: `@foo()` }); diff --git a/tests/cases/fourslash/codeFixAddForgottenThis01.ts b/tests/cases/fourslash/codeFixAddForgottenThis01.ts index 5dc5dfa486..15e23c8924 100644 --- a/tests/cases/fourslash/codeFixAddForgottenThis01.ts +++ b/tests/cases/fourslash/codeFixAddForgottenThis01.ts @@ -8,7 +8,7 @@ ////} verify.codeFix({ - description: "Add 'this.' to unresolved variable.", + description: "Add 'this.' to unresolved variable", newRangeContent: ` this.foo = 10; ` diff --git a/tests/cases/fourslash/codeFixAddForgottenThis02.ts b/tests/cases/fourslash/codeFixAddForgottenThis02.ts index 349df61345..60d15fb259 100644 --- a/tests/cases/fourslash/codeFixAddForgottenThis02.ts +++ b/tests/cases/fourslash/codeFixAddForgottenThis02.ts @@ -7,6 +7,6 @@ ////} verify.codeFix({ - description: "Add 'this.' to unresolved variable.", + description: "Add 'this.' to unresolved variable", newRangeContent: "this.foo = 10", }); diff --git a/tests/cases/fourslash/codeFixAddMissingMember.ts b/tests/cases/fourslash/codeFixAddMissingMember.ts index a2ad3bd636..563cc29f4e 100644 --- a/tests/cases/fourslash/codeFixAddMissingMember.ts +++ b/tests/cases/fourslash/codeFixAddMissingMember.ts @@ -7,7 +7,7 @@ ////} verify.codeFix({ - description: "Declare property 'foo'.", + description: "Declare property 'foo'", index: 0, // TODO: GH#18445 newFileContent: `class C { diff --git a/tests/cases/fourslash/codeFixAddMissingMember2.ts b/tests/cases/fourslash/codeFixAddMissingMember2.ts index 68c7035afc..06e111e63c 100644 --- a/tests/cases/fourslash/codeFixAddMissingMember2.ts +++ b/tests/cases/fourslash/codeFixAddMissingMember2.ts @@ -7,7 +7,7 @@ ////} verify.codeFix({ - description: "Add index signature for property 'foo'.", + description: "Add index signature for property 'foo'", index: 1, // TODO: GH#18445 newFileContent: `class C { diff --git a/tests/cases/fourslash/codeFixAddMissingMember3.ts b/tests/cases/fourslash/codeFixAddMissingMember3.ts index 1e3ff32f3f..adc099eff7 100644 --- a/tests/cases/fourslash/codeFixAddMissingMember3.ts +++ b/tests/cases/fourslash/codeFixAddMissingMember3.ts @@ -7,7 +7,7 @@ ////} verify.codeFix({ - description: "Declare static property 'foo'.", + description: "Declare static property 'foo'", index: 0, // TODO: GH#18445 newFileContent: `class C { diff --git a/tests/cases/fourslash/codeFixAddMissingMember4.ts b/tests/cases/fourslash/codeFixAddMissingMember4.ts index a17b777ae5..d5525dc5c3 100644 --- a/tests/cases/fourslash/codeFixAddMissingMember4.ts +++ b/tests/cases/fourslash/codeFixAddMissingMember4.ts @@ -13,7 +13,7 @@ ////} verify.codeFix({ - description: "Initialize property 'foo' in the constructor.", + description: "Initialize property 'foo' in the constructor", index: 0, // TODO: GH#18445 newFileContent: `class C { diff --git a/tests/cases/fourslash/codeFixAddMissingMember5.ts b/tests/cases/fourslash/codeFixAddMissingMember5.ts index 562c4a10f2..a15b564c78 100644 --- a/tests/cases/fourslash/codeFixAddMissingMember5.ts +++ b/tests/cases/fourslash/codeFixAddMissingMember5.ts @@ -11,7 +11,7 @@ ////} verify.codeFix({ - description: "Initialize static property 'foo'.", + description: "Initialize static property 'foo'", index: 0, // TODO: GH#18445 newFileContent: `class C { diff --git a/tests/cases/fourslash/codeFixAddMissingMember6.ts b/tests/cases/fourslash/codeFixAddMissingMember6.ts index 3252506665..7eb360ab17 100644 --- a/tests/cases/fourslash/codeFixAddMissingMember6.ts +++ b/tests/cases/fourslash/codeFixAddMissingMember6.ts @@ -11,7 +11,7 @@ ////} verify.codeFix({ - description: "Initialize property 'foo' in the constructor.", + description: "Initialize property 'foo' in the constructor", index: 0, // TODO: GH#18445 newFileContent: `class C { diff --git a/tests/cases/fourslash/codeFixAddMissingMember7.ts b/tests/cases/fourslash/codeFixAddMissingMember7.ts index 014ab6102d..0655898218 100644 --- a/tests/cases/fourslash/codeFixAddMissingMember7.ts +++ b/tests/cases/fourslash/codeFixAddMissingMember7.ts @@ -9,7 +9,7 @@ ////} verify.codeFix({ - description: "Initialize static property 'foo'.", + description: "Initialize static property 'foo'", index: 2, // TODO: GH#18445 newFileContent: `class C { diff --git a/tests/cases/fourslash/codeFixChangeExtendsToImplements.ts b/tests/cases/fourslash/codeFixChangeExtendsToImplements.ts index bf3b8b7b8a..d520ed0b24 100644 --- a/tests/cases/fourslash/codeFixChangeExtendsToImplements.ts +++ b/tests/cases/fourslash/codeFixChangeExtendsToImplements.ts @@ -4,6 +4,6 @@ //// [|/* */ class /* */ C /* */ extends /* */ I|]{} verify.codeFix({ - description: "Change 'extends' to 'implements'.", + description: "Change 'extends' to 'implements'", newRangeContent: "/* */ class /* */ C /* */ implements /* */ I", }); diff --git a/tests/cases/fourslash/codeFixChangeExtendsToImplementsAbstractModifier.ts b/tests/cases/fourslash/codeFixChangeExtendsToImplementsAbstractModifier.ts index 7f309a2296..9bec3df4f4 100644 --- a/tests/cases/fourslash/codeFixChangeExtendsToImplementsAbstractModifier.ts +++ b/tests/cases/fourslash/codeFixChangeExtendsToImplementsAbstractModifier.ts @@ -6,7 +6,7 @@ //// [|abstract class A extends I1 implements I2|] { } verify.codeFix({ - description: "Change 'extends' to 'implements'.", + description: "Change 'extends' to 'implements'", // TODO: GH#18794 newRangeContent: "abstract class A implements I1 , I2", }); diff --git a/tests/cases/fourslash/codeFixChangeExtendsToImplementsTypeParams.ts b/tests/cases/fourslash/codeFixChangeExtendsToImplementsTypeParams.ts index 2cca0b277f..d71b7b560d 100644 --- a/tests/cases/fourslash/codeFixChangeExtendsToImplementsTypeParams.ts +++ b/tests/cases/fourslash/codeFixChangeExtendsToImplementsTypeParams.ts @@ -4,6 +4,6 @@ ////[|class C extends I|]{} verify.codeFix({ - description: "Change 'extends' to 'implements'.", + description: "Change 'extends' to 'implements'", newRangeContent: "class C implements I", }); diff --git a/tests/cases/fourslash/codeFixChangeExtendsToImplementsWithDecorator.ts b/tests/cases/fourslash/codeFixChangeExtendsToImplementsWithDecorator.ts index e031251ac1..6940cd2783 100644 --- a/tests/cases/fourslash/codeFixChangeExtendsToImplementsWithDecorator.ts +++ b/tests/cases/fourslash/codeFixChangeExtendsToImplementsWithDecorator.ts @@ -11,7 +11,7 @@ //// @sealed //// [|class A extends I1 implements I2 { }|] verify.codeFix({ - description: "Change 'extends' to 'implements'.", + description: "Change 'extends' to 'implements'", // TODO: GH#18794 newRangeContent: "class A implements I1 , I2 { }", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax1.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax1.ts index 1a4e967df4..d0ed055094 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax1.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax1.ts @@ -2,6 +2,6 @@ //// var x: [|?|] = 12; verify.codeFix({ - description: "Change '?' to 'any'.", + description: "Change '?' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax10.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax10.ts index 12ddb66c6f..755454a591 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax10.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax10.ts @@ -4,7 +4,7 @@ //// } verify.codeFix({ - description: "Change 'number?' to 'number | null'.", + description: "Change 'number?' to 'number | null'", errorCode: 8020, index: 0, newRangeContent: "number | null", diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax11.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax11.ts index 8edcbb35da..4b606e0d20 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax11.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax11.ts @@ -4,7 +4,7 @@ //// } verify.codeFix({ - description: "Change 'string?' to 'string | null | undefined'.", + description: "Change 'string?' to 'string | null | undefined'", errorCode: 8020, index: 1, newRangeContent: "string | null | undefined", diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax12.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax12.ts index a2221897aa..8c13913f7d 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax12.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax12.ts @@ -5,7 +5,7 @@ ////} verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", errorCode: 8020, index: 0, newRangeContent: "any", diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax13.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax13.ts index 65fef47fed..0066e539cc 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax13.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax13.ts @@ -5,7 +5,7 @@ ////} verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", errorCode: 8020, index: 0, newRangeContent: "any", diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax14.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax14.ts index 71f21dd830..e0eb15dac9 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax14.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax14.ts @@ -3,7 +3,7 @@ //// var x = 12 as [|number?|]; verify.codeFix({ - description: "Change 'number?' to 'number | null'.", + description: "Change 'number?' to 'number | null'", errorCode: 8020, index: 0, newRangeContent: "number | null", diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax15.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax15.ts index b0e8c069e1..f6d59a88f5 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax15.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax15.ts @@ -3,7 +3,7 @@ // note: without --strict, number? --> number, not number | null verify.codeFix({ - description: "Change 'function(number?): number' to '(arg0: number) => number'.", + description: "Change 'function(number?): number' to '(arg0: number) => number'", errorCode: 8020, index: 0, newRangeContent: "(arg0: number) => number", diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax16.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax16.ts index 264e490d96..1ab0e22e1a 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax16.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax16.ts @@ -2,6 +2,6 @@ //// var f: { [K in keyof number]: [|*|] }; verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax17.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax17.ts index 63973222a8..bb94e98b59 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax17.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax17.ts @@ -2,6 +2,6 @@ //// declare function index(ix: number): [|*|]; verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax18.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax18.ts index 31b04bef0f..fedda8118f 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax18.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax18.ts @@ -2,6 +2,6 @@ //// var index: { (ix: number): [|?|] }; verify.codeFix({ - description: "Change '?' to 'any'.", + description: "Change '?' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax19.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax19.ts index d254cf6d8d..00c1bae9ef 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax19.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax19.ts @@ -2,6 +2,6 @@ //// var index: { new (ix: number): [|?|] }; verify.codeFix({ - description: "Change '?' to 'any'.", + description: "Change '?' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax2.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax2.ts index d2dc0986a5..77f04e3e6e 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax2.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax2.ts @@ -2,6 +2,6 @@ //// var x: [|*|] = 12; verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax20.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax20.ts index 32cfe73fd4..5df9f9cf55 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax20.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax20.ts @@ -2,6 +2,6 @@ //// var index = { get p(): [|*|] { return 12 } }; verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax21.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax21.ts index efb53d5300..ca8bd92d12 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax21.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax21.ts @@ -2,6 +2,6 @@ //// var index = { set p(x: [|*|]) { } }; verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax22.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax22.ts index 06ff23c3cf..871d02d1fc 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax22.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax22.ts @@ -2,6 +2,6 @@ //// var index: { [s: string]: [|*|] }; verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax23.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax23.ts index 29a49ff641..9605412ef0 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax23.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax23.ts @@ -5,6 +5,6 @@ ////} verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax24.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax24.ts index 6c9a840a37..d9ddc3b620 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax24.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax24.ts @@ -4,6 +4,6 @@ ////} verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax25.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax25.ts index 74a7ea9fa1..03c135ecb7 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax25.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax25.ts @@ -4,6 +4,6 @@ ////} verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax26.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax26.ts index 4287539173..c8272e81e9 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax26.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax26.ts @@ -4,6 +4,6 @@ ////} verify.codeFix({ - description: "Change '*' to 'any'.", + description: "Change '*' to 'any'", newRangeContent: "any", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax4.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax4.ts index f2df4abfd3..0e34446b6a 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax4.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax4.ts @@ -2,6 +2,6 @@ //// var x: [|Array.|] = 12; verify.codeFix({ - description: "Change 'Array.' to 'number[]'.", + description: "Change 'Array.' to 'number[]'", newRangeContent: "number[]", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax5.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax5.ts index 39cca325a4..c29a9b6a94 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax5.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax5.ts @@ -3,7 +3,7 @@ //// var x: [|?number|] = 12; verify.codeFix({ - description: "Change '?number' to 'number | null'.", + description: "Change '?number' to 'number | null'", errorCode: 8020, index: 0, newRangeContent: "number | null", diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax6.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax6.ts index da692d723b..29aa512751 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax6.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax6.ts @@ -3,7 +3,7 @@ //// var x: [|number?|] = 12; verify.codeFix({ - description: "Change 'number?' to 'number | null | undefined'.", + description: "Change 'number?' to 'number | null | undefined'", index: 1, newRangeContent: "number | null | undefined", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax7.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax7.ts index 1d557896fe..cd17c1b63e 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax7.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax7.ts @@ -2,6 +2,6 @@ //// var x: [|!number|] = 12; verify.codeFix({ - description: "Change '!number' to 'number'.", + description: "Change '!number' to 'number'", newRangeContent: "number", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax8.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax8.ts index c35badc88c..f7345225a4 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax8.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax8.ts @@ -2,6 +2,6 @@ //// var x: [|function(this: number, number): string|] = 12; verify.codeFix({ - description: "Change 'function(this: number, number): string' to '(this: number, arg1: number) => string'.", + description: "Change 'function(this: number, number): string' to '(this: number, arg1: number) => string'", newRangeContent: "(this: number, arg1: number) => string", }); diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax9.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax9.ts index 6ce049b6a4..42f70c0b19 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax9.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax9.ts @@ -2,6 +2,6 @@ //// var x: [|function(new: number)|] = 12; verify.codeFix({ - description: "Change 'function(new: number)' to 'new () => number'.", + description: "Change 'function(new: number)' to 'new () => number'", newRangeContent: "new () => number", }); diff --git a/tests/cases/fourslash/codeFixClassExprClassImplementClassFunctionVoidInferred.ts b/tests/cases/fourslash/codeFixClassExprClassImplementClassFunctionVoidInferred.ts index b582c5e896..eec691b2cf 100644 --- a/tests/cases/fourslash/codeFixClassExprClassImplementClassFunctionVoidInferred.ts +++ b/tests/cases/fourslash/codeFixClassExprClassImplementClassFunctionVoidInferred.ts @@ -7,7 +7,7 @@ ////let B = class implements A {[| |]} verify.codeFix({ - description: "Implement interface 'A'.", + description: "Implement interface 'A'", // TODO: GH#18795 newRangeContent: `f(): void {\r throw new Error("Method not implemented.");\r diff --git a/tests/cases/fourslash/codeFixClassExprExtendsAbstractExpressionWithTypeArgs.ts b/tests/cases/fourslash/codeFixClassExprExtendsAbstractExpressionWithTypeArgs.ts index 198cb9ea67..f011ed1cf2 100644 --- a/tests/cases/fourslash/codeFixClassExprExtendsAbstractExpressionWithTypeArgs.ts +++ b/tests/cases/fourslash/codeFixClassExprExtendsAbstractExpressionWithTypeArgs.ts @@ -10,7 +10,7 @@ ////let B = class extends foo("s") {[| |]} verify.codeFix({ - description: "Implement inherited abstract class.", + description: "Implement inherited abstract class", // TODO: GH#18795 newRangeContent: `a: string | number;\r ` diff --git a/tests/cases/fourslash/codeFixClassExtendAbstractExpressionWithTypeArgs.ts b/tests/cases/fourslash/codeFixClassExtendAbstractExpressionWithTypeArgs.ts index ed574348b9..9095afe9c8 100644 --- a/tests/cases/fourslash/codeFixClassExtendAbstractExpressionWithTypeArgs.ts +++ b/tests/cases/fourslash/codeFixClassExtendAbstractExpressionWithTypeArgs.ts @@ -10,7 +10,7 @@ ////class B extends foo("s") {[| |]} verify.codeFix({ - description: "Implement inherited abstract class.", + description: "Implement inherited abstract class", // TODO: GH#18795 newRangeContent: `a: string | number;\r ` diff --git a/tests/cases/fourslash/codeFixClassExtendAbstractGetterSetter.ts b/tests/cases/fourslash/codeFixClassExtendAbstractGetterSetter.ts index 3522b1d39d..0ef9c9bf20 100644 --- a/tests/cases/fourslash/codeFixClassExtendAbstractGetterSetter.ts +++ b/tests/cases/fourslash/codeFixClassExtendAbstractGetterSetter.ts @@ -21,7 +21,7 @@ ////class C extends A {[| |]} verify.codeFix({ - description: "Implement inherited abstract class.", + description: "Implement inherited abstract class", // TODO: GH#18795 newRangeContent: `a: string | number;\r b: this;\r diff --git a/tests/cases/fourslash/codeFixClassExtendAbstractMethod.ts b/tests/cases/fourslash/codeFixClassExtendAbstractMethod.ts index de9500552a..4c21038af1 100644 --- a/tests/cases/fourslash/codeFixClassExtendAbstractMethod.ts +++ b/tests/cases/fourslash/codeFixClassExtendAbstractMethod.ts @@ -11,7 +11,7 @@ ////class C extends A {[| |]} verify.codeFix({ - description: "Implement inherited abstract class.", + description: "Implement inherited abstract class", // TODO: GH#18795 newRangeContent: `f(a: number, b: string): boolean;\r f(a: number, b: string): this;\r diff --git a/tests/cases/fourslash/codeFixClassExtendAbstractMethodThis.ts b/tests/cases/fourslash/codeFixClassExtendAbstractMethodThis.ts index e33338b45a..3c5b030333 100644 --- a/tests/cases/fourslash/codeFixClassExtendAbstractMethodThis.ts +++ b/tests/cases/fourslash/codeFixClassExtendAbstractMethodThis.ts @@ -7,7 +7,7 @@ ////class C extends A {[| |]} verify.codeFix({ - description: "Implement inherited abstract class.", + description: "Implement inherited abstract class", // TODO: GH#18795 newRangeContent: `f(): this {\r throw new Error("Method not implemented.");\r diff --git a/tests/cases/fourslash/codeFixClassExtendAbstractMethodTypeParamsInstantiateNumber.ts b/tests/cases/fourslash/codeFixClassExtendAbstractMethodTypeParamsInstantiateNumber.ts index 395d9348b7..b32724f2ee 100644 --- a/tests/cases/fourslash/codeFixClassExtendAbstractMethodTypeParamsInstantiateNumber.ts +++ b/tests/cases/fourslash/codeFixClassExtendAbstractMethodTypeParamsInstantiateNumber.ts @@ -7,7 +7,7 @@ ////class C extends A {[| |]} verify.codeFix({ - description: "Implement inherited abstract class.", + description: "Implement inherited abstract class", // TODO: GH#18795 newRangeContent: `f(x: number): number {\r throw new Error("Method not implemented.");\r diff --git a/tests/cases/fourslash/codeFixClassExtendAbstractMethodTypeParamsInstantiateU.ts b/tests/cases/fourslash/codeFixClassExtendAbstractMethodTypeParamsInstantiateU.ts index 408406a9ef..8ec76c0953 100644 --- a/tests/cases/fourslash/codeFixClassExtendAbstractMethodTypeParamsInstantiateU.ts +++ b/tests/cases/fourslash/codeFixClassExtendAbstractMethodTypeParamsInstantiateU.ts @@ -7,7 +7,7 @@ ////class C extends A {[| |]} verify.codeFix({ - description: "Implement inherited abstract class.", + description: "Implement inherited abstract class", // TODO: GH#18795 newRangeContent: `f(x: U): U {\r throw new Error("Method not implemented.");\r diff --git a/tests/cases/fourslash/codeFixClassExtendAbstractProperty.ts b/tests/cases/fourslash/codeFixClassExtendAbstractProperty.ts index fbdb13f4f2..bc4f26c611 100644 --- a/tests/cases/fourslash/codeFixClassExtendAbstractProperty.ts +++ b/tests/cases/fourslash/codeFixClassExtendAbstractProperty.ts @@ -9,7 +9,7 @@ ////class C extends A {[| |]} verify.codeFix({ - description: "Implement inherited abstract class.", + description: "Implement inherited abstract class", // TODO: GH#18795 newRangeContent: `x: number;\r y: this;\r diff --git a/tests/cases/fourslash/codeFixUndeclaredInStaticMethod.ts b/tests/cases/fourslash/codeFixUndeclaredInStaticMethod.ts index e37725c01e..b1fac4e0f1 100644 --- a/tests/cases/fourslash/codeFixUndeclaredInStaticMethod.ts +++ b/tests/cases/fourslash/codeFixUndeclaredInStaticMethod.ts @@ -10,7 +10,7 @@ //// } verify.codeFix({ - description: "Declare static method 'm1'.", + description: "Declare static method 'm1'", index: 0, // TODO: GH#18445 newRangeContent: ` @@ -21,7 +21,7 @@ verify.codeFix({ }); verify.codeFix({ - description: "Declare static method 'm2'.", + description: "Declare static method 'm2'", index: 0, newRangeContent: ` static m2(arg0: any, arg1: any): any {\r @@ -34,7 +34,7 @@ verify.codeFix({ }); verify.codeFix({ - description: "Declare static property 'prop1'.", + description: "Declare static property 'prop1'", index: 0, newRangeContent: ` static prop1: number;\r @@ -48,7 +48,7 @@ verify.codeFix({ }); verify.codeFix({ - description: "Declare static property 'prop2'.", + description: "Declare static property 'prop2'", index: 0, newRangeContent: ` static prop2: string;\r diff --git a/tests/cases/fourslash/codeFixUndeclaredMethod.ts b/tests/cases/fourslash/codeFixUndeclaredMethod.ts index 3aace334b3..2f291490b1 100644 --- a/tests/cases/fourslash/codeFixUndeclaredMethod.ts +++ b/tests/cases/fourslash/codeFixUndeclaredMethod.ts @@ -11,7 +11,7 @@ //// } verify.codeFix({ - description: "Declare method 'foo1'.", + description: "Declare method 'foo1'", index: 0, // TODO: GH#18445 newRangeContent: ` @@ -22,7 +22,7 @@ verify.codeFix({ }); verify.codeFix({ - description: "Declare method 'foo2'.", + description: "Declare method 'foo2'", index: 0, newRangeContent: ` foo2(): any {\r @@ -35,7 +35,7 @@ verify.codeFix({ }); verify.codeFix({ - description: "Declare method 'foo3'.", + description: "Declare method 'foo3'", index: 0, newRangeContent:` foo3(): any {\r diff --git a/tests/cases/fourslash/completionsImport_default_addToNamedImports.ts b/tests/cases/fourslash/completionsImport_default_addToNamedImports.ts index fb561355c3..4ac76c5167 100644 --- a/tests/cases/fourslash/completionsImport_default_addToNamedImports.ts +++ b/tests/cases/fourslash/completionsImport_default_addToNamedImports.ts @@ -17,7 +17,7 @@ verify.completionListContains({ name: "foo", source: "/a" }, "function foo(): vo verify.applyCodeActionFromCompletion("", { name: "foo", source: "/a", - description: `Add 'foo' to existing import declaration from "./a".`, + description: `Add 'foo' to existing import declaration from "./a"`, newFileContent: `import foo, { x } from "./a"; f;`, }); diff --git a/tests/cases/fourslash/completionsImport_default_addToNamespaceImport.ts b/tests/cases/fourslash/completionsImport_default_addToNamespaceImport.ts index 986c255057..b9ff183f3f 100644 --- a/tests/cases/fourslash/completionsImport_default_addToNamespaceImport.ts +++ b/tests/cases/fourslash/completionsImport_default_addToNamespaceImport.ts @@ -16,7 +16,7 @@ verify.completionListContains({ name: "foo", source: "/a" }, "function foo(): vo verify.applyCodeActionFromCompletion("", { name: "foo", source: "/a", - description: `Add 'foo' to existing import declaration from "./a".`, + description: `Add 'foo' to existing import declaration from "./a"`, newFileContent: `import foo, * as a from "./a"; f;`, }); diff --git a/tests/cases/fourslash/completionsImport_default_alreadyExistedWithRename.ts b/tests/cases/fourslash/completionsImport_default_alreadyExistedWithRename.ts index c8908ab2eb..09c0e74002 100644 --- a/tests/cases/fourslash/completionsImport_default_alreadyExistedWithRename.ts +++ b/tests/cases/fourslash/completionsImport_default_alreadyExistedWithRename.ts @@ -16,7 +16,7 @@ verify.completionListContains({ name: "foo", source: "/a" }, "function foo(): vo verify.applyCodeActionFromCompletion("", { name: "foo", source: "/a", - description: `Import 'foo' from module "./a".`, + description: `Import 'foo' from module "./a"`, // TODO: GH#18445 newFileContent: `import f_o_o from "./a"; import foo from "./a";\r diff --git a/tests/cases/fourslash/completionsImport_default_anonymous.ts b/tests/cases/fourslash/completionsImport_default_anonymous.ts index 297567d1c1..35489c1110 100644 --- a/tests/cases/fourslash/completionsImport_default_anonymous.ts +++ b/tests/cases/fourslash/completionsImport_default_anonymous.ts @@ -21,7 +21,7 @@ verify.completionListContains({ name: "fooBar", source: "/src/foo-bar" }, "(prop verify.applyCodeActionFromCompletion("1", { name: "fooBar", source: "/src/foo-bar", - description: `Import 'fooBar' from module "./foo-bar".`, + description: `Import 'fooBar' from module "./foo-bar"`, // TODO: GH#18445 newFileContent: `import fooBar from "./foo-bar";\r \r diff --git a/tests/cases/fourslash/completionsImport_default_didNotExistBefore.ts b/tests/cases/fourslash/completionsImport_default_didNotExistBefore.ts index dcdffc1090..558be4bee0 100644 --- a/tests/cases/fourslash/completionsImport_default_didNotExistBefore.ts +++ b/tests/cases/fourslash/completionsImport_default_didNotExistBefore.ts @@ -17,7 +17,7 @@ verify.completionListContains({ name: "foo", source: "/a" }, "function foo(): vo verify.applyCodeActionFromCompletion("", { name: "foo", source: "/a", - description: `Import 'foo' from module "./a".`, + description: `Import 'foo' from module "./a"`, // TODO: GH#18445 newFileContent: `import foo from "./a";\r \r diff --git a/tests/cases/fourslash/completionsImport_fromAmbientModule.ts b/tests/cases/fourslash/completionsImport_fromAmbientModule.ts index 3b202ee33d..db9b586eb4 100644 --- a/tests/cases/fourslash/completionsImport_fromAmbientModule.ts +++ b/tests/cases/fourslash/completionsImport_fromAmbientModule.ts @@ -11,7 +11,7 @@ verify.applyCodeActionFromCompletion("", { name: "x", source: "m", - description: `Import 'x' from module "m".`, + description: `Import 'x' from module "m"`, // TODO: GH#18445 newFileContent: `import { x } from "m";\r \r diff --git a/tests/cases/fourslash/completionsImport_multipleWithSameName.ts b/tests/cases/fourslash/completionsImport_multipleWithSameName.ts index 50f20d60bf..d85c04ce9f 100644 --- a/tests/cases/fourslash/completionsImport_multipleWithSameName.ts +++ b/tests/cases/fourslash/completionsImport_multipleWithSameName.ts @@ -22,7 +22,7 @@ verify.completionListContains({ name: "foo", source: "/b" }, "const foo: 1", "", verify.applyCodeActionFromCompletion("", { name: "foo", source: "/b", - description: `Import 'foo' from module "./b".`, + description: `Import 'foo' from module "./b"`, // TODO: GH#18445 newFileContent: `import { foo } from "./b";\r \r diff --git a/tests/cases/fourslash/completionsImport_named_addToNamedImports.ts b/tests/cases/fourslash/completionsImport_named_addToNamedImports.ts index 8c0beb058f..fa1be5ca7d 100644 --- a/tests/cases/fourslash/completionsImport_named_addToNamedImports.ts +++ b/tests/cases/fourslash/completionsImport_named_addToNamedImports.ts @@ -17,7 +17,7 @@ verify.completionListContains({ name: "foo", source: "/a" }, "function foo(): vo verify.applyCodeActionFromCompletion("", { name: "foo", source: "/a", - description: `Add 'foo' to existing import declaration from "./a".`, + description: `Add 'foo' to existing import declaration from "./a"`, newFileContent: `import { x, foo } from "./a"; f;`, }); diff --git a/tests/cases/fourslash/completionsImport_named_didNotExistBefore.ts b/tests/cases/fourslash/completionsImport_named_didNotExistBefore.ts index c13fb27f16..c793a5f06a 100644 --- a/tests/cases/fourslash/completionsImport_named_didNotExistBefore.ts +++ b/tests/cases/fourslash/completionsImport_named_didNotExistBefore.ts @@ -17,7 +17,7 @@ verify.not.completionListContains({ name: "Test2", source: "/a" }, undefined, un verify.applyCodeActionFromCompletion("", { name: "Test1", source: "/a", - description: `Add 'Test1' to existing import declaration from "./a".`, + description: `Add 'Test1' to existing import declaration from "./a"`, newFileContent: `import { Test2, Test1 } from "./a"; t`, }); diff --git a/tests/cases/fourslash/completionsImport_named_namespaceImportExists.ts b/tests/cases/fourslash/completionsImport_named_namespaceImportExists.ts index 4f547259ee..2ea27e7eb1 100644 --- a/tests/cases/fourslash/completionsImport_named_namespaceImportExists.ts +++ b/tests/cases/fourslash/completionsImport_named_namespaceImportExists.ts @@ -16,7 +16,7 @@ verify.completionListContains({ name: "foo", source: "/a" }, "function foo(): vo verify.applyCodeActionFromCompletion("", { name: "foo", source: "/a", - description: `Import 'foo' from module "./a".`, + description: `Import 'foo' from module "./a"`, // TODO: GH#18445 newFileContent: `import * as a from "./a"; import { foo } from "./a";\r diff --git a/tests/cases/fourslash/completionsImport_ofAlias.ts b/tests/cases/fourslash/completionsImport_ofAlias.ts index 1eb730df84..a693065b93 100644 --- a/tests/cases/fourslash/completionsImport_ofAlias.ts +++ b/tests/cases/fourslash/completionsImport_ofAlias.ts @@ -28,7 +28,7 @@ verify.not.completionListContains({ name: "foo", source: "/a_reexport_2" }, unde verify.applyCodeActionFromCompletion("", { name: "foo", source: "/a", - description: `Import 'foo' from module "./a".`, + description: `Import 'foo' from module "./a"`, // TODO: GH#18445 newFileContent: `import { foo } from "./a";\r \r diff --git a/tests/cases/fourslash/completionsImport_ofAlias_preferShortPath.ts b/tests/cases/fourslash/completionsImport_ofAlias_preferShortPath.ts index fae8a4abf5..b837b759b5 100644 --- a/tests/cases/fourslash/completionsImport_ofAlias_preferShortPath.ts +++ b/tests/cases/fourslash/completionsImport_ofAlias_preferShortPath.ts @@ -23,7 +23,7 @@ verify.not.completionListContains({ name: "foo", source: "/foo/index" }, undefin verify.applyCodeActionFromCompletion("", { name: "foo", source: "/foo/lib/foo", - description: `Import 'foo' from module "./foo".`, + description: `Import 'foo' from module "./foo"`, // TODO: GH#18445 newFileContent: `import { foo } from "./foo";\r \r diff --git a/tests/cases/fourslash/completionsImport_require.ts b/tests/cases/fourslash/completionsImport_require.ts index 2913bac27b..2355cd06c3 100644 --- a/tests/cases/fourslash/completionsImport_require.ts +++ b/tests/cases/fourslash/completionsImport_require.ts @@ -22,7 +22,7 @@ verify.completionListContains({ name: "foo", source: "/a" }, "const foo: 0", "", verify.applyCodeActionFromCompletion("b", { name: "foo", source: "/a", - description: `Import 'foo' from module "./a".`, + description: `Import 'foo' from module "./a"`, // TODO: GH#18445 newFileContent: `import { foo } from "./a";\r \r @@ -39,7 +39,7 @@ verify.completionListContains({ name: "foo", source: "/a" }, "const foo: 0", "", verify.applyCodeActionFromCompletion("c", { name: "foo", source: "/a", - description: `Import 'foo' from module "./a".`, + description: `Import 'foo' from module "./a"`, // TODO: GH#18445 newFileContent: `import { foo } from "./a";\r \r diff --git a/tests/cases/fourslash/unusedMethodInClass1.ts b/tests/cases/fourslash/unusedMethodInClass1.ts index 175d95e249..1f6f955b79 100644 --- a/tests/cases/fourslash/unusedMethodInClass1.ts +++ b/tests/cases/fourslash/unusedMethodInClass1.ts @@ -7,6 +7,6 @@ ////} verify.codeFix({ - description: `Remove declaration for: 'function1'.`, + description: `Remove declaration for: 'function1'`, newFileContent: "class greeter {\n}", }); diff --git a/tests/cases/fourslash/unusedMethodInClass2.ts b/tests/cases/fourslash/unusedMethodInClass2.ts index 884f7ecce4..0557bedf20 100644 --- a/tests/cases/fourslash/unusedMethodInClass2.ts +++ b/tests/cases/fourslash/unusedMethodInClass2.ts @@ -9,7 +9,7 @@ ////} verify.codeFix({ - description: `Remove declaration for: 'function1'.`, + description: `Remove declaration for: 'function1'`, newFileContent: `class greeter { public function2() { } diff --git a/tests/cases/fourslash/unusedMethodInClass3.ts b/tests/cases/fourslash/unusedMethodInClass3.ts index f76a1acde0..b41f092de1 100644 --- a/tests/cases/fourslash/unusedMethodInClass3.ts +++ b/tests/cases/fourslash/unusedMethodInClass3.ts @@ -7,6 +7,6 @@ ////} verify.codeFix({ - description: `Remove declaration for: 'function1'.`, + description: `Remove declaration for: 'function1'`, newFileContent: "class greeter {\n}", }); diff --git a/tests/cases/fourslash/unusedMethodInClass4.ts b/tests/cases/fourslash/unusedMethodInClass4.ts index 9f882a3b76..096bede27d 100644 --- a/tests/cases/fourslash/unusedMethodInClass4.ts +++ b/tests/cases/fourslash/unusedMethodInClass4.ts @@ -9,7 +9,7 @@ ////} verify.codeFix({ - description: `Remove declaration for: 'function1'.`, + description: `Remove declaration for: 'function1'`, newRangeContent: `public function2(){ } `, diff --git a/tests/cases/fourslash/unusedMethodInClass5.ts b/tests/cases/fourslash/unusedMethodInClass5.ts index c53a31b5d3..e57d2c7840 100644 --- a/tests/cases/fourslash/unusedMethodInClass5.ts +++ b/tests/cases/fourslash/unusedMethodInClass5.ts @@ -6,6 +6,6 @@ ////} verify.codeFix({ - description: `Remove declaration for: '"string"'.`, + description: `Remove declaration for: '"string"'`, newFileContent: "class C {\n}", }); diff --git a/tests/cases/fourslash/unusedMethodInClass6.ts b/tests/cases/fourslash/unusedMethodInClass6.ts index eef00d1cdd..325bf47fb7 100644 --- a/tests/cases/fourslash/unusedMethodInClass6.ts +++ b/tests/cases/fourslash/unusedMethodInClass6.ts @@ -6,6 +6,6 @@ ////} verify.codeFix({ - description: `Remove declaration for: '"string"'.`, + description: `Remove declaration for: '"string"'`, newFileContent: "class C {\n}", }); diff --git a/tests/cases/fourslash/unusedNamespaceInNamespace.ts b/tests/cases/fourslash/unusedNamespaceInNamespace.ts index 4391a6a158..d5a07c4161 100644 --- a/tests/cases/fourslash/unusedNamespaceInNamespace.ts +++ b/tests/cases/fourslash/unusedNamespaceInNamespace.ts @@ -7,7 +7,7 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'B'.", + description: "Remove declaration for: 'B'", newFileContent: `namespace A { }`, }); diff --git a/tests/cases/fourslash/unusedParameterInConstructor1.ts b/tests/cases/fourslash/unusedParameterInConstructor1.ts index 46a8c1f3b5..92e0e38970 100644 --- a/tests/cases/fourslash/unusedParameterInConstructor1.ts +++ b/tests/cases/fourslash/unusedParameterInConstructor1.ts @@ -6,7 +6,7 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'p1'.", + description: "Remove declaration for: 'p1'", index: 0, newRangeContent: "constructor(public p2: boolean, public p3: any, p5)", }); diff --git a/tests/cases/fourslash/unusedParameterInConstructor1AddUnderscore.ts b/tests/cases/fourslash/unusedParameterInConstructor1AddUnderscore.ts index 37b975a53d..8aa0b92fb3 100644 --- a/tests/cases/fourslash/unusedParameterInConstructor1AddUnderscore.ts +++ b/tests/cases/fourslash/unusedParameterInConstructor1AddUnderscore.ts @@ -6,7 +6,7 @@ //// } verify.codeFix({ - description: "Prefix 'p1' with an underscore.", + description: "Prefix 'p1' with an underscore", index: 1, newRangeContent: "constructor(_p1: string, public p2: boolean, public p3: any, p5)", }); diff --git a/tests/cases/fourslash/unusedParameterInConstructor2.ts b/tests/cases/fourslash/unusedParameterInConstructor2.ts index b8208bb535..9771d202a3 100644 --- a/tests/cases/fourslash/unusedParameterInConstructor2.ts +++ b/tests/cases/fourslash/unusedParameterInConstructor2.ts @@ -6,7 +6,7 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'p2'.", + description: "Remove declaration for: 'p2'", index: 0, newRangeContent: "constructor(public p1: string, public p3: any, p5)", }); diff --git a/tests/cases/fourslash/unusedParameterInConstructor3.ts b/tests/cases/fourslash/unusedParameterInConstructor3.ts index c36f24595a..b45f4d2b85 100644 --- a/tests/cases/fourslash/unusedParameterInConstructor3.ts +++ b/tests/cases/fourslash/unusedParameterInConstructor3.ts @@ -6,7 +6,7 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'p3'.", + description: "Remove declaration for: 'p3'", index: 0, newRangeContent: "constructor(public p1: string, public p2: boolean, p5)", }); diff --git a/tests/cases/fourslash/unusedParameterInConstructor4.ts b/tests/cases/fourslash/unusedParameterInConstructor4.ts index 99e98d64cd..d63ceaa3bc 100644 --- a/tests/cases/fourslash/unusedParameterInConstructor4.ts +++ b/tests/cases/fourslash/unusedParameterInConstructor4.ts @@ -6,7 +6,7 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'p2'.", + description: "Remove declaration for: 'p2'", index: 0, newRangeContent: "constructor(p5)", }); diff --git a/tests/cases/fourslash/unusedParameterInFunction1.ts b/tests/cases/fourslash/unusedParameterInFunction1.ts index 3f979f7876..7c03598c69 100644 --- a/tests/cases/fourslash/unusedParameterInFunction1.ts +++ b/tests/cases/fourslash/unusedParameterInFunction1.ts @@ -5,7 +5,7 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'x'.", + description: "Remove declaration for: 'x'", index: 0, newRangeContent: "greeter()", }); diff --git a/tests/cases/fourslash/unusedParameterInFunction1AddUnderscore.ts b/tests/cases/fourslash/unusedParameterInFunction1AddUnderscore.ts index c248c5e1a9..cbc05d6a37 100644 --- a/tests/cases/fourslash/unusedParameterInFunction1AddUnderscore.ts +++ b/tests/cases/fourslash/unusedParameterInFunction1AddUnderscore.ts @@ -5,7 +5,7 @@ ////} verify.codeFix({ - description: "Prefix 'x' with an underscore.", + description: "Prefix 'x' with an underscore", index: 1, newRangeContent: "greeter( _x)", }); diff --git a/tests/cases/fourslash/unusedParameterInFunction2.ts b/tests/cases/fourslash/unusedParameterInFunction2.ts index 74d95c9922..2d1fa45088 100644 --- a/tests/cases/fourslash/unusedParameterInFunction2.ts +++ b/tests/cases/fourslash/unusedParameterInFunction2.ts @@ -6,7 +6,7 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'y'.", + description: "Remove declaration for: 'y'", index: 0, newRangeContent: "greeter(x)", }); diff --git a/tests/cases/fourslash/unusedParameterInFunction3.ts b/tests/cases/fourslash/unusedParameterInFunction3.ts index 30dc2a9406..5bf2fc9451 100644 --- a/tests/cases/fourslash/unusedParameterInFunction3.ts +++ b/tests/cases/fourslash/unusedParameterInFunction3.ts @@ -6,7 +6,7 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'x'.", + description: "Remove declaration for: 'x'", index: 0, newRangeContent: "greeter(y)", }); diff --git a/tests/cases/fourslash/unusedParameterInFunction4.ts b/tests/cases/fourslash/unusedParameterInFunction4.ts index 87b5880ba7..59ed011940 100644 --- a/tests/cases/fourslash/unusedParameterInFunction4.ts +++ b/tests/cases/fourslash/unusedParameterInFunction4.ts @@ -6,7 +6,7 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'y'.", + description: "Remove declaration for: 'y'", index: 0, newRangeContent: "function greeter(x,z) ", }); diff --git a/tests/cases/fourslash/unusedParameterInLambda1.ts b/tests/cases/fourslash/unusedParameterInLambda1.ts index 325502ebb6..ace79adae4 100644 --- a/tests/cases/fourslash/unusedParameterInLambda1.ts +++ b/tests/cases/fourslash/unusedParameterInLambda1.ts @@ -7,7 +7,7 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'x'.", + description: "Remove declaration for: 'x'", index: 0, newRangeContent: "return () => {}", }); diff --git a/tests/cases/fourslash/unusedParameterInLambda1AddUnderscore.ts b/tests/cases/fourslash/unusedParameterInLambda1AddUnderscore.ts index 1b05c66dd2..cbfd424750 100644 --- a/tests/cases/fourslash/unusedParameterInLambda1AddUnderscore.ts +++ b/tests/cases/fourslash/unusedParameterInLambda1AddUnderscore.ts @@ -7,7 +7,7 @@ //// } verify.codeFix({ - description: "Prefix 'x' with an underscore.", + description: "Prefix 'x' with an underscore", index: 1, newRangeContent: "return (_x:number) => {}", }); diff --git a/tests/cases/fourslash/unusedTypeAliasInNamespace1.ts b/tests/cases/fourslash/unusedTypeAliasInNamespace1.ts index 13c87f6afd..2798deaea6 100644 --- a/tests/cases/fourslash/unusedTypeAliasInNamespace1.ts +++ b/tests/cases/fourslash/unusedTypeAliasInNamespace1.ts @@ -7,7 +7,7 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'hw'.", + description: "Remove declaration for: 'hw'", newFileContent: `namespace greeter { export type nw = "No" | "Way"; }`, diff --git a/tests/cases/fourslash/unusedTypeParametersInClass1.ts b/tests/cases/fourslash/unusedTypeParametersInClass1.ts index 6574362511..327558922e 100644 --- a/tests/cases/fourslash/unusedTypeParametersInClass1.ts +++ b/tests/cases/fourslash/unusedTypeParametersInClass1.ts @@ -5,6 +5,6 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'T'.", + description: "Remove declaration for: 'T'", newRangeContent: "class greeter ", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInClass2.ts b/tests/cases/fourslash/unusedTypeParametersInClass2.ts index 3cb984a11e..4f78aa3fbe 100644 --- a/tests/cases/fourslash/unusedTypeParametersInClass2.ts +++ b/tests/cases/fourslash/unusedTypeParametersInClass2.ts @@ -6,6 +6,6 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'Y'.", + description: "Remove declaration for: 'Y'", newRangeContent: "class greeter ", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInClass3.ts b/tests/cases/fourslash/unusedTypeParametersInClass3.ts index 13ebc352cb..f0b12f868f 100644 --- a/tests/cases/fourslash/unusedTypeParametersInClass3.ts +++ b/tests/cases/fourslash/unusedTypeParametersInClass3.ts @@ -1,3 +1,4 @@ + /// // @noUnusedLocals: true @@ -7,6 +8,6 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'Y'.", + description: "Remove declaration for: 'Y'", newRangeContent: "class greeter ", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInFunction1.ts b/tests/cases/fourslash/unusedTypeParametersInFunction1.ts index b7289fc1e0..a33ecf60ea 100644 --- a/tests/cases/fourslash/unusedTypeParametersInFunction1.ts +++ b/tests/cases/fourslash/unusedTypeParametersInFunction1.ts @@ -4,6 +4,6 @@ //// [|function f1() {}|] verify.codeFix({ - description: "Remove declaration for: 'T'.", + description: "Remove declaration for: 'T'", newRangeContent: "function f1() {}", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInFunction2.ts b/tests/cases/fourslash/unusedTypeParametersInFunction2.ts index e2851b3460..9c0d9e7b09 100644 --- a/tests/cases/fourslash/unusedTypeParametersInFunction2.ts +++ b/tests/cases/fourslash/unusedTypeParametersInFunction2.ts @@ -4,6 +4,6 @@ //// [|function f1(a: X) {a}|] verify.codeFix({ - description: "Remove declaration for: 'Y'.", + description: "Remove declaration for: 'Y'", newRangeContent: "function f1(a: X) {a}", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInFunction3.ts b/tests/cases/fourslash/unusedTypeParametersInFunction3.ts index 4be2dc5feb..0c8ea44973 100644 --- a/tests/cases/fourslash/unusedTypeParametersInFunction3.ts +++ b/tests/cases/fourslash/unusedTypeParametersInFunction3.ts @@ -4,6 +4,6 @@ //// [|function f1(a: X) {a;var b:Z;b}|] verify.codeFix({ - description: "Remove declaration for: 'Y'.", + description: "Remove declaration for: 'Y'", newRangeContent: "function f1(a: X) {a;var b:Z;b}", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInInterface1.ts b/tests/cases/fourslash/unusedTypeParametersInInterface1.ts index bc3a95d63b..a2d13e2326 100644 --- a/tests/cases/fourslash/unusedTypeParametersInInterface1.ts +++ b/tests/cases/fourslash/unusedTypeParametersInInterface1.ts @@ -5,6 +5,6 @@ //// [|interface I {}|] verify.codeFix({ - description: "Remove declaration for: 'T'.", + description: "Remove declaration for: 'T'", newRangeContent: "interface I {}", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInLambda1.ts b/tests/cases/fourslash/unusedTypeParametersInLambda1.ts index 3d7310d6ae..54452d2874 100644 --- a/tests/cases/fourslash/unusedTypeParametersInLambda1.ts +++ b/tests/cases/fourslash/unusedTypeParametersInLambda1.ts @@ -7,6 +7,6 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'T'.", + description: "Remove declaration for: 'T'", newRangeContent: "return(x:number) => {x}", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInLambda2.ts b/tests/cases/fourslash/unusedTypeParametersInLambda2.ts index b2b89d3373..e449384e2c 100644 --- a/tests/cases/fourslash/unusedTypeParametersInLambda2.ts +++ b/tests/cases/fourslash/unusedTypeParametersInLambda2.ts @@ -7,6 +7,6 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'U'.", + description: "Remove declaration for: 'U'", newRangeContent: "new (a: T): void;", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInLambda3.ts b/tests/cases/fourslash/unusedTypeParametersInLambda3.ts index 1f994c4590..95cad69439 100644 --- a/tests/cases/fourslash/unusedTypeParametersInLambda3.ts +++ b/tests/cases/fourslash/unusedTypeParametersInLambda3.ts @@ -8,6 +8,6 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'K'.", + description: "Remove declaration for: 'K'", newRangeContent: "new (a: T): A;", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInLambda4.ts b/tests/cases/fourslash/unusedTypeParametersInLambda4.ts index d5c01202d2..b3e3f4b11f 100644 --- a/tests/cases/fourslash/unusedTypeParametersInLambda4.ts +++ b/tests/cases/fourslash/unusedTypeParametersInLambda4.ts @@ -7,6 +7,6 @@ //// [|var y: new (a:T)=>void;|] verify.codeFix({ - description: "Remove declaration for: 'U'.", + description: "Remove declaration for: 'U'", newRangeContent: "var y: new (a:T)=>void;", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInMethod1.ts b/tests/cases/fourslash/unusedTypeParametersInMethod1.ts index f4d036f54f..260a939965 100644 --- a/tests/cases/fourslash/unusedTypeParametersInMethod1.ts +++ b/tests/cases/fourslash/unusedTypeParametersInMethod1.ts @@ -6,6 +6,6 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'T'.", + description: "Remove declaration for: 'T'", newRangeContent: "f1()", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInMethod2.ts b/tests/cases/fourslash/unusedTypeParametersInMethod2.ts index 25556ebc57..377642c5bd 100644 --- a/tests/cases/fourslash/unusedTypeParametersInMethod2.ts +++ b/tests/cases/fourslash/unusedTypeParametersInMethod2.ts @@ -6,6 +6,6 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'T'.", + description: "Remove declaration for: 'T'", newRangeContent: "f1(a: U)", }); diff --git a/tests/cases/fourslash/unusedTypeParametersInMethods1.ts b/tests/cases/fourslash/unusedTypeParametersInMethods1.ts index 62f2224643..4a538fb4b3 100644 --- a/tests/cases/fourslash/unusedTypeParametersInMethods1.ts +++ b/tests/cases/fourslash/unusedTypeParametersInMethods1.ts @@ -6,6 +6,6 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'Y'.", + description: "Remove declaration for: 'Y'", newRangeContent: "public f1(a: X)", }); diff --git a/tests/cases/fourslash/unusedVariableInBlocks.ts b/tests/cases/fourslash/unusedVariableInBlocks.ts index fe3c002916..4dac7ae1d9 100644 --- a/tests/cases/fourslash/unusedVariableInBlocks.ts +++ b/tests/cases/fourslash/unusedVariableInBlocks.ts @@ -10,7 +10,7 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'x'.", + description: "Remove declaration for: 'x'", newRangeContent: `let x = 10; { } diff --git a/tests/cases/fourslash/unusedVariableInClass1.ts b/tests/cases/fourslash/unusedVariableInClass1.ts index e4cec171e8..d1c3b5c643 100644 --- a/tests/cases/fourslash/unusedVariableInClass1.ts +++ b/tests/cases/fourslash/unusedVariableInClass1.ts @@ -6,6 +6,6 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'greeting'.", + description: "Remove declaration for: 'greeting'", newRangeContent: "", }); diff --git a/tests/cases/fourslash/unusedVariableInClass2.ts b/tests/cases/fourslash/unusedVariableInClass2.ts index 1f632a43ce..2e6b382698 100644 --- a/tests/cases/fourslash/unusedVariableInClass2.ts +++ b/tests/cases/fourslash/unusedVariableInClass2.ts @@ -7,6 +7,6 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'greeting'.", + description: "Remove declaration for: 'greeting'", newRangeContent: "public greeting1;\n", }); diff --git a/tests/cases/fourslash/unusedVariableInClass3.ts b/tests/cases/fourslash/unusedVariableInClass3.ts index eec4e6bbe8..bc3527e03a 100644 --- a/tests/cases/fourslash/unusedVariableInClass3.ts +++ b/tests/cases/fourslash/unusedVariableInClass3.ts @@ -6,6 +6,6 @@ ////|]} verify.codeFix({ - description: "Remove declaration for: 'X'.", + description: "Remove declaration for: 'X'", newRangeContent: "\n", }); diff --git a/tests/cases/fourslash/unusedVariableInForLoop1FS.ts b/tests/cases/fourslash/unusedVariableInForLoop1FS.ts index 2a4feffd47..32c83871da 100644 --- a/tests/cases/fourslash/unusedVariableInForLoop1FS.ts +++ b/tests/cases/fourslash/unusedVariableInForLoop1FS.ts @@ -8,6 +8,6 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'i'.", + description: "Remove declaration for: 'i'", newRangeContent: "for(; ;) ", }); diff --git a/tests/cases/fourslash/unusedVariableInForLoop2FS.ts b/tests/cases/fourslash/unusedVariableInForLoop2FS.ts index d913ae5ce9..332f7f7c28 100644 --- a/tests/cases/fourslash/unusedVariableInForLoop2FS.ts +++ b/tests/cases/fourslash/unusedVariableInForLoop2FS.ts @@ -8,6 +8,6 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'j'.", + description: "Remove declaration for: 'j'", newRangeContent: "for(var i = 0; ;i++)", }); diff --git a/tests/cases/fourslash/unusedVariableInForLoop3FS.ts b/tests/cases/fourslash/unusedVariableInForLoop3FS.ts index 6f3beae5c7..de8fa6dd2f 100644 --- a/tests/cases/fourslash/unusedVariableInForLoop3FS.ts +++ b/tests/cases/fourslash/unusedVariableInForLoop3FS.ts @@ -8,6 +8,6 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'j'.", + description: "Remove declaration for: 'j'", newRangeContent: "for(var i = 0, k=0; ;i++, k++)", }); diff --git a/tests/cases/fourslash/unusedVariableInForLoop4FS.ts b/tests/cases/fourslash/unusedVariableInForLoop4FS.ts index 661012958d..2203abbe1b 100644 --- a/tests/cases/fourslash/unusedVariableInForLoop4FS.ts +++ b/tests/cases/fourslash/unusedVariableInForLoop4FS.ts @@ -8,6 +8,6 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'i'.", + description: "Remove declaration for: 'i'", newRangeContent: "for(var j= 0, k=0; ;j++, k++) ", }); diff --git a/tests/cases/fourslash/unusedVariableInForLoop5FSAddUnderscore.ts b/tests/cases/fourslash/unusedVariableInForLoop5FSAddUnderscore.ts index 87783ff67f..4fcb07e869 100644 --- a/tests/cases/fourslash/unusedVariableInForLoop5FSAddUnderscore.ts +++ b/tests/cases/fourslash/unusedVariableInForLoop5FSAddUnderscore.ts @@ -8,6 +8,6 @@ //// } verify.codeFix({ - description: "Prefix 'elem' with an underscore.", + description: "Prefix 'elem' with an underscore", newRangeContent: 'for (const _elem in ["a", "b", "c"])' }); diff --git a/tests/cases/fourslash/unusedVariableInForLoop6FS.ts b/tests/cases/fourslash/unusedVariableInForLoop6FS.ts index 9661514d43..d2fa0e0757 100644 --- a/tests/cases/fourslash/unusedVariableInForLoop6FS.ts +++ b/tests/cases/fourslash/unusedVariableInForLoop6FS.ts @@ -8,7 +8,7 @@ //// } verify.codeFix({ - description: "Remove declaration for: 'elem'.", + description: "Remove declaration for: 'elem'", index: 0, newRangeContent: "const {} of", }); diff --git a/tests/cases/fourslash/unusedVariableInForLoop6FSAddUnderscore.ts b/tests/cases/fourslash/unusedVariableInForLoop6FSAddUnderscore.ts index 9f8c7b19f9..379adf720b 100644 --- a/tests/cases/fourslash/unusedVariableInForLoop6FSAddUnderscore.ts +++ b/tests/cases/fourslash/unusedVariableInForLoop6FSAddUnderscore.ts @@ -8,7 +8,7 @@ //// } verify.codeFix({ - description: "Prefix 'elem' with an underscore.", + description: "Prefix 'elem' with an underscore", index: 1, newRangeContent: "const _elem of" }); diff --git a/tests/cases/fourslash/unusedVariableInForLoop7FS.ts b/tests/cases/fourslash/unusedVariableInForLoop7FS.ts index c42bf8bc97..aab6376580 100644 --- a/tests/cases/fourslash/unusedVariableInForLoop7FS.ts +++ b/tests/cases/fourslash/unusedVariableInForLoop7FS.ts @@ -10,7 +10,7 @@ //// verify.codeFix({ - description: "Remove declaration for: 'x'.", + description: "Remove declaration for: 'x'", newRangeContent: `{ for (const elem of ["a", "b", "c"]) { elem; diff --git a/tests/cases/fourslash/unusedVariableInModule1.ts b/tests/cases/fourslash/unusedVariableInModule1.ts index 7a0a3ad860..a0b5ebb80c 100644 --- a/tests/cases/fourslash/unusedVariableInModule1.ts +++ b/tests/cases/fourslash/unusedVariableInModule1.ts @@ -7,6 +7,6 @@ //// export var y: string;|] verify.codeFix({ - description: "Remove declaration for: 'x'.", + description: "Remove declaration for: 'x'", newRangeContent: "export var y: string;", }); diff --git a/tests/cases/fourslash/unusedVariableInModule2.ts b/tests/cases/fourslash/unusedVariableInModule2.ts index e8a1ae762d..20a901c5b6 100644 --- a/tests/cases/fourslash/unusedVariableInModule2.ts +++ b/tests/cases/fourslash/unusedVariableInModule2.ts @@ -8,6 +8,6 @@ //// export var y: string; verify.codeFix({ - description: "Remove declaration for: 'x'.", + description: "Remove declaration for: 'x'", newRangeContent: "var z: number;", }); diff --git a/tests/cases/fourslash/unusedVariableInModule3.ts b/tests/cases/fourslash/unusedVariableInModule3.ts index 56b08f5499..6a7681c392 100644 --- a/tests/cases/fourslash/unusedVariableInModule3.ts +++ b/tests/cases/fourslash/unusedVariableInModule3.ts @@ -7,6 +7,6 @@ //// export var y: string;|] verify.codeFix({ - description: "Remove declaration for: 'x'.", + description: "Remove declaration for: 'x'", newRangeContent: "export var y: string;", }); diff --git a/tests/cases/fourslash/unusedVariableInModule4.ts b/tests/cases/fourslash/unusedVariableInModule4.ts index 71890893b9..4f8657b30a 100644 --- a/tests/cases/fourslash/unusedVariableInModule4.ts +++ b/tests/cases/fourslash/unusedVariableInModule4.ts @@ -8,7 +8,7 @@ //// export var y: string; verify.codeFix({ - description: "Remove declaration for: 'm'.", + description: "Remove declaration for: 'm'", index: 0, newRangeContent: `var x = function f1() {}`, }); diff --git a/tests/cases/fourslash/unusedVariableInNamespace1.ts b/tests/cases/fourslash/unusedVariableInNamespace1.ts index 6dd1423368..33c1c25170 100644 --- a/tests/cases/fourslash/unusedVariableInNamespace1.ts +++ b/tests/cases/fourslash/unusedVariableInNamespace1.ts @@ -6,6 +6,6 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'a'.", + description: "Remove declaration for: 'a'", newRangeContent: "", }); diff --git a/tests/cases/fourslash/unusedVariableInNamespace2.ts b/tests/cases/fourslash/unusedVariableInNamespace2.ts index 9bf546f6f5..2719fea1b2 100644 --- a/tests/cases/fourslash/unusedVariableInNamespace2.ts +++ b/tests/cases/fourslash/unusedVariableInNamespace2.ts @@ -9,6 +9,6 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'b'.", + description: "Remove declaration for: 'b'", newRangeContent: 'let a = "dummy entry", c = 0;', }); diff --git a/tests/cases/fourslash/unusedVariableInNamespace3.ts b/tests/cases/fourslash/unusedVariableInNamespace3.ts index 85e1889c3e..a542b53141 100644 --- a/tests/cases/fourslash/unusedVariableInNamespace3.ts +++ b/tests/cases/fourslash/unusedVariableInNamespace3.ts @@ -9,6 +9,6 @@ ////} verify.codeFix({ - description: "Remove declaration for: 'c'.", + description: "Remove declaration for: 'c'", newRangeContent: 'let a = "dummy entry", b;', });