|
154 | 154 | "category": "Cnblogs Posts List", |
155 | 155 | "enablement": "vscode-cnb.isAuthorized" |
156 | 156 | }, |
| 157 | + { |
| 158 | + "command": "vscode-cnb.upload-post-no-confirm", |
| 159 | + "title": "上传博文", |
| 160 | + "icon": "$(cloud-upload)", |
| 161 | + "category": "Cnblogs Posts List", |
| 162 | + "enablement": "vscode-cnb.isAuthorized" |
| 163 | + }, |
157 | 164 | { |
158 | 165 | "command": "vscode-cnb.delete-post", |
159 | 166 | "title": "删除随笔(支持多选)", |
|
199 | 206 | "category": "Cnblogs" |
200 | 207 | }, |
201 | 208 | { |
202 | | - "command": "vscode-cnb.upload-post-file-to-cnblogs", |
| 209 | + "command": "vscode-cnb.upload-post-file", |
| 210 | + "title": "上传到博客园", |
| 211 | + "icon": "$(vscode-cnb-cloud-upload)", |
| 212 | + "enablement": "vscode-cnb.isAuthorized", |
| 213 | + "category": "Cnblogs" |
| 214 | + }, |
| 215 | + { |
| 216 | + "command": "vscode-cnb.upload-post-file-no-confirm", |
203 | 217 | "title": "上传到博客园", |
204 | 218 | "icon": "$(vscode-cnb-cloud-upload)", |
205 | 219 | "enablement": "vscode-cnb.isAuthorized", |
|
546 | 560 | "markdownDescription": "在拉取博文时显示确认消息" |
547 | 561 | }, |
548 | 562 | "cnblogsClientForVSCode.menus.context.explorer": { |
| 563 | + "markdownDescription": "控制要在资源管理器右键菜单中显示的命令", |
549 | 564 | "type": "object", |
550 | 565 | "additionalProperties": false, |
551 | 566 | "default": { |
552 | | - "upload-post-file-to-cnblogs": true, |
| 567 | + "upload-post-file-no-confirm": true, |
553 | 568 | "pull-post-remote-updates": true, |
554 | 569 | "modify-post-settings": true, |
555 | 570 | "show-post-to-local-file-info": true, |
556 | 571 | "open-post-in-blog-admin": true, |
557 | 572 | "export-post-to-pdf": true, |
558 | 573 | "copy-post-link": true |
559 | 574 | }, |
560 | | - "markdownDescription": "控制要在资源管理器右键菜单中显示的命令", |
561 | 575 | "order": 13, |
562 | 576 | "properties": { |
563 | | - "upload-post-file-to-cnblogs": { |
| 577 | + "upload-post-file-no-confirm": { |
564 | 578 | "description": "上传到博客园", |
565 | 579 | "type": "boolean", |
566 | 580 | "order": 0, |
|
605 | 619 | } |
606 | 620 | }, |
607 | 621 | "cnblogsClientForVSCode.menus.context.editor": { |
| 622 | + "markdownDescription": "控制要在编辑器右键菜单中显示的命令", |
608 | 623 | "type": "object", |
609 | 624 | "default": { |
610 | | - "upload-post-file-to-cnblogs": true, |
| 625 | + "upload-post-file-no-confirm": true, |
611 | 626 | "pull-post-remote-updates": true, |
612 | 627 | "modify-post-settings": true, |
613 | 628 | "show-post-to-local-file-info": true, |
|
620 | 635 | "ing:publish-selection": false |
621 | 636 | }, |
622 | 637 | "properties": { |
623 | | - "upload-post-file-to-cnblogs": { |
| 638 | + "upload-post-file-no-confirm": { |
624 | 639 | "description": "上传到博客园", |
625 | 640 | "type": "boolean", |
626 | 641 | "order": 0 |
|
679 | 694 | }, |
680 | 695 | "scope": "application", |
681 | 696 | "additionalProperties": false, |
682 | | - "markdownDescription": "控制要在编辑器右键菜单中显示的命令", |
683 | 697 | "order": 14 |
684 | 698 | } |
685 | 699 | } |
|
856 | 870 | "when": "false" |
857 | 871 | }, |
858 | 872 | { |
859 | | - "command": "vscode-cnb.upload-post-file-to-cnblogs", |
| 873 | + "command": "vscode-cnb.upload-post-file", |
860 | 874 | "when": "true" |
861 | 875 | }, |
862 | 876 | { |
|
1006 | 1020 | "group": "delete@2" |
1007 | 1021 | }, |
1008 | 1022 | { |
1009 | | - "command": "vscode-cnb.upload-post", |
| 1023 | + "command": "vscode-cnb.upload-post-no-confirm", |
1010 | 1024 | "group": "0@1", |
1011 | 1025 | "when": "viewItem == cnb-post-cached" |
1012 | 1026 | }, |
|
1111 | 1125 | "group": "cnblogs@1" |
1112 | 1126 | }, |
1113 | 1127 | { |
1114 | | - "command": "vscode-cnb.upload-post-file-to-cnblogs", |
1115 | | - "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.upload-post-file-to-cnblogs", |
| 1128 | + "command": "vscode-cnb.upload-post-file-no-confirm", |
| 1129 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.upload-post-file-no-confirm", |
1116 | 1130 | "group": "cnblogs@2" |
1117 | 1131 | }, |
1118 | 1132 | { |
|
1163 | 1177 | "group": "navigation" |
1164 | 1178 | }, |
1165 | 1179 | { |
1166 | | - "command": "vscode-cnb.upload-post-file-to-cnblogs", |
| 1180 | + "command": "vscode-cnb.upload-post-file", |
1167 | 1181 | "when": "resourceLangId == markdown", |
1168 | 1182 | "group": "navigation" |
1169 | 1183 | } |
|
1175 | 1189 | "group": "cnblogs@1" |
1176 | 1190 | }, |
1177 | 1191 | { |
1178 | | - "command": "vscode-cnb.upload-post-file-to-cnblogs", |
1179 | | - "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.explorer.upload-post-file-to-cnblogs", |
| 1192 | + "command": "vscode-cnb.upload-post-file", |
| 1193 | + "when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.explorer.upload-post-file", |
1180 | 1194 | "group": "cnblogs@2" |
1181 | 1195 | }, |
1182 | 1196 | { |
|
0 commit comments