lib/ruby_lsp/requests/base_request.rb in ruby-lsp-0.4.2 vs lib/ruby_lsp/requests/base_request.rb in ruby-lsp-0.4.3

- old
+ new

@@ -34,19 +34,19 @@ sig { params(nodes: T::Array[SyntaxTree::Node]).void } def visit_all(nodes) nodes.each { |node| visit(node) } end - sig { params(node: SyntaxTree::Node).returns(LanguageServer::Protocol::Interface::Range) } + sig { params(node: SyntaxTree::Node).returns(Interface::Range) } def range_from_syntax_tree_node(node) loc = node.location - LanguageServer::Protocol::Interface::Range.new( - start: LanguageServer::Protocol::Interface::Position.new( + Interface::Range.new( + start: Interface::Position.new( line: loc.start_line - 1, character: loc.start_column, ), - end: LanguageServer::Protocol::Interface::Position.new(line: loc.end_line - 1, character: loc.end_column), + end: Interface::Position.new(line: loc.end_line - 1, character: loc.end_column), ) end sig do params(node: T.any(SyntaxTree::ConstPathRef, SyntaxTree::ConstRef, SyntaxTree::TopConstRef)).returns(String)