lib/spoom/sorbet/lsp.rb in spoom-1.1.12 vs lib/spoom/sorbet/lsp.rb in spoom-1.1.13
- old
+ new
@@ -96,11 +96,11 @@
},
"position" => {
"line" => line,
"character" => column,
},
- }
+ },
))
return nil unless json && json["result"]
Hover.from_json(json["result"])
@@ -117,11 +117,11 @@
},
"position" => {
"line" => line,
"character" => column,
},
- }
+ },
))
return [] unless json && json["result"] && json["result"]["signatures"]
json["result"]["signatures"].map { |loc| SignatureHelp.from_json(loc) }
@@ -138,11 +138,11 @@
},
"position" => {
"line" => line,
"character" => column,
},
- }
+ },
))
return [] unless json && json["result"]
json["result"].map { |loc| Location.from_json(loc) }
@@ -159,11 +159,11 @@
},
"position" => {
"line" => line,
"character" => column,
},
- }
+ },
))
return [] unless json && json["result"]
json["result"].map { |loc| Location.from_json(loc) }
@@ -183,11 +183,11 @@
"character" => column,
},
"context" => {
"includeDeclaration" => include_decl,
},
- }
+ },
))
return [] unless json && json["result"]
json["result"].map { |loc| Location.from_json(loc) }
@@ -198,11 +198,11 @@
json = send(Request.new(
next_id,
"workspace/symbol",
{
"query" => query,
- }
+ },
))
return [] unless json && json["result"]
json["result"].map { |loc| DocumentSymbol.from_json(loc) }
@@ -215,10 +215,10 @@
"textDocument/documentSymbol",
{
"textDocument" => {
"uri" => uri,
},
- }
+ },
))
return [] unless json && json["result"]
json["result"].map { |loc| DocumentSymbol.from_json(loc) }