Skip to content

Commit

Permalink
test: moreee debug
Browse files Browse the repository at this point in the history
  • Loading branch information
alenakhineika committed May 24, 2024
1 parent 5968cef commit 68c60b0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/connectionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,19 @@ export default class ConnectionController {

this._statusView.showMessage('Disconnecting from current connection...');

console.log('----------------------');
console.log('Disconnecting from current connection...');
console.log('----------------------');

try {
// Disconnect from the active connection.

console.log(
'this._activeDataService.isConnected()----------------------'
);
console.log(this._activeDataService.isConnected());
console.log('----------------------');

await this._activeDataService.disconnect();
void vscode.window.showInformationMessage('MongoDB disconnected.');
this._activeDataService = null;
Expand All @@ -622,6 +633,10 @@ export default class ConnectionController {
);
}

console.log('----------------------');
console.log('after try catch');
console.log('----------------------');

this._disconnecting = false;
this._statusView.hideMessage();

Expand Down

0 comments on commit 68c60b0

Please sign in to comment.