3
3
// @Filename : file.ts
4
4
////export var x = 10;
5
5
////export var y = 10;
6
+ ////export { x as await, x as interface, x as unique };
6
7
////export default class C {
7
8
//// }
8
9
9
10
10
11
// @Filename : a.ts
11
12
////import { /*1*/ } from "./file";
12
13
////import { x, /*2*/ } from "./file";
14
+ ////import { x, y, /*3*/ } from "./file";
15
+ ////import { x, y, await as await_, /*4*/ } from "./file";
16
+ ////import { x, y, await as await_, interface as interface_, /*5*/ } from "./file";
17
+ ////import { x, y, await as await_, interface as interface_, unique, /*6*/ } from "./file";
13
18
14
19
goTo . file ( "a.ts" ) ;
15
20
verify . completions (
16
21
{
17
22
marker : "1" ,
18
23
exact : [
24
+ { name : "await" , insertText : "await as await_" } ,
25
+ { name : "interface" , insertText : "interface as interface_" } ,
26
+ { name : "unique" } ,
19
27
{ name : "x" , text : "var x: number" } ,
20
28
{ name : "y" , text : "var y: number" } ,
21
29
{ name : "type" , sortText : completion . SortText . GlobalsOrKeywords } ,
@@ -24,8 +32,39 @@ verify.completions(
24
32
{
25
33
marker : "2" ,
26
34
exact : [
35
+ { name : "await" , insertText : "await as await_" } ,
36
+ { name : "interface" , insertText : "interface as interface_" } ,
37
+ { name : "unique" } ,
27
38
{ name : "y" , text : "var y: number" } ,
28
39
{ name : "type" , sortText : completion . SortText . GlobalsOrKeywords } ,
29
40
]
30
41
} ,
42
+ {
43
+ marker : "3" ,
44
+ exact : [
45
+ { name : "await" , insertText : "await as await_" } ,
46
+ { name : "interface" , insertText : "interface as interface_" } ,
47
+ { name : "unique" } ,
48
+ { name : "type" , sortText : completion . SortText . GlobalsOrKeywords } ,
49
+ ]
50
+ } ,
51
+ {
52
+ marker : "4" ,
53
+ exact : [
54
+ { name : "interface" , insertText : "interface as interface_" } ,
55
+ { name : "unique" } ,
56
+ { name : "type" , sortText : completion . SortText . GlobalsOrKeywords } ,
57
+ ]
58
+ } ,
59
+ {
60
+ marker : "5" ,
61
+ exact : [
62
+ { name : "unique" } ,
63
+ { name : "type" , sortText : completion . SortText . GlobalsOrKeywords } ,
64
+ ]
65
+ } ,
66
+ {
67
+ marker : "6" ,
68
+ exact : [ ]
69
+ } ,
31
70
) ;
0 commit comments