Skip to content

Commit 9aa7666

Browse files
author
Phoebe Szmucer
committed
Add test
1 parent fcdd614 commit 9aa7666

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
// Should give correct completions for directories when invoked from within nested folders
4+
5+
// @rootDirs: /repo/src,/repo/generated
6+
7+
// @Filename: /dir/secret_file.ts
8+
//// /*secret_file*/
9+
10+
// @Filename: /repo/src/dir/test.ts
11+
//// import * as foo1 from ".//*import_as*/
12+
//// import foo2 = require(".//*import_equals*/
13+
//// var foo3 = require(".//*require*/
14+
15+
// @Filename: /repo/generated/dir/f.ts
16+
//// /*f*/
17+
18+
verify.completions(
19+
{
20+
marker: ["import_as", "import_equals", "require"],
21+
exact: ["f"],
22+
isNewIdentifierLocation: true,
23+
}
24+
);

0 commit comments

Comments
 (0)