Replies: 5 comments 4 replies
-
No code actions seem to be supported by pyright in zed, makes it kind of unusable for python :( |
Beta Was this translation helpful? Give feedback.
-
When you type For |
Beta Was this translation helpful? Give feedback.
-
I encountered the same issue. @Cernunnos's method works, but it would be ideal if it could generate imports like Visual Studio Code does. |
Beta Was this translation helpful? Give feedback.
-
What I found is that auto import only works if the symbol was typed. In case a completion is accepted from the assistant, the import is not handled. You have to go through all of the missing symbols and delete them and type them by hand, which is tedious and quite frustrating. Today I set up zed as my main editor (switched from vs code), but this feature is really missing. |
Beta Was this translation helpful? Give feedback.
-
still no auto import? |
Beta Was this translation helpful? Give feedback.
-
Loving Zed and of course its speed. I'm trying to get everything set up as effectively as possible. I would love to be able to add missing imports in Python code from the line where the import is first used.
I see from #13115 that it's possible to add a missing import when working TypeScript. Does such a facility exist for Python?
I am using Pyright which magically set itself up for me when I started editing python files in Zed (nice!) Might I expect it to appear under Code Actions? (It does not.) Or in the left gutter with a lightning symbol like in the TypeScript example above? (What is the difference between these two things?)
Is this the responsibility of the LSP, or of Zed?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions