Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Aug 14, 2023
1 parent 6f03ac5 commit 697098f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/ruby_lsp/requests/support/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def range_from_syntax_tree_node(node)
loc = node.location

Interface::Range.new(
# TODO: why offset?
start: Interface::Position.new(
line: loc.start_line - 1,
character: loc.start_column + 1,
Expand Down
2 changes: 1 addition & 1 deletion test/requests/path_completion_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def test_completion_command
path_completion("foo/support/quux", prefix, start_position, end_position),
]


assert_equal(expected.to_json, result.to_json)
end

Expand Down Expand Up @@ -95,6 +94,7 @@ def test_completion_command_call
Kernel.require "#{prefix}"
RUBY

# debugger
start_position = {
line: 0,
character: T.must(document.source.index('"')) + 1,
Expand Down

0 comments on commit 697098f

Please sign in to comment.