File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -144,22 +144,13 @@ export class CompletionProvider {
144144 replaceRange ,
145145 ) ;
146146 } else if (
147- nodeAtPosition . parent ?. parent ?. type === "exposing_list" &&
148- nodeAtPosition . parent ?. parent ?. parent ?. type === "import_clause" &&
149- nodeAtPosition . parent ?. parent . firstNamedChild ?. type === "exposing"
150- ) {
151- return this . getExposedFromModule (
152- forest ,
153- nodeAtPosition . parent . parent ,
154- replaceRange ,
155- ) ;
156- } else if (
157- ( nodeAtPosition . type === "comma" ||
147+ ( nodeAtPosition . parent ?. parent ?. type === "exposing_list" &&
148+ nodeAtPosition . parent ?. parent ?. parent ?. type === "import_clause" &&
149+ nodeAtPosition . parent ?. parent . firstNamedChild ?. type === "exposing" ) ||
150+ ( ( nodeAtPosition . type === "comma" ||
158151 nodeAtPosition . type === "right_parenthesis" ) &&
159- nodeAtPosition . parent &&
160- nodeAtPosition . parent . type === "ERROR" &&
161- nodeAtPosition . parent . parent &&
162- nodeAtPosition . parent . parent . type === "exposing_list"
152+ nodeAtPosition . parent ?. type === "ERROR" &&
153+ nodeAtPosition . parent ?. parent ?. type === "exposing_list" )
163154 ) {
164155 return this . getExposedFromModule (
165156 forest ,
You can’t perform that action at this time.
0 commit comments