|
108 | 108 | },
|
109 | 109 | {
|
110 | 110 | "view": "mongoDBPlaygroundsExplorer",
|
111 |
| - "contents": "No '.mongodb' playground files found in the workspace.\n[Create New Playground](command:mdb.createNewPlaygroundFromPlaygroundExplorer)" |
| 111 | + "contents": "No MongoDB playground files found in the workspace.\n[Create New Playground](command:mdb.createNewPlaygroundFromTreeView)" |
112 | 112 | }
|
113 | 113 | ],
|
114 | 114 | "languages": [
|
|
175 | 175 | "command": "mdb.createPlayground",
|
176 | 176 | "title": "MongoDB: Create MongoDB Playground"
|
177 | 177 | },
|
178 |
| - { |
179 |
| - "command": "mdb.refreshPlaygrounds", |
180 |
| - "title": "MongoDB: Refresh Playgrounds List" |
181 |
| - }, |
182 | 178 | {
|
183 | 179 | "command": "mdb.refreshPlaygroundsFromTreeView",
|
184 | 180 | "title": "Refresh",
|
|
187 | 183 | "dark": "images/dark/refresh.svg"
|
188 | 184 | }
|
189 | 185 | },
|
190 |
| - { |
191 |
| - "command": "mdb.createNewPlaygroundFromViewAction", |
192 |
| - "title": "Create MongoDB Playground" |
193 |
| - }, |
194 | 186 | {
|
195 | 187 | "command": "mdb.createNewPlaygroundFromOverviewPage",
|
196 | 188 | "title": "Create MongoDB Playground"
|
197 | 189 | },
|
198 | 190 | {
|
199 |
| - "command": "mdb.createNewPlaygroundFromPlaygroundExplorer", |
| 191 | + "command": "mdb.createNewPlaygroundFromTreeView", |
200 | 192 | "title": "Create MongoDB Playground",
|
201 | 193 | "icon": {
|
202 | 194 | "light": "images/light/add.svg",
|
|
296 | 288 | }
|
297 | 289 | },
|
298 | 290 | {
|
299 |
| - "command": "mdb.openPlaygroundFromTreeItem", |
| 291 | + "command": "mdb.openPlaygroundFromTreeView", |
300 | 292 | "title": "Open Playground"
|
301 | 293 | },
|
302 | 294 | {
|
|
407 | 399 | "menus": {
|
408 | 400 | "view/title": [
|
409 | 401 | {
|
410 |
| - "command": "mdb.createNewPlaygroundFromViewAction", |
411 |
| - "when": "view == mongoDBPlaygroundsExplorer" |
412 |
| - }, |
413 |
| - { |
414 |
| - "command": "mdb.createNewPlaygroundFromPlaygroundExplorer", |
| 402 | + "command": "mdb.createNewPlaygroundFromTreeView", |
415 | 403 | "when": "view == mongoDBPlaygroundsExplorer",
|
416 | 404 | "group": "navigation@1"
|
417 | 405 | },
|
|
476 | 464 | "group": "5@2"
|
477 | 465 | },
|
478 | 466 | {
|
479 |
| - "command": "mdb.openPlaygroundFromTreeItem", |
| 467 | + "command": "mdb.openPlaygroundFromTreeView", |
480 | 468 | "when": "view == mongoDBPlaygroundsExplorer && viewItem == playgroundsTreeItem",
|
481 | 469 | "group": "1@1"
|
482 | 470 | },
|
|
630 | 618 | }
|
631 | 619 | ],
|
632 | 620 | "commandPalette": [
|
| 621 | + { |
| 622 | + "command": "mdb.disconnect", |
| 623 | + "when": "mdb.connectedToMongoDB == true" |
| 624 | + }, |
633 | 625 | {
|
634 | 626 | "command": "mdb.saveMongoDBDocument",
|
635 | 627 | "when": "editorLangId == json"
|
|
644 | 636 | },
|
645 | 637 | {
|
646 | 638 | "command": "mdb.exportToRuby",
|
647 |
| - "when": "mdb.isPlayground == true" |
| 639 | + "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true" |
648 | 640 | },
|
649 | 641 | {
|
650 | 642 | "command": "mdb.exportToPython",
|
651 |
| - "when": "mdb.isPlayground == true" |
| 643 | + "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true" |
652 | 644 | },
|
653 | 645 | {
|
654 | 646 | "command": "mdb.exportToJava",
|
655 |
| - "when": "mdb.isPlayground == true" |
| 647 | + "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true" |
656 | 648 | },
|
657 | 649 | {
|
658 | 650 | "command": "mdb.exportToCsharp",
|
659 |
| - "when": "mdb.isPlayground == true" |
| 651 | + "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true" |
660 | 652 | },
|
661 | 653 | {
|
662 | 654 | "command": "mdb.exportToNode",
|
663 |
| - "when": "mdb.isPlayground == true" |
| 655 | + "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true" |
664 | 656 | },
|
665 | 657 | {
|
666 | 658 | "command": "mdb.refreshPlaygroundsFromTreeView",
|
|
678 | 670 | "command": "mdb.addConnectionWithURI",
|
679 | 671 | "when": "false"
|
680 | 672 | },
|
681 |
| - { |
682 |
| - "command": "mdb.createNewPlaygroundFromViewAction", |
683 |
| - "when": "false" |
684 |
| - }, |
685 | 673 | {
|
686 | 674 | "command": "mdb.createNewPlaygroundFromOverviewPage",
|
687 | 675 | "when": "false"
|
688 | 676 | },
|
689 | 677 | {
|
690 |
| - "command": "mdb.createNewPlaygroundFromPlaygroundExplorer", |
| 678 | + "command": "mdb.createNewPlaygroundFromTreeView", |
691 | 679 | "when": "false"
|
692 | 680 | },
|
693 | 681 | {
|
|
715 | 703 | "when": "false"
|
716 | 704 | },
|
717 | 705 | {
|
718 |
| - "command": "mdb.openPlaygroundFromTreeItem", |
| 706 | + "command": "mdb.openPlaygroundFromTreeView", |
719 | 707 | "when": "false"
|
720 | 708 | },
|
721 | 709 | {
|
|
0 commit comments