Skip to content

Commit

Permalink
Fixes felixfbecker#27: Shift end position in SymbolInformation ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloyan-raev committed Sep 13, 2016
1 parent 4d5052b commit f28690c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/SymbolFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function enterNode(Node $node)
$this->uri,
new Range(
new Position($node->getAttribute('startLine') - 1, $node->getAttribute('startColumn') - 1),
new Position($node->getAttribute('endLine') - 1, $node->getAttribute('endColumn') - 1)
new Position($node->getAttribute('endLine') - 1, $node->getAttribute('endColumn'))
)
);
$symbol->containerName = $this->containerName;
Expand Down
12 changes: 6 additions & 6 deletions tests/Server/TextDocumentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testDocumentSymbol()
],
'end' => [
'line' => 2,
'character' => 23
'character' => 24
]
]
],
Expand All @@ -54,7 +54,7 @@ public function testDocumentSymbol()
],
'end' => [
'line' => 12,
'character' => 0
'character' => 1
]
]
],
Expand All @@ -72,7 +72,7 @@ public function testDocumentSymbol()
],
'end' => [
'line' => 6,
'character' => 23
'character' => 24
]
]
],
Expand All @@ -90,7 +90,7 @@ public function testDocumentSymbol()
],
'end' => [
'line' => 11,
'character' => 4
'character' => 5
]
]
],
Expand All @@ -108,7 +108,7 @@ public function testDocumentSymbol()
],
'end' => [
'line' => 17,
'character' => 0
'character' => 1
]
]
],
Expand All @@ -126,7 +126,7 @@ public function testDocumentSymbol()
],
'end' => [
'line' => 22,
'character' => 0
'character' => 1
]
]
],
Expand Down

0 comments on commit f28690c

Please sign in to comment.