I do not know if it might help but I developed a small connector from vscode to run live python scripts both in Rhino and Grasshopper, it’s called script-sync. It is only tested on windows but it should get you run quickly to execute python script components from vscode.
You just need to install the yak package and the vscode extension of script-sync(version 1.1.0), add a script-syncpython-component, press shift-F4 in vscode and it should work fine
This is amazing! this means you can edit your python code in VS Code, connect to version control like Github, use AI plugins like CoPilot, but then just “run” them in rhino/GH without worrying about your model exploding and losing all your progress!