# project: Add tests for more cases in LSP completions \(\#27650\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7ac51e4c824e43ca973b54a3d4c0e3f70685b2d6

Requested commit: 7ac51e4c824e43ca973b54a3d4c0e3f70685b2d6

Commit: 7ac51e4c824e43ca973b54a3d4c0e3f70685b2d6

Tree: a6b92f4bc68f981cf93c527b4745d5f1112575f1

Author: Smit Barmase

Committer: GitHub

## Message

```
project: Add tests for more cases in LSP completions (#27650)

This PR adds two more cases to existing LSP completion cases.

- When text_edit exists:  (New test)
   1. we use text_edit, over insert_text and label

- When edit range exists (and text_edit is None):  (New test)
   1. insert_text is used over label if exists
   2. label is used otherwise

- When not edit range exists (and text_edit is None):  (Existing test)
   1. insert_text is used over label if exists
   2. label is used otherwise

Release Notes:

- N/A
```

## Parents

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

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