Skip to content

Commit 01f2cce

Browse files
committed
Add fourslash test for in scope completion
1 parent 587088b commit 01f2cce

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+
////function f() {
4+
//// namespace n {
5+
//// interface I {
6+
//// x: number
7+
//// }
8+
//// /*1*/
9+
//// }
10+
//// /*2*/
11+
////}
12+
/////*3*/
13+
14+
goTo.marker('1');
15+
verify.completionListContains("f", "function f(): void");
16+
verify.completionListContains("n", "namespace n");
17+
verify.completionListContains("I", "interface I");
18+
19+
goTo.marker('2');
20+
verify.completionListContains("f", "function f(): void");
21+
verify.completionListContains("n", "namespace n");
22+
23+
goTo.marker('3');
24+
verify.completionListContains("f", "function f(): void");

0 commit comments

Comments
 (0)