Do not disconnect editor when canceling change connection (#2144)

This commit is contained in:
Matt Irvine
2018-08-03 15:22:11 -07:00
committed by GitHub
parent 017b4ecdb3
commit 2a650d4d74
2 changed files with 2 additions and 4 deletions

View File

@@ -1120,7 +1120,8 @@ export class ConnectionManagementService extends Disposable implements IConnecti
resolve(result);
});
} else {
resolve(self.disconnectEditor(owner));
// If the editor is connected then there is nothing to cancel
resolve(false);
}
});
}

View File

@@ -144,9 +144,6 @@ export class ConnectionDialogService implements IConnectionDialogService {
} else {
this._connectionManagementService.cancelConnection(this._model);
}
if (params && params.input && params.input.onConnectReject) {
params.input.onConnectReject();
}
this._connectionDialog.resetConnection();
this._connecting = false;
}