Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,10 @@
"command": "mdb.createNewPlaygroundFromViewAction",
"when": "false"
},
{
"command": "mdb.showActiveConnectionInPlayground",
"when": "false"
},
{
"command": "mdb.copyConnectionString",
"when": "false"
Expand Down
2 changes: 1 addition & 1 deletion src/editors/collectionDocumentsCodeLensProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class CollectionDocumentsCodeLensProvider implements vscode.CodeL
title: commandTitle,
tooltip: commandTooltip,
command: 'mdb.codeLens.showMoreDocumentsClicked',
arguments: [operationId, connectionId, namespace]
arguments: [{ operationId, connectionId, namespace }]
};

return codeLens;
Expand Down
4 changes: 2 additions & 2 deletions src/editors/documentProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export default class DocumentViewProvider implements vscode.TextDocumentContentP
// Ensure we're still connected to the correct connection.
if (connectionId !== this._connectionController.getActiveConnectionId()) {
vscode.window.showErrorMessage(
`Unable to list documents: no longer connected to ${connectionId}`
`Unable to fetch document: no longer connected to ${connectionId}`
);
return reject(
new Error(
`Unable to list documents: no longer connected to ${connectionId}`
`Unable to fetch document: no longer connected to ${connectionId}`
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/mdbExtensionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default class MDBExtensionController implements vscode.Disposable {
registerEditorCommands(): void {
this.registerCommand(
'mdb.codeLens.showMoreDocumentsClicked',
(operationId, connectionId, namespace) => {
({ operationId, connectionId, namespace }) => {
return this._editorsController.onViewMoreCollectionDocuments(
operationId,
connectionId,
Expand Down