From abb229e91b83c06799d2f51200ff364afdc989b3 Mon Sep 17 00:00:00 2001 From: Mine Starks Date: Wed, 12 Jul 2017 11:14:48 -0700 Subject: [PATCH] Add a bit more validation around comments --- tests/cases/fourslash/unusedImports14FS.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/cases/fourslash/unusedImports14FS.ts b/tests/cases/fourslash/unusedImports14FS.ts index 90bd2c50587..75124802d35 100644 --- a/tests/cases/fourslash/unusedImports14FS.ts +++ b/tests/cases/fourslash/unusedImports14FS.ts @@ -2,11 +2,14 @@ // @noUnusedLocals: true // @Filename: file2.ts -//// [| import /* 1 */ A /* 2 */, /* 3 */ { x } from './a'; |] +//// [| import /* 1 */ A /* 2 */, /* 3 */ { /* 4 */ x /* 5 */ } /* 6 */ from './a'; |] //// console.log(A); // @Filename: file1.ts //// export default 10; //// export var x = 10; -verify.rangeAfterCodeFix("import /* 1 */ A /* 2 */ from './a';"); \ No newline at end of file + +// It's ambiguous which token comment /* 6 */ applies to or whether it should be removed. +// In the current implementation the comment is left behind, but this behavior isn't a requirement. +verify.rangeAfterCodeFix("import /* 1 */ A /* 2 */ /* 6 */ from './a';"); \ No newline at end of file