Fixes #27: Shift end position in SymbolInformation ranges
parent
4d5052bebd
commit
f28690cea5
|
@ -69,7 +69,7 @@ class SymbolFinder extends NodeVisitorAbstract
|
||||||
$this->uri,
|
$this->uri,
|
||||||
new Range(
|
new Range(
|
||||||
new Position($node->getAttribute('startLine') - 1, $node->getAttribute('startColumn') - 1),
|
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;
|
$symbol->containerName = $this->containerName;
|
||||||
|
|
|
@ -36,7 +36,7 @@ class TextDocumentTest extends TestCase
|
||||||
],
|
],
|
||||||
'end' => [
|
'end' => [
|
||||||
'line' => 2,
|
'line' => 2,
|
||||||
'character' => 23
|
'character' => 24
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -54,7 +54,7 @@ class TextDocumentTest extends TestCase
|
||||||
],
|
],
|
||||||
'end' => [
|
'end' => [
|
||||||
'line' => 12,
|
'line' => 12,
|
||||||
'character' => 0
|
'character' => 1
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -72,7 +72,7 @@ class TextDocumentTest extends TestCase
|
||||||
],
|
],
|
||||||
'end' => [
|
'end' => [
|
||||||
'line' => 6,
|
'line' => 6,
|
||||||
'character' => 23
|
'character' => 24
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -90,7 +90,7 @@ class TextDocumentTest extends TestCase
|
||||||
],
|
],
|
||||||
'end' => [
|
'end' => [
|
||||||
'line' => 11,
|
'line' => 11,
|
||||||
'character' => 4
|
'character' => 5
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -108,7 +108,7 @@ class TextDocumentTest extends TestCase
|
||||||
],
|
],
|
||||||
'end' => [
|
'end' => [
|
||||||
'line' => 17,
|
'line' => 17,
|
||||||
'character' => 0
|
'character' => 1
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -126,7 +126,7 @@ class TextDocumentTest extends TestCase
|
||||||
],
|
],
|
||||||
'end' => [
|
'end' => [
|
||||||
'line' => 22,
|
'line' => 22,
|
||||||
'character' => 0
|
'character' => 1
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue