|
238 | 238 | "dark": "resources/dark/run-experiment.svg" |
239 | 239 | } |
240 | 240 | }, |
| 241 | + { |
| 242 | + "title": "%command.modifyExperimentParamsResetAndRun%", |
| 243 | + "command": "dvc.modifyExperimentParamsResetAndRun", |
| 244 | + "category": "DVC", |
| 245 | + "icon": { |
| 246 | + "light": "resources/light/run-experiment.svg", |
| 247 | + "dark": "resources/dark/run-experiment.svg" |
| 248 | + } |
| 249 | + }, |
241 | 250 | { |
242 | 251 | "title": "%command.queueExperiment%", |
243 | 252 | "command": "dvc.queueExperiment", |
|
415 | 424 | "dark": "resources/dark/run-experiment.svg" |
416 | 425 | } |
417 | 426 | }, |
| 427 | + { |
| 428 | + "title": "%command.views.experimentsTree.resetRunExperiment%", |
| 429 | + "command": "dvc.views.experimentsTree.resetRunExperiment", |
| 430 | + "category": "DVC", |
| 431 | + "icon": { |
| 432 | + "light": "resources/light/run-experiment.svg", |
| 433 | + "dark": "resources/dark/run-experiment.svg" |
| 434 | + } |
| 435 | + }, |
418 | 436 | { |
419 | 437 | "title": "%command.views.experimentsTree.selectExperiments%", |
420 | 438 | "command": "dvc.views.experimentsTree.selectExperiments", |
|
508 | 526 | }, |
509 | 527 | { |
510 | 528 | "command": "dvc.applyExperiment", |
511 | | - "when": "dvc.commands.available && dvc.project.available" |
| 529 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
512 | 530 | }, |
513 | 531 | { |
514 | 532 | "command": "dvc.branchExperiment", |
515 | | - "when": "dvc.commands.available && dvc.project.available" |
| 533 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
516 | 534 | }, |
517 | 535 | { |
518 | 536 | "command": "dvc.checkout", |
|
552 | 570 | }, |
553 | 571 | { |
554 | 572 | "command": "dvc.experimentGarbageCollect", |
555 | | - "when": "dvc.commands.available && dvc.project.available" |
| 573 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
556 | 574 | }, |
557 | 575 | { |
558 | 576 | "command": "dvc.findInFolder", |
|
596 | 614 | }, |
597 | 615 | { |
598 | 616 | "command": "dvc.modifyExperimentParamsAndQueue", |
599 | | - "when": "dvc.commands.available && dvc.project.available" |
| 617 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
600 | 618 | }, |
601 | 619 | { |
602 | 620 | "command": "dvc.modifyExperimentParamsAndRun", |
603 | | - "when": "dvc.commands.available && dvc.project.available" |
| 621 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
| 622 | + }, |
| 623 | + { |
| 624 | + "command": "dvc.modifyExperimentParamsResetAndRun", |
| 625 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
604 | 626 | }, |
605 | 627 | { |
606 | 628 | "command": "dvc.queueExperiment", |
607 | | - "when": "dvc.commands.available && dvc.project.available" |
| 629 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
608 | 630 | }, |
609 | 631 | { |
610 | 632 | "command": "dvc.removeExperiment", |
611 | | - "when": "dvc.commands.available && dvc.project.available" |
| 633 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
612 | 634 | }, |
613 | 635 | { |
614 | 636 | "command": "dvc.removeExperimentQueue", |
615 | | - "when": "dvc.commands.available && dvc.project.available" |
| 637 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
616 | 638 | }, |
617 | 639 | { |
618 | 640 | "command": "dvc.removeExperimentsTableFilters", |
|
624 | 646 | }, |
625 | 647 | { |
626 | 648 | "command": "dvc.removeQueuedExperiment", |
627 | | - "when": "dvc.commands.available && dvc.project.available" |
| 649 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
628 | 650 | }, |
629 | 651 | { |
630 | 652 | "command": "dvc.removeTarget", |
|
640 | 662 | }, |
641 | 663 | { |
642 | 664 | "command": "dvc.runExperiment", |
643 | | - "when": "dvc.commands.available && dvc.project.available" |
| 665 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
644 | 666 | }, |
645 | 667 | { |
646 | 668 | "command": "dvc.runQueuedExperiments", |
647 | | - "when": "dvc.commands.available && dvc.project.available" |
| 669 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
648 | 670 | }, |
649 | 671 | { |
650 | 672 | "command": "dvc.runResetExperiment", |
651 | | - "when": "dvc.commands.available && dvc.project.available" |
| 673 | + "when": "dvc.commands.available && dvc.project.available && !dvc.runner.running" |
652 | 674 | }, |
653 | 675 | { |
654 | 676 | "command": "dvc.selectForCompare", |
|
959 | 981 | "when": "view == dvc.views.experimentsTree && dvc.commands.available && viewItem =~ /^(workspace|branch|experiment|queued)$/ && !dvc.runner.running" |
960 | 982 | }, |
961 | 983 | { |
962 | | - "command": "dvc.views.experimentsTree.queueExperiment", |
| 984 | + "command": "dvc.views.experimentsTree.resetRunExperiment", |
963 | 985 | "group": "1_do@2", |
964 | 986 | "when": "view == dvc.views.experimentsTree && dvc.commands.available && viewItem =~ /^(workspace|branch|experiment|queued)$/ && !dvc.runner.running" |
965 | 987 | }, |
| 988 | + { |
| 989 | + "command": "dvc.views.experimentsTree.queueExperiment", |
| 990 | + "group": "1_do@3", |
| 991 | + "when": "view == dvc.views.experimentsTree && dvc.commands.available && viewItem =~ /^(workspace|branch|experiment|queued)$/ && !dvc.runner.running" |
| 992 | + }, |
966 | 993 | { |
967 | 994 | "command": "dvc.views.experimentsTree.selectExperiments", |
968 | 995 | "group": "inline", |
|
1007 | 1034 | }, |
1008 | 1035 | { |
1009 | 1036 | "command": "dvc.runExperiment", |
1010 | | - "when": "view == dvc.views.experimentsTree && !dvc.experiments.webviewActive", |
| 1037 | + "when": "view == dvc.views.experimentsTree && !dvc.experiments.webviewActive && !dvc.runner.running", |
1011 | 1038 | "group": "1_run@1" |
1012 | 1039 | }, |
1013 | 1040 | { |
1014 | 1041 | "command": "dvc.runExperiment", |
1015 | | - "when": "view == dvc.views.experimentsTree && dvc.experiments.webviewActive", |
| 1042 | + "when": "view == dvc.views.experimentsTree && dvc.experiments.webviewActive && !dvc.runner.running", |
| 1043 | + "group": "navigation@1" |
| 1044 | + }, |
| 1045 | + { |
| 1046 | + "command": "dvc.stopRunningExperiment", |
| 1047 | + "when": "view == dvc.views.experimentsTree && !dvc.experiments.webviewActive && dvc.runner.running", |
| 1048 | + "group": "1_run@1" |
| 1049 | + }, |
| 1050 | + { |
| 1051 | + "command": "dvc.stopRunningExperiment", |
| 1052 | + "when": "view == dvc.views.experimentsTree && dvc.experiments.webviewActive && dvc.runner.running", |
1016 | 1053 | "group": "navigation@1" |
1017 | 1054 | }, |
| 1055 | + { |
| 1056 | + "command": "dvc.runResetExperiment", |
| 1057 | + "when": "view == dvc.views.experimentsTree && !dvc.runner.running", |
| 1058 | + "group": "1_run@2" |
| 1059 | + }, |
1018 | 1060 | { |
1019 | 1061 | "command": "dvc.showPlots", |
1020 | 1062 | "when": "view == dvc.views.experimentsTree && !dvc.plots.webviewActive", |
|
1028 | 1070 | { |
1029 | 1071 | "command": "dvc.runQueuedExperiments", |
1030 | 1072 | "when": "view == dvc.views.experimentsTree && !dvc.runner.running", |
1031 | | - "group": "1_run@2" |
| 1073 | + "group": "1_run@3" |
1032 | 1074 | }, |
1033 | 1075 | { |
1034 | | - "command": "dvc.queueExperiment", |
| 1076 | + "command": "dvc.modifyExperimentParamsAndRun", |
1035 | 1077 | "when": "view == dvc.views.experimentsTree && !dvc.runner.running", |
1036 | | - "group": "2_queue@1" |
| 1078 | + "group": "2_modify@1" |
| 1079 | + }, |
| 1080 | + { |
| 1081 | + "command": "dvc.modifyExperimentParamsResetAndRun", |
| 1082 | + "when": "view == dvc.views.experimentsTree && !dvc.runner.running", |
| 1083 | + "group": "2_modify@2" |
1037 | 1084 | }, |
1038 | 1085 | { |
1039 | 1086 | "command": "dvc.modifyExperimentParamsAndQueue", |
1040 | 1087 | "when": "view == dvc.views.experimentsTree && !dvc.runner.running", |
1041 | | - "group": "2_queue@2" |
| 1088 | + "group": "2_modify@3" |
| 1089 | + }, |
| 1090 | + { |
| 1091 | + "command": "dvc.queueExperiment", |
| 1092 | + "when": "view == dvc.views.experimentsTree && !dvc.runner.running", |
| 1093 | + "group": "3_queue@1" |
1042 | 1094 | }, |
1043 | 1095 | { |
1044 | 1096 | "command": "dvc.views.experimentsTree.autoApplyFilters", |
|
0 commit comments