|
397 | 397 | { |
398 | 398 | "command": "mdb.deleteDocumentFromTreeView", |
399 | 399 | "title": "Delete Document..." |
| 400 | + }, |
| 401 | + { |
| 402 | + "command": "mdb.addStreamProcessor", |
| 403 | + "title": "Add StreamProcessor...", |
| 404 | + "icon": { |
| 405 | + "light": "images/light/plus-circle.svg", |
| 406 | + "dark": "images/dark/plus-circle.svg" |
| 407 | + } |
| 408 | + }, |
| 409 | + { |
| 410 | + "command": "mdb.startStreamProcessor", |
| 411 | + "title": "Start Stream Processor" |
| 412 | + }, |
| 413 | + { |
| 414 | + "command": "mdb.stopStreamProcessor", |
| 415 | + "title": "Stop Stream Processor" |
| 416 | + }, |
| 417 | + { |
| 418 | + "command": "mdb.dropStreamProcessor", |
| 419 | + "title": "Drop Stream Processor..." |
400 | 420 | } |
401 | 421 | ], |
402 | 422 | "menus": { |
|
428 | 448 | "view/item/context": [ |
429 | 449 | { |
430 | 450 | "command": "mdb.addDatabase", |
431 | | - "when": "view == mongoDBConnectionExplorer && viewItem == connectedConnectionTreeItem", |
| 451 | + "when": "view == mongoDBConnectionExplorer && viewItem == connectedConnectionTreeItem && mdb.isAtlasStreams == false", |
432 | 452 | "group": "inline" |
433 | 453 | }, |
434 | 454 | { |
435 | 455 | "command": "mdb.addDatabase", |
436 | | - "when": "view == mongoDBConnectionExplorer && viewItem == connectedConnectionTreeItem", |
| 456 | + "when": "view == mongoDBConnectionExplorer && viewItem == connectedConnectionTreeItem && mdb.isAtlasStreams == false", |
| 457 | + "group": "1@1" |
| 458 | + }, |
| 459 | + { |
| 460 | + "command": "mdb.addStreamProcessor", |
| 461 | + "when": "view == mongoDBConnectionExplorer && viewItem == connectedConnectionTreeItem && mdb.isAtlasStreams == true", |
| 462 | + "group": "inline" |
| 463 | + }, |
| 464 | + { |
| 465 | + "command": "mdb.addStreamProcessor", |
| 466 | + "when": "view == mongoDBConnectionExplorer && viewItem == connectedConnectionTreeItem && mdb.isAtlasStreams == true", |
437 | 467 | "group": "1@1" |
438 | 468 | }, |
439 | 469 | { |
|
611 | 641 | "command": "mdb.deleteDocumentFromTreeView", |
612 | 642 | "when": "view == mongoDBConnectionExplorer && viewItem == documentTreeItem", |
613 | 643 | "group": "3@1" |
| 644 | + }, |
| 645 | + { |
| 646 | + "command": "mdb.startStreamProcessor", |
| 647 | + "when": "view == mongoDBConnectionExplorer && viewItem == streamProcessorTreeItem" |
| 648 | + }, |
| 649 | + { |
| 650 | + "command": "mdb.stopStreamProcessor", |
| 651 | + "when": "view == mongoDBConnectionExplorer && viewItem == streamProcessorTreeItem" |
| 652 | + }, |
| 653 | + { |
| 654 | + "command": "mdb.dropStreamProcessor", |
| 655 | + "when": "view == mongoDBConnectionExplorer && viewItem == streamProcessorTreeItem" |
614 | 656 | } |
615 | 657 | ], |
616 | 658 | "editor/title": [ |
|
639 | 681 | }, |
640 | 682 | { |
641 | 683 | "command": "mdb.exportToRuby", |
642 | | - "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true" |
| 684 | + "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true && mdb.isAtlasStreams == false" |
643 | 685 | }, |
644 | 686 | { |
645 | 687 | "command": "mdb.exportToPython", |
646 | | - "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true" |
| 688 | + "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true && mdb.isAtlasStreams == false" |
647 | 689 | }, |
648 | 690 | { |
649 | 691 | "command": "mdb.exportToJava", |
650 | | - "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true" |
| 692 | + "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true && mdb.isAtlasStreams == false" |
651 | 693 | }, |
652 | 694 | { |
653 | 695 | "command": "mdb.exportToCsharp", |
654 | | - "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true" |
| 696 | + "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true && mdb.isAtlasStreams == false" |
655 | 697 | }, |
656 | 698 | { |
657 | 699 | "command": "mdb.exportToNode", |
658 | | - "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true" |
| 700 | + "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true && mdb.isAtlasStreams == false" |
659 | 701 | }, |
660 | 702 | { |
661 | 703 | "command": "mdb.exportToGo", |
662 | | - "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true" |
| 704 | + "when": "mdb.isPlayground == true && mdb.connectedToMongoDB == true && mdb.isAtlasStreams == false" |
663 | 705 | }, |
664 | 706 | { |
665 | 707 | "command": "mdb.refreshPlaygroundsFromTreeView", |
|
804 | 846 | { |
805 | 847 | "command": "mdb.deleteDocumentFromTreeView", |
806 | 848 | "when": "false" |
| 849 | + }, |
| 850 | + { |
| 851 | + "command": "mdb.addStreamProcessor", |
| 852 | + "when": "false" |
| 853 | + }, |
| 854 | + { |
| 855 | + "command": "mdb.startStreamProcessor", |
| 856 | + "when": "false" |
| 857 | + }, |
| 858 | + { |
| 859 | + "command": "mdb.stopStreamProcessor", |
| 860 | + "when": "false" |
| 861 | + }, |
| 862 | + { |
| 863 | + "command": "mdb.dropStreamProcessor", |
| 864 | + "when": "false" |
807 | 865 | } |
808 | 866 | ] |
809 | 867 | }, |
|
1002 | 1060 | "mongodb-build-info": "^1.6.2", |
1003 | 1061 | "mongodb-cloud-info": "^2.1.0", |
1004 | 1062 | "mongodb-connection-string-url": "^2.6.0", |
1005 | | - "mongodb-data-service": "^22.17.0", |
| 1063 | + "mongodb-data-service": "^22.17.1", |
1006 | 1064 | "mongodb-data-service-legacy": "npm:mongodb-data-service@22.8.0", |
1007 | 1065 | "mongodb-log-writer": "^1.4.0", |
1008 | 1066 | "mongodb-query-parser": "^3.1.3", |
|
0 commit comments