Skip to content

Commit

Permalink
fix: don't attempt to connect twice
Browse files Browse the repository at this point in the history
  • Loading branch information
disposedtrolley committed Nov 3, 2020
1 parent 53e8edd commit f193678
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/interpreters/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export class PythonInterpreterProvider implements InterpreterProvider {
*/
connect(): Promise<any> {
return new Promise((resolve, _) => {
if (this.connection) { resolve(); };

// @TODO this should use the full path of the Python 3 executable
// currently selected in VSCode.
this.remoteProcess = spawn('python3', [this.serverPath]);
Expand Down

0 comments on commit f193678

Please sign in to comment.