Skip to content

Commit

Permalink
feat(tree-explorer): add clone document context menu item to document…
Browse files Browse the repository at this point in the history
… item in tree explorer VSCODE-350 (#458)
  • Loading branch information
Anemy authored Dec 8, 2022
1 parent 18504a2 commit ea6c408
Show file tree
Hide file tree
Showing 10 changed files with 534 additions and 259 deletions.
164 changes: 138 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,10 @@
"command": "mdb.copyDocumentContentsFromTreeView",
"title": "Copy Document"
},
{
"command": "mdb.cloneDocumentFromTreeView",
"title": "Clone Document..."
},
{
"command": "mdb.deleteDocumentFromTreeView",
"title": "Delete Document..."
Expand Down Expand Up @@ -613,6 +617,11 @@
"when": "view == mongoDBConnectionExplorer && viewItem == documentTreeItem",
"group": "2@1"
},
{
"command": "mdb.cloneDocumentFromTreeView",
"when": "view == mongoDBConnectionExplorer && viewItem == documentTreeItem",
"group": "2@2"
},
{
"command": "mdb.deleteDocumentFromTreeView",
"when": "view == mongoDBConnectionExplorer && viewItem == documentTreeItem",
Expand Down Expand Up @@ -791,6 +800,10 @@
"command": "mdb.copyDocumentContentsFromTreeView",
"when": "false"
},
{
"command": "mdb.cloneDocumentFromTreeView",
"when": "false"
},
{
"command": "mdb.deleteDocumentFromTreeView",
"when": "false"
Expand Down Expand Up @@ -988,6 +1001,7 @@
"mongodb-connection-string-url": "^2.5.3",
"mongodb-data-service": "^22.1.1",
"mongodb-ns": "^2.4.0",
"mongodb-query-parser": "^2.4.6",
"mongodb-schema": "^9.0.0",
"numeral": "^2.0.6",
"react": "^16.14.0",
Expand Down
1 change: 1 addition & 0 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ enum EXTENSION_COMMANDS {
MDB_INSERT_OBJECTID_TO_EDITOR = 'mdb.insertObjectIdToEditor',
MDB_GENERATE_OBJECTID_TO_CLIPBOARD = 'mdb.generateObjectIdToClipboard',
MDB_COPY_DOCUMENT_CONTENTS_FROM_TREE_VIEW = 'mdb.copyDocumentContentsFromTreeView',
MDB_CLONE_DOCUMENT_FROM_TREE_VIEW = 'mdb.cloneDocumentFromTreeView',
MDB_DELETE_DOCUMENT_FROM_TREE_VIEW = 'mdb.deleteDocumentFromTreeView',
}

Expand Down
Loading

0 comments on commit ea6c408

Please sign in to comment.