1
0
Fork 0

Fixes #27: Shift end position in SymbolInformation ranges

pull/28/head
Kaloyan Raev 2016-09-14 00:26:48 +03:00
parent 4d5052bebd
commit f28690cea5
2 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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
] ]
] ]
], ],