38ec45008c
project: Workaround invalid code action edits from pyright ( #28354 )
...
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
Co-authored-by: Piotr Osiewicz <piotr@zed.dev >
fixes issue where:
In a two line python file like so
```
Path()
```
If the user asks for code actions on `Path` and they select (`From
pathlib import path`)
the result they get is
```
Pathfrom pathlib import Path
Path()
```
Instead of
```
from pathlib import Path
Path()
```
This is due to a non-lsp-spec-compliant response from pyright below
```json
{"jsonrpc":"2.0","id":40,"result":[{"title":"from pathlib import Path","edit":{"changes":{"file:///Users/neb/Zed/example-project/pyright-project/main.py":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":4}},"newText":"Path"},{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"newText":"from pathlib import Path\n\n\n"}]}},"kind":"quickfix"}]}
```
Release Notes:
- Fixed an issue when using auto-import code actions provided by pyright
(or basedpyright) where the import would be jumbled with the scoped
import resulting in an invalid result
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
Co-authored-by: Anthony Eid <hello@anthonyeid.me >
2025-04-08 20:13:44 +00:00
..
2025-04-07 18:10:01 +00:00
2025-04-08 14:31:32 -03:00
2025-04-07 13:28:06 -05:00
2025-04-04 17:09:00 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-05 17:10:39 +00:00
2025-04-07 10:35:11 -06:00
2025-04-04 11:40:55 -03:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-04 11:20:18 +00:00
2025-04-08 16:11:05 -04:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-05 11:16:26 -04:00
2025-04-07 20:26:55 +00:00
2025-04-02 13:26:34 -07:00
2025-04-08 16:01:27 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-08 09:17:08 -06:00
2025-04-02 13:26:34 -07:00
2025-04-08 08:36:44 -07:00
2025-04-07 10:35:11 -06:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-05 16:06:14 -04:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-07 22:02:13 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-08 21:15:05 +02:00
2025-04-02 13:26:34 -07:00
2025-04-04 17:37:42 -06:00
2025-04-02 13:26:34 -07:00
2025-04-08 16:55:18 +02:00
2025-04-02 13:26:34 -07:00
2025-04-05 13:20:36 -04:00
2025-03-31 20:55:27 +02:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-05 05:01:56 +05:30
2025-04-02 13:26:34 -07:00
2025-04-07 18:46:09 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-08 11:28:34 -04:00
2025-04-02 13:26:34 -07:00
2025-04-07 19:03:24 +00:00
2025-04-02 13:26:34 -07:00
2025-04-08 15:00:23 +00:00
2025-04-08 18:08:22 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-07 18:09:38 -03:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-05 05:14:15 +05:30
2025-04-02 13:26:34 -07:00
2025-04-08 15:00:23 +00:00
2025-04-05 16:32:16 +00:00
2025-04-08 14:46:15 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-08 20:01:09 +02:00
2025-04-02 13:26:34 -07:00
2025-04-08 16:01:27 +00:00
2025-04-02 13:26:34 -07:00
2025-04-07 10:35:11 -06:00
2025-04-08 16:35:33 +00:00
2025-04-02 13:26:34 -07:00
2025-04-07 18:46:09 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-04 17:37:42 -06:00
2025-04-07 15:47:04 -04:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-03 22:07:37 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-08 20:13:44 +00:00
2025-04-08 18:00:01 +05:30
2025-04-02 13:26:34 -07:00
2025-04-04 11:40:55 -03:00
2025-04-07 12:11:14 -04:00
2025-04-04 16:15:49 -07:00
2025-04-07 19:03:24 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-07 18:10:01 +00:00
2025-04-08 09:17:08 -06:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-03 23:32:50 +02:00
2025-04-08 09:17:08 -06:00
2025-04-02 13:26:34 -07:00
2025-04-02 22:57:40 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-04 14:20:09 +00:00
2025-04-04 14:20:09 +00:00
2025-04-02 13:26:34 -07:00
2025-04-04 19:28:32 -04:00
2025-04-08 12:16:18 +05:30
2025-04-07 23:22:09 +02:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-06 11:25:29 -06:00
2025-04-02 13:26:34 -07:00
2025-04-08 14:31:32 -03:00
2025-04-03 16:00:43 -03:00
2025-04-02 13:26:34 -07:00
2025-04-07 19:03:24 +00:00
2025-04-08 16:55:35 +00:00
2025-04-02 13:26:34 -07:00
2025-04-08 09:15:34 -06:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-07 23:22:09 +02:00
2025-04-08 01:25:43 +00:00
2025-04-07 20:43:00 +00:00
2025-04-05 17:10:39 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00