# Remove worktree-specific methods from language::File trait · gitcafe/zed

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

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

Visibility: public

Requested revision: 7f8e76e0f1840abdfc30bebd5a37ed45e75ebd3c

Requested commit: 7f8e76e0f1840abdfc30bebd5a37ed45e75ebd3c

Commit: 7f8e76e0f1840abdfc30bebd5a37ed45e75ebd3c

Tree: e6acf7ae6e88bb584d516bdae0c4578b829598be

Author: Max Brunsfeld

Committer: Antonio Scandurra

## Message

```
Remove worktree-specific methods from language::File trait

Use downcasting instead for accessing worktree-specific state of the Files.

This will allow us to introduce a WorktreeId type and use that everywhere
for identifying worktrees. It also just removes some unnecessary coupling
between the language crate and the worktree.

```

## Parents

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

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