Add test for semicolon detection in auto-import
This commit is contained in:
parent
b37875ff7a
commit
6282c9fb5e
20
tests/cases/fourslash/completionsImport_noSemicolons.ts
Normal file
20
tests/cases/fourslash/completionsImport_noSemicolons.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @Filename: /a.ts
|
||||
////export function foo() {}
|
||||
|
||||
// @Filename: /b.ts
|
||||
////const x = 0
|
||||
////const y = 1
|
||||
////const z = fo/**/
|
||||
|
||||
verify.applyCodeActionFromCompletion("", {
|
||||
name: "foo",
|
||||
source: "/a",
|
||||
description: `Import 'foo' from module "./a"`,
|
||||
newFileContent: `import { foo } from "./a"
|
||||
|
||||
const x = 0
|
||||
const y = 1
|
||||
const z = fo`,
|
||||
});
|
Loading…
Reference in a new issue