You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LSP (Zed): Auto-import completions incomplete for symbols with common prefix #1398
Completion filtering doesn't update when typing continues - shows only initially fetched results.
Description
When multiple classes start with the same prefix, Pyrefly's auto-import completions only show the results that were fetched first and don't continue fetching as more characters are typed.
@baab7 thanks for reporting this. I tested in Pylance and I see that the autocomplete import is not available, but it does give the option to import it via quickfix. That seems reasonable. I'll see if I can get to it this week.
@baab7 I tested this again and I do see the auto import available, but it's not as obvious because we don't show the yellow underline. Right now we only show the red underline, and that's if you have type checking enabled (either a setting in your config or a pyrefly.toml file/[tool.pyrefly] in pyproject.toml).
@lolpack, just to clarify - do you see the auto-import completions while actively typing, or only when manually checking completions (because that's what it looks like from your screenshots)?
Because in my testing (videos attached), it works as expected in VSCode exactly while typing, but doesn't work in Zed.
Perhaps a good next step is to get the LSP trace logs for the repro in both zed & VsCode, and compare them to see if there's a request that the zed client is omitting that we need to update the completion results. @kinto0 are you able to provide instructions for how to do this?
Perhaps a good next step is to get the LSP trace logs for the repro in both zed & VsCode, and compare them to see if there's a request that the zed client is omitting that we need to update the completion results. @kinto0 are you able to provide instructions for how to do this?
I've never used zed so I'm not sure about how it works there. but in vscode, LSP trace is shown in the output panel under the pyrefly dropdown when Pyrefly > trace > server is set to verbose
sorry about the delay - big backlog and we've taken some time off for the holidays. I hope we can get to it soon. removing assignees in case someone else can pick it up
This issue has someone assigned, but has not had recent activity for more than 2 weeks.
If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.
Activity
kinto0 commentedon Oct 27, 2025
@lolpack recently made a change to this. do you know which version of zed your changes were in?
mahuw commentedon Oct 27, 2025
@kinto0, it was v0.208.4
lolpack commentedon Oct 28, 2025
@baab7 thanks for reporting this. I tested in Pylance and I see that the autocomplete import is not available, but it does give the option to import it via quickfix. That seems reasonable. I'll see if I can get to it this week.
lolpack commentedon Oct 28, 2025
@baab7 I tested this again and I do see the auto import available, but it's not as obvious because we don't show the yellow underline. Right now we only show the red underline, and that's if you have type checking enabled (either a setting in your config or a pyrefly.toml file/[tool.pyrefly] in pyproject.toml).
mahuw commentedon Oct 28, 2025
@lolpack, just to clarify - do you see the auto-import completions while actively typing, or only when manually checking completions (because that's what it looks like from your screenshots)?
Because in my testing (videos attached), it works as expected in VSCode exactly while typing, but doesn't work in Zed.
I confirm it does work, but not while typing
yangdanny97 commentedon Nov 4, 2025
Perhaps a good next step is to get the LSP trace logs for the repro in both zed & VsCode, and compare them to see if there's a request that the zed client is omitting that we need to update the completion results. @kinto0 are you able to provide instructions for how to do this?
kinto0 commentedon Nov 6, 2025
I've never used zed so I'm not sure about how it works there. but in vscode, LSP trace is shown in the output panel under the pyrefly dropdown when
Pyrefly > trace > serveris set toverbosemahuw commentedon Nov 6, 2025
@kinto0, @yangdanny97,
Zed log is already attached in the first message. But not VSCode
7 remaining items
kinto0 commentedon Dec 4, 2025
sorry about the delay - big backlog and we've taken some time off for the holidays. I hope we can get to it soon. removing assignees in case someone else can pick it up
AryanBagade commentedon Dec 13, 2025
will look into this issue!
github-actions commentedon Dec 30, 2025
This issue has someone assigned, but has not had recent activity for more than 2 weeks.
If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.
Thank you for your contributions!
AryanBagade commentedon Dec 30, 2025
will create a pr for this by tomorrow!
fix: Mark completions as incomplete when local completions block auto…