File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ //@noEmit : true
4
+
5
+ //@Filename : /package.json
6
+ ////{
7
+ //// "dependencies": {
8
+ //// "b_": "*",
9
+ //// "_c": "*"
10
+ //// }
11
+ //// }
12
+
13
+ //@Filename : /node_modules/a/index.d.ts
14
+ ////export const foo = 0;
15
+
16
+ //@Filename : /node_modules/a/package.json
17
+ ////{
18
+ //// "name": "a",
19
+ //// "types": "./index.d.ts"
20
+ //// }
21
+
22
+ //@Filename : /node_modules/b_/index.d.ts
23
+ ////export { foo } from "a";
24
+
25
+ //@Filename : /node_modules/b_/package.json
26
+ ////{
27
+ //// "name": "b_",
28
+ //// "types": "./index.d.ts"
29
+ //// }
30
+
31
+ //@Filename : /node_modules/_c/index.d.ts
32
+ ////export { foo } from "b_";
33
+
34
+ //@Filename : /node_modules/_c/package.json
35
+ ////{
36
+ //// "name": "_c",
37
+ //// "types": "./index.d.ts"
38
+ //// }
39
+
40
+ //@Filename : /src/index.ts
41
+ ////fo/**/
42
+
43
+ verify . completions ( {
44
+ marker : test . marker ( "" ) ,
45
+ includes : [
46
+ completion . undefinedVarEntry ,
47
+ {
48
+ name : "foo" ,
49
+ source : "/node_modules/b_/index" ,
50
+ hasAction : true ,
51
+ sortText : completion . SortText . AutoImportSuggestions
52
+ } ,
53
+ ...completion . statementKeywordsWithTypes
54
+ ] ,
55
+ preferences : {
56
+ includeCompletionsForModuleExports : true
57
+ }
58
+ } ) ;
You can’t perform that action at this time.
0 commit comments