Skip to content

Add support for the TSP typeServer/getPythonSearchPaths message #2649

Open
rchiodo wants to merge 7 commits intofacebook:mainfrom
rchiodo:rchiodo/addGetPythonPathsTsp
Open

Add support for the TSP typeServer/getPythonSearchPaths message #2649
rchiodo wants to merge 7 commits intofacebook:mainfrom
rchiodo:rchiodo/addGetPythonPathsTsp

Conversation

@rchiodo
Copy link
Contributor

@rchiodo rchiodo commented Mar 4, 2026

Summary

Adds support for the next TSP message = typeServer/getPythonSearchPaths. This message is used to convey basically PYTHONPATH to the other side. In our case, Pylance uses this to find implementations for stubs.

Test Plan

Added a number of unit tests and ran tests.py. Also refactored some of the existing TSP test code to use common functions.

/cc @kinto0

@meta-cla meta-cla bot added the cla signed label Mar 4, 2026
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@kinto0
Copy link
Contributor

kinto0 commented Mar 4, 2026

test failures seem unrelated. importing + rerunning CI

@meta-codesync
Copy link

meta-codesync bot commented Mar 4, 2026

@kinto0 has imported this pull request. If you are a Meta employee, you can view this in D95255530.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants