Skip to content

Commit 6282c9f

Browse files
committed
Add test for semicolon detection in auto-import
1 parent b37875f commit 6282c9f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
// @Filename: /a.ts
4+
////export function foo() {}
5+
6+
// @Filename: /b.ts
7+
////const x = 0
8+
////const y = 1
9+
////const z = fo/**/
10+
11+
verify.applyCodeActionFromCompletion("", {
12+
name: "foo",
13+
source: "/a",
14+
description: `Import 'foo' from module "./a"`,
15+
newFileContent: `import { foo } from "./a"
16+
17+
const x = 0
18+
const y = 1
19+
const z = fo`,
20+
});

0 commit comments

Comments
 (0)