# Fix file extension retrieval for single-file worktrees · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/55d3c09b6b51e9557c33cde9b3a964a8cb7f39e9)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 55d3c09b6b51e9557c33cde9b3a964a8cb7f39e9

Requested commit: 55d3c09b6b51e9557c33cde9b3a964a8cb7f39e9

Commit: 55d3c09b6b51e9557c33cde9b3a964a8cb7f39e9

Tree: f794750ff3fdd8a4a6309c777b451e2fa3c4ade7

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Fix file extension retrieval for single-file worktrees

Previously, we used the file's 'path' method, which only returns the relative
path from the worktree root.

```

## Parents

- [0078bea8772e16952df97d5f19c9b92534d425a3](https://git.cafe/gitcafe/zed/commit/0078bea8772e16952df97d5f19c9b92534d425a3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/55d3c09b6b51e9557c33cde9b3a964a8cb7f39e9?format=markdown)
