atom / status-bar

Status bar for Atom
MIT License
100 stars 72 forks source link

When copying the relative path, paths should be relativized before UR… #213

Closed hansonw closed 6 years ago

hansonw commented 6 years ago

For Nuclide's remote URLs, shift-click to relativize doesn't quite work correctly because the status bar calls atom.project.relativize after the URL has been stripped!

We used to be very lenient with our relativize functions, but now that we check that both URLs are remote this no longer works as intended.

The fix is simple: just call relativize before we do any fancy URL parsing.

Released under CC0.

hansonw commented 6 years ago

Note that this is consistent with @updatePathText, which directly relativizes the path without any processing.