✨ feat(vscode): 侧栏问 AI 的按钮登记进菜单
This commit is contained in:
1 parent
59e776cd2a
commit
9cbae0009c
1 file changed
+15
@@ -197,6 +197,12 @@
|
|||||||
"category": "代码阅读",
|
"category": "代码阅读",
|
||||||
"icon": "$(edit)"
|
"icon": "$(edit)"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"command": "superpowers.codeReader.askPath",
|
||||||
|
"title": "问 AI",
|
||||||
|
"category": "代码阅读",
|
||||||
|
"icon": "$(sparkle)"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"command": "superpowers.codeReader.nextOccurrence",
|
"command": "superpowers.codeReader.nextOccurrence",
|
||||||
"title": "跳到下一处高亮",
|
"title": "跳到下一处高亮",
|
||||||
@@ -305,6 +311,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"view/item/context": [
|
"view/item/context": [
|
||||||
|
{
|
||||||
|
"command": "superpowers.codeReader.askPath",
|
||||||
|
"when": "view == superpowers.codeReader.files && viewItem =~ /^(file( unstaged)?|folder)( noted)?$/",
|
||||||
|
"group": "inline@0"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"submenu": "superpowers.codeReader.copy",
|
"submenu": "superpowers.codeReader.copy",
|
||||||
"when": "view == superpowers.codeReader.files && viewItem =~ /^(file( unstaged)?|folder)( noted)?$/",
|
"when": "view == superpowers.codeReader.files && viewItem =~ /^(file( unstaged)?|folder)( noted)?$/",
|
||||||
@@ -437,6 +448,10 @@
|
|||||||
{
|
{
|
||||||
"command": "superpowers.codeReader.editNote",
|
"command": "superpowers.codeReader.editNote",
|
||||||
"when": "false"
|
"when": "false"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "superpowers.codeReader.askPath",
|
||||||
|
"when": "false"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user