Skip to content

Commit 829e6aa

Browse files
committed
Add example of missing autocompletion requiring type instantiation.
See #349
1 parent 600b244 commit 829e6aa

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

analysis/tests/src/Hover.res

+5
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,9 @@ module TypeSubstitutionRecords = {
165165
// ^hov
166166
let x2: foobar = {content: {age: 42}, zzz: ""}
167167
// ^hov
168+
169+
// ^db+
170+
171+
// x1.content.
172+
// ^com
168173
}

analysis/tests/src/expected/Hover.res.txt

+16
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,19 @@ Hover src/Hover.res 163:23
110110
Hover src/Hover.res 165:22
111111
{"contents": "```rescript\nfoobar\n```\n\n```rescript\ntype foobar = foo<bar>\n```"}
112112

113+
114+
Complete src/Hover.res 170:16
115+
posCursor:[170:16] posNoWhite:[170:15] Found expr:[170:5->170:16]
116+
Pexp_field [170:5->170:15] _:[172:0->170:16]
117+
Completable: Cpath Value[x1].content.""
118+
Ident!! Dep
119+
Ident!! JsLogger
120+
Ident!! A
121+
Ident!! B
122+
Ident!! Comp
123+
Raw ppens: 0
124+
Package opens
125+
Resolved opens 0
126+
findLocalCompletionsWithOpens uri:Hover.res pos:170:16
127+
[]
128+

0 commit comments

Comments
 (0)