Hacker News new | ask | show | jobs
by iamnbutler 1184 days ago
Disclaimer: I work at Zed!

This wasn't our intended behavior for this.

A team member just dug into our implementation of LSHandlerRank and it looks like we are using "Default". Apple's definition of the "Default" rank is this: "This app is an opener of files of this type; this value is also used if no rank is specified".

From our team member's investigation it looks like VSCode doesn't set any LSHandlerRank (which in theory from the definition above should be the same rank, but from your experience that doesn't seem correct.) Sublime uses uses "Alternate" as it's LSHandlerRank, which its definition is "this app is a secondary viewer of files of this type".

We will audit what other editors set and discuss if it makes sense to change the rank we are using.

Thanks for pointing this out.