daveleroy / SublimeDebugger

Graphical Debugger for Sublime Text for debuggers that support the debug adapter protocol
MIT License
369 stars 42 forks source link

Python: auto-detect virtual environment (venv) #179

Closed LDAP closed 1 year ago

LDAP commented 1 year ago

This PR adds autodetection for virtual environments when using the python adapter.

Similar to https://github.com/sublimelsp/LSP-pyright/pull/183

If cwd is provided, then the venv (or a config file that defines a venv) is searched in cwd and its parents, else the venv is searched in all parents of program.

daveleroy commented 1 year ago

I'll try to make a package control update with all this stuff this weekend