Is there a way to get VS Code with intellisense working with source.python libraries?
Usually this can be achieved by setting the "python.pythonPath" project variable to the python interpreter used for that project, but this is not the case for sp since there's no interpreter executable.
Coding with VS Code
Re: Coding with VS Code
Create a venv and set your python path to its binary. Drag all the source-python packages to your lib/site-packages folder in the venv. This is how I got intellisense and pylint to work.
Re: Coding with VS Code
But this should only add the Python packages. SP also has Python packages that are written in C++. You could fake those packages by looping through all of them and their functions/classes/etc. and create dummy Python packages.
Re: Coding with VS Code
Ayuto wrote:But this should only add the Python packages. SP also has Python packages that are written in C++. You could fake those packages by looping through all of them and their functions/classes/etc. and create dummy Python packages.
It'd be nice if sp had dummy declarations for those, with type info even.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: Bing [Bot] and 76 guests