-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[TSP][Pyrefly][Completion] Auto-import completions don't work #7951
Copy link
Copy link
Closed
Labels
ai-triage-respondedIndicate whether the AI triage agent has responded to this issue.Indicate whether the AI triage agent has responded to this issue.team needs to reproduceIssue has not been reproduced yetIssue has not been reproduced yettsp-pyreflyIssues related to using pyrefly as a TSP serverIssues related to using pyrefly as a TSP server
Description
Environment data
TSP settings:
"python.analysis.enableExternalTypeServer": true,
"python.analysis.typeServerArguments": [
"tsp"
],
"python.analysis.typeServerExecutable": "/Users/kylei/projects/test/.venv/bin/pyrefly"
- Pylance version: 2026.1.102
- OS: Mac
- Python version (& distribution if applicable, e.g. Anaconda): 3.13.8 using UV
- Pyrefly version:
(test) testkylei@kylei-mbp test % pyrefly --version
pyrefly 0.58.0
Code Snippet
TypeVa|->
See no completions
Expected behavior
Auto import completion for from <> import TypeVar
I can also reproduce this for adjacent file import completions:
foo.py # def test(): ...
foo2.py # tes| # no completions
Pyrefly extension

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ai-triage-respondedIndicate whether the AI triage agent has responded to this issue.Indicate whether the AI triage agent has responded to this issue.team needs to reproduceIssue has not been reproduced yetIssue has not been reproduced yettsp-pyreflyIssues related to using pyrefly as a TSP serverIssues related to using pyrefly as a TSP server