* don't delete comment on variable declaration * add more declaration kinds * don't copy comment in convertes6 class * don't copy comments in convertToES6Class * add tests * use isAnyImportSyntax * handle mixed comment types * update tests
18 lines
351 B
TypeScript
18 lines
351 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @noUnusedLocals: true
|
|
////[|namespace greeter {
|
|
//// // Do not remove
|
|
//// /**
|
|
//// * JSDoc Comment
|
|
//// */
|
|
//// let a = 0;
|
|
////}|]
|
|
|
|
verify.codeFix({
|
|
description: "Remove unused declaration for: 'a'",
|
|
newRangeContent: `namespace greeter {
|
|
// Do not remove
|
|
}`
|
|
});
|