# workspace: Fix not able to close tab when buffer save fails \(\#35589\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2c8f144e6b26d029e64821dfcabc3a6c060329a1

Requested commit: 2c8f144e6b26d029e64821dfcabc3a6c060329a1

Commit: 2c8f144e6b26d029e64821dfcabc3a6c060329a1

Tree: 0ad869140a74e1a9f5927a456f7d8850863fa00a

Author: Smit Barmase

Committer: GitHub

## Message

```
workspace: Fix not able to close tab when buffer save fails (#35589)

Closes #26216, Closes #35517

Now we prompt user if buffer save failed, asking them to close without
saving or cancel the action.

Release Notes:

- Fixed issue where closing read-only or deleted buffer would not close
that tab.

Co-authored-by: Lukas Wirth <lukas@zed.dev>
```

## Parents

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

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