File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -602,6 +602,15 @@ let processCompletable ~findItems ~package ~rawOpens
602
602
" variadic" ;
603
603
]
604
604
|> List. filter (fun decorator -> Utils. startsWith decorator prefix)
605
+ |> List. map (fun decorator ->
606
+ let parts = String. split_on_char '.' prefix in
607
+ let len = String. length prefix in
608
+ let dec2 =
609
+ if List. length parts > 1 then
610
+ String. sub decorator len (String. length decorator - len)
611
+ else decorator
612
+ in
613
+ dec2)
605
614
|> List. map mkDecorator
606
615
| Clabel (funPath , prefix ) ->
607
616
let labels =
Original file line number Diff line number Diff line change @@ -53,5 +53,8 @@ let zzz = 11
53
53
54
54
//^com let comp = <O.Comp z
55
55
56
+ //^doc
56
57
57
- //^doc
58
+ //^com @reac
59
+
60
+ //^com @react.
Original file line number Diff line number Diff line change @@ -538,3 +538,21 @@ DocumentSymbol tests/src/Complete.res
538
538
}
539
539
]
540
540
541
+ Complete tests/src/Complete.res 56:2
542
+ [{
543
+ "label": "react.component",
544
+ "kind": 4,
545
+ "tags": [],
546
+ "detail": "",
547
+ "documentation": null
548
+ }]
549
+
550
+ Complete tests/src/Complete.res 58:2
551
+ [{
552
+ "label": "component",
553
+ "kind": 4,
554
+ "tags": [],
555
+ "detail": "",
556
+ "documentation": null
557
+ }]
558
+
You can’t perform that action at this time.
0 commit comments