Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate server start / stop logic (#559)
## Summary Follow-up to #558 This PR separates the server start and stop logic. This is required because the extension could skip starting the server in the following cases: 1. No Python interpreter is selected 2. Python extension is unable to resolve the environment for the given Python interpreter 3. Python version is incompatible So, if the extension was already running and the settings were updated to hit any one of the above cases, the server would still be running (not ideal). ## Test Plan Here, the diagnostics should disappear because the server stopped first before checking for the interpreter. For (1), I'd need to uninstall all Python versions for me to reproduce this so I'm skipping this scenario assuming that (2) and (3) is sufficient. For (2), https://github.com/user-attachments/assets/124ab434-c082-4e67-a606-24040d8f04a8 For (3), https://github.com/user-attachments/assets/2300ee88-01be-45be-9c03-ae2ff4aeda78
- Loading branch information