Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 519524 - [lsp] textDocument/definition responses are assumed to b…
…e Location arrays

A textDocument/definition request may be answered back by the server
with a Location or a Location[]. We should not assume that a
Location[] is being returned.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
  • Loading branch information
rcjsuen committed Jul 11, 2017
1 parent edeb7c6 commit 7b5e2ca
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -49,8 +49,6 @@ define ([
var currentLoc = loc;
if (Array.isArray(currentLoc) && currentLoc.length !== 0) {
currentLoc = currentLoc[0];
} else {
return;
}
if (typeof currentLoc.range.start === 'undefined') {
return;
Expand Down

0 comments on commit 7b5e2ca

Please sign in to comment.