xi-editor / xi-mac

The xi-editor mac frontend.
Apache License 2.0
3.02k stars 147 forks source link

Fix CLI waiting for files involving symlinks #458

Closed didroe closed 5 years ago

didroe commented 5 years ago

Summary

When a file had a symlink in it's path, the path returned from resolvePath didn't match the path returned from the observer. This change introduces a common method for canonicalizing file paths in both places.

Fixes https://github.com/xi-editor/xi-editor/issues/1143

Questions

This is the first time I've done any Mac/Swift/Xi development. As such, I'm not sure my approach is ideal and I have the following questions about my changes:

Review Checklist

liamrosenfeld commented 5 years ago

LGTM! 👍