|
527 | 527 | "editPresentation": "singlelineText",
|
528 | 528 | "markdownDescription": "博客园 Markdown 语法扩展: 代码块指定行高亮\n\n \n\n使用示例:\n\n```markdown\n\n```typescript {1, 3-4}\nconsole.log(1)\nconsole.log(2)\nconsole.log(3)\nconsole.log(4)\nconsole.log(5)\n```\n\n```"
|
529 | 529 | },
|
530 |
| - "cnblogsClientForVSCode.ing.enablePublishSelectionToIng": { |
531 |
| - "order": 11, |
532 |
| - "type": "boolean", |
| 530 | + "cnblogsClientForVSCode.menus.context.explorer": { |
| 531 | + "type": "object", |
| 532 | + "additionalProperties": false, |
| 533 | + "default": { |
| 534 | + "save-post-file-to-cnblogs": true, |
| 535 | + "pull-post-remote-updates": true, |
| 536 | + "modify-post-settings": true, |
| 537 | + "show-post-to-local-file-info": true, |
| 538 | + "open-post-in-blog-admin": true, |
| 539 | + "export-post-to-pdf": true, |
| 540 | + "copy-post-link": true |
| 541 | + }, |
| 542 | + "markdownDescription": "控制要在资源管理器右键菜单中显示的命令", |
| 543 | + "order": 12, |
| 544 | + "properties": { |
| 545 | + "save-post-file-to-cnblogs": { |
| 546 | + "description": "保存到博客园", |
| 547 | + "type": "boolean", |
| 548 | + "order": 0, |
| 549 | + "default": true |
| 550 | + }, |
| 551 | + "pull-post-remote-updates": { |
| 552 | + "description": "拉取远程更新", |
| 553 | + "type": "boolean", |
| 554 | + "order": 1, |
| 555 | + "default": true |
| 556 | + }, |
| 557 | + "modify-post-settings": { |
| 558 | + "description": "博文设置", |
| 559 | + "type": "boolean", |
| 560 | + "order": 2, |
| 561 | + "default": true |
| 562 | + }, |
| 563 | + "show-post-to-local-file-info": { |
| 564 | + "description": "博客园关联博文", |
| 565 | + "type": "boolean", |
| 566 | + "order": 3, |
| 567 | + "default": true |
| 568 | + }, |
| 569 | + "open-post-in-blog-admin": { |
| 570 | + "description": "在博客后台中编辑", |
| 571 | + "type": "boolean", |
| 572 | + "order": 4, |
| 573 | + "default": true |
| 574 | + }, |
| 575 | + "export-post-to-pdf": { |
| 576 | + "description": "导出pdf", |
| 577 | + "type": "boolean", |
| 578 | + "order": 5, |
| 579 | + "default": true |
| 580 | + }, |
| 581 | + "copy-post-link": { |
| 582 | + "description": "复制博文链接", |
| 583 | + "type": "boolean", |
| 584 | + "order": 6, |
| 585 | + "default": true |
| 586 | + } |
| 587 | + } |
| 588 | + }, |
| 589 | + "cnblogsClientForVSCode.menus.context.editor": { |
| 590 | + "type": "object", |
| 591 | + "default": { |
| 592 | + "save-post-file-to-cnblogs": true, |
| 593 | + "pull-post-remote-updates": true, |
| 594 | + "modify-post-settings": true, |
| 595 | + "show-post-to-local-file-info": true, |
| 596 | + "open-post-in-blog-admin": true, |
| 597 | + "export-post-to-pdf": true, |
| 598 | + "copy-post-link": true, |
| 599 | + "upload-clipboard-image": true, |
| 600 | + "upload-local-disk-image": true, |
| 601 | + "extract-images": true, |
| 602 | + "ing:publish-selection": false |
| 603 | + }, |
| 604 | + "properties": { |
| 605 | + "save-post-file-to-cnblogs": { |
| 606 | + "description": "保存到博客园", |
| 607 | + "type": "boolean", |
| 608 | + "order": 0 |
| 609 | + }, |
| 610 | + "pull-post-remote-updates": { |
| 611 | + "description": "拉取远程更新", |
| 612 | + "type": "boolean", |
| 613 | + "order": 1 |
| 614 | + }, |
| 615 | + "modify-post-settings": { |
| 616 | + "description": "博文设置", |
| 617 | + "type": "boolean", |
| 618 | + "order": 2 |
| 619 | + }, |
| 620 | + "show-post-to-local-file-info": { |
| 621 | + "description": "博客园关联博文", |
| 622 | + "type": "boolean", |
| 623 | + "order": 3 |
| 624 | + }, |
| 625 | + "open-post-in-blog-admin": { |
| 626 | + "description": "在博客后台中编辑", |
| 627 | + "type": "boolean", |
| 628 | + "default": true, |
| 629 | + "order": 4 |
| 630 | + }, |
| 631 | + "export-post-to-pdf": { |
| 632 | + "description": "导出pdf", |
| 633 | + "type": "boolean", |
| 634 | + "order": 5 |
| 635 | + }, |
| 636 | + "copy-post-link": { |
| 637 | + "description": "复制博文链接", |
| 638 | + "type": "boolean", |
| 639 | + "order": 6 |
| 640 | + }, |
| 641 | + "upload-clipboard-image": { |
| 642 | + "description": "上传剪贴板图片到博客园", |
| 643 | + "type": "boolean", |
| 644 | + "order": 7 |
| 645 | + }, |
| 646 | + "upload-local-disk-image": { |
| 647 | + "description": "上传本地图片到博客园", |
| 648 | + "type": "boolean", |
| 649 | + "order": 8 |
| 650 | + }, |
| 651 | + "extract-images": { |
| 652 | + "description": "提取图片", |
| 653 | + "type": "boolean", |
| 654 | + "order": 9 |
| 655 | + }, |
| 656 | + "ing:publish-selection": { |
| 657 | + "description": "将选中内容发到闪存", |
| 658 | + "type": "boolean", |
| 659 | + "order": 10 |
| 660 | + } |
| 661 | + }, |
533 | 662 | "scope": "application",
|
534 |
| - "default": false, |
535 |
| - "markdownDescription": "是否允许将选中内容发到闪存\n\n启用后, 编辑上下文菜单将包含\"将选中内容发到闪存\"" |
| 663 | + "additionalProperties": false, |
| 664 | + "markdownDescription": "控制要在编辑器右键菜单中显示的命令", |
| 665 | + "order": 13 |
536 | 666 | }
|
537 | 667 | }
|
538 | 668 | }
|
|
959 | 1089 | },
|
960 | 1090 | {
|
961 | 1091 | "command": "vscode-cnb.show-post-to-local-file-info",
|
962 |
| - "when": "resourceLangId == markdown", |
| 1092 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.show-post-to-local-file-info", |
963 | 1093 | "group": "cnblogs@1"
|
964 | 1094 | },
|
965 | 1095 | {
|
966 | 1096 | "command": "vscode-cnb.save-post-file-to-cnblogs",
|
967 |
| - "when": "resourceLangId == markdown", |
| 1097 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.save-post-file-to-cnblogs", |
968 | 1098 | "group": "cnblogs@2"
|
969 | 1099 | },
|
970 | 1100 | {
|
971 | 1101 | "command": "vscode-cnb.pull-post-remote-updates",
|
972 |
| - "when": "resourceLangId == markdown", |
| 1102 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.pull-post-remote-updates", |
973 | 1103 | "group": "cnblogs@3"
|
974 | 1104 | },
|
975 | 1105 | {
|
976 | 1106 | "command": "vscode-cnb.modify-post-settings",
|
977 |
| - "when": "resourceLangId == markdown", |
| 1107 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.modify-post-settings", |
978 | 1108 | "group": "cnblogs@4"
|
979 | 1109 | },
|
980 | 1110 | {
|
981 | 1111 | "command": "vscode-cnb.open-post-in-blog-admin",
|
982 |
| - "when": "resourceLangId == markdown", |
| 1112 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.open-post-in-blog-admin", |
983 | 1113 | "group": "cnblogs@5"
|
984 | 1114 | },
|
985 | 1115 | {
|
986 | 1116 | "command": "vscode-cnb.upload-clipboard-image",
|
987 |
| - "when": "resourceLangId == markdown", |
| 1117 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.upload-clipboard-image", |
988 | 1118 | "group": "cnblogs@6"
|
989 | 1119 | },
|
990 | 1120 | {
|
991 | 1121 | "command": "vscode-cnb.upload-local-disk-image",
|
992 |
| - "when": "resourceLangId == markdown", |
| 1122 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.upload-local-disk-image", |
993 | 1123 | "group": "cnblogs@7"
|
994 | 1124 | },
|
995 | 1125 | {
|
996 | 1126 | "command": "vscode-cnb.export-post-to-pdf",
|
997 |
| - "when": "resourceLangId == markdown", |
| 1127 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.export-post-to-pdf", |
998 | 1128 | "group": "cnblogs@8"
|
999 | 1129 | },
|
1000 | 1130 | {
|
1001 | 1131 | "command": "vscode-cnb.extract-images",
|
1002 |
| - "when": "resourceLangId == markdown", |
| 1132 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.extract-images", |
1003 | 1133 | "group": "cnblogs@9"
|
1004 | 1134 | },
|
1005 | 1135 | {
|
1006 | 1136 | "command": "vscode-cnb.ing.publish-selection",
|
1007 | 1137 | "group": "cnblogs@10",
|
1008 |
| - "when": "config.cnblogsClientForVSCode.ing.enablePublishSelectionToIng" |
| 1138 | + "when": "config.cnblogsClientForVSCode.menus.context.editor.ing:publish-selection" |
1009 | 1139 | }
|
1010 | 1140 | ],
|
1011 | 1141 | "editor/title": [
|
|
1028 | 1158 | },
|
1029 | 1159 | {
|
1030 | 1160 | "command": "vscode-cnb.save-post-file-to-cnblogs",
|
1031 |
| - "when": "resourceLangId == markdown", |
| 1161 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.explorer.save-post-file-to-cnblogs", |
1032 | 1162 | "group": "cnblogs@2"
|
1033 | 1163 | },
|
1034 | 1164 | {
|
1035 | 1165 | "command": "vscode-cnb.pull-post-remote-updates",
|
1036 |
| - "when": "resourceLangId == markdown", |
| 1166 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.explorer.pull-post-remote-updates", |
1037 | 1167 | "group": "cnblogs@3"
|
1038 | 1168 | },
|
1039 | 1169 | {
|
1040 | 1170 | "command": "vscode-cnb.modify-post-settings",
|
1041 |
| - "when": "resourceLangId == markdown", |
| 1171 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.explorer.modify-post-settings", |
1042 | 1172 | "group": "cnblogs@4"
|
1043 | 1173 | },
|
1044 | 1174 | {
|
1045 | 1175 | "command": "vscode-cnb.show-post-to-local-file-info",
|
1046 |
| - "when": "resourceLangId == markdown", |
| 1176 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.explorer.show-post-to-local-file-info", |
1047 | 1177 | "group": "cnblogs@5"
|
1048 | 1178 | },
|
1049 | 1179 | {
|
1050 | 1180 | "command": "vscode-cnb.open-post-in-blog-admin",
|
1051 |
| - "when": "resourceLangId == markdown", |
| 1181 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.explorer.open-post-in-blog-admin", |
1052 | 1182 | "group": "cnblogs@6"
|
1053 | 1183 | },
|
1054 | 1184 | {
|
1055 | 1185 | "command": "vscode-cnb.export-post-to-pdf",
|
1056 |
| - "when": "resourceLangId == markdown", |
| 1186 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.explorer.export-post-to-pdf", |
1057 | 1187 | "group": "cnblogs@7"
|
1058 | 1188 | },
|
1059 | 1189 | {
|
1060 | 1190 | "command": "vscode-cnb.copy-post-link",
|
1061 |
| - "when": "resourceLangId == markdown", |
| 1191 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.explorer.copy-post-link", |
1062 | 1192 | "group": "cnblogs@8"
|
1063 | 1193 | }
|
1064 | 1194 | ]
|
|
0 commit comments