Skip to content

Commit

Permalink
Revert updates to registerMongoCommands deleteMongoDB function for 0.…
Browse files Browse the repository at this point in the history
…15.1 release (#1780)
  • Loading branch information
neelip authored Dec 5, 2020
1 parent efe6af8 commit 3434053
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mongo/registerMongoCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ export function registerMongoCommands(): MongoCodeLensProvider {
if (ext.connectedMongoDB && ext.connectedMongoDB.fullId === node.fullId) {
setConnectedNode(undefined, codeLensProvider);
ext.context.globalState.update(connectedMongoKey, undefined);
await languageClient.disconnect();
// Temporary workaround for https://github.com/microsoft/vscode-cosmosdb/issues/1754
// tslint:disable-next-line: no-floating-promises
languageClient.disconnect();
}
});
registerCommand('cosmosDB.deleteMongoCollection', async (context: IActionContext, node?: MongoCollectionTreeItem) => {
Expand Down

0 comments on commit 3434053

Please sign in to comment.