@@ -2,17 +2,23 @@ module TypeProf
22 class CodePosition
33 def self.from_lsp : (untyped ) -> instance
44 end
5+ class CodeRange
6+ def self.from_node : (untyped ) -> instance
7+ end
58
69 module Core
710 class Service
811 def initialize : (Hash[untyped , untyped ]) -> void
9- def update_file : (String, String?) -> void
12+ def update_file : (String, String?) -> bool
13+ def update_rb_file : (String, String?) -> bool
14+ def update_rbs_file : (String, String?) -> bool
1015 def definitions : (String, CodePosition) -> Array[untyped ]
1116 def type_definitions : (String, CodePosition) -> Array[untyped ]
12- def references : (String, CodePosition) -> Array[untyped ]
17+ def references : (String, CodePosition) -> Array[[String?, CodeRange]]?
1318 def hover : (String, CodePosition) -> Array[untyped ]
14- def code_lens : (String) { (untyped ) -> untyped } -> Array[untyped ]
19+ def code_lens : (String) { (CodeRange, String ) -> untyped } -> Array[untyped ]
1520 def completion : (String, untyped , CodePosition) { (untyped ) -> untyped } -> Array[untyped ]
21+ def dump_declarations : (String) -> String
1622 def rename : (String, CodePosition) -> void
1723 end
1824 end
0 commit comments