Handle empty arrays in jumpToOrigin #1

Closed
JeanJPNM wants to merge 1 commit from fix-jump-to-origin-empty-arrays into main
JeanJPNM commented 2025-09-13 20:07:04 +02:00 (Migrated from github.com)

Fixes jumpToOrigin to graciously handle empty arrays returned from textDocument/definition and friends. Originially the function crashed with TypeError: can't access property "uri", loc is undefined.

Fixes `jumpToOrigin` to graciously handle empty arrays returned from `textDocument/definition` and friends. Originially the function crashed with `TypeError: can't access property "uri", loc is undefined`.
marijnh commented 2026-04-07 20:40:50 +02:00 (Migrated from github.com)

I was somehow not subscribed to this repository, and didn't see this PR. Sorry about the slowness. Merged as d640c15

I was somehow not subscribed to this repository, and didn't see this PR. Sorry about the slowness. Merged as d640c15

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/lsp-client!1
No description provided.