# python: Fix instability of Pyright/BasedPyright code completions \(\#37850\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2e7607c0e73778e53a506c57d60850f1641b95a0

Requested commit: 2e7607c0e73778e53a506c57d60850f1641b95a0

Commit: 2e7607c0e73778e53a506c57d60850f1641b95a0

Tree: 362ec665f7c9ddc0d5fbc9966da3c8b54ae08851

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
python: Fix instability of Pyright/BasedPyright code completions (#37850)

Pyright sets different `sortText` based on whether a given completion
item was recently resolved. This probably lines up with VSCode's way of
resolving items, but it's a no-no for us, as it makes completions
unstable.

Closes #9983

Release Notes:

- python: Fixed code completions having arbitrary order when using
Pyright/basedpyright
```

## Parents

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

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