# Clean up completion tasks, even if they fail or return no results · gitcafe/zed

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

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

Visibility: public

Requested revision: d26d0ac56fda9afd4899524dcfb5cb72e6d8e734

Requested commit: d26d0ac56fda9afd4899524dcfb5cb72e6d8e734

Commit: d26d0ac56fda9afd4899524dcfb5cb72e6d8e734

Tree: b46da4955dea63301e7d87bac10fdd66b0b53f75

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Clean up completion tasks, even if they fail or return no results

This fixes a bug where leaving the completion task in `completion_tasks`
could cause the Copilot suggestion to not be shown due to the LSP not
successfully return a completion.

```

## Parents

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

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