Skip to content

Commit abb229e

Browse files
committed
Add a bit more validation around comments
1 parent 0694a38 commit abb229e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/cases/fourslash/unusedImports14FS.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
// @noUnusedLocals: true
44
// @Filename: file2.ts
5-
//// [| import /* 1 */ A /* 2 */, /* 3 */ { x } from './a'; |]
5+
//// [| import /* 1 */ A /* 2 */, /* 3 */ { /* 4 */ x /* 5 */ } /* 6 */ from './a'; |]
66
//// console.log(A);
77

88
// @Filename: file1.ts
99
//// export default 10;
1010
//// export var x = 10;
1111

12-
verify.rangeAfterCodeFix("import /* 1 */ A /* 2 */ from './a';");
12+
13+
// It's ambiguous which token comment /* 6 */ applies to or whether it should be removed.
14+
// In the current implementation the comment is left behind, but this behavior isn't a requirement.
15+
verify.rangeAfterCodeFix("import /* 1 */ A /* 2 */ /* 6 */ from './a';");

0 commit comments

Comments
 (0)