Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Handle empty arrays in jumpToOrigin#1

Closed
JeanJPNM wants to merge 1 commit intocodemirror:mainfrom
JeanJPNM:fix-jump-to-origin-empty-arrays
Closed

Handle empty arrays in jumpToOrigin#1
JeanJPNM wants to merge 1 commit intocodemirror:mainfrom
JeanJPNM:fix-jump-to-origin-empty-arrays

Conversation

@JeanJPNM
Copy link
Copy Markdown
Contributor

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
Copy link
Copy Markdown
Member

marijnh commented Apr 7, 2026

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

@marijnh marijnh closed this Apr 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants