✨ feat(vscode): 代码阅读侧栏给目录、文件记注释

This commit is contained in:
cruldra committed 2026-09-25 19:21:03 +08:00
1 parent beabffdf2c
commit 05c4bec56b
14 files changed
+703 -23

No files matched your search

+42
View File
@@ -123,6 +123,18 @@
"command": "superpowers.codeReader.showSource",
"title": "编辑",
"category": "代码阅读"
},
{
"command": "superpowers.codeReader.addNote",
"title": "添加注释",
"category": "代码阅读",
"icon": "$(comment)"
},
{
"command": "superpowers.codeReader.editNote",
"title": "编辑注释",
"category": "代码阅读",
"icon": "$(edit)"
}
],
"menus": {
@@ -148,6 +160,28 @@
"group": "navigation"
}
],
"view/item/context": [
{
"command": "superpowers.codeReader.addNote",
"when": "view == superpowers.codeReader.files && viewItem =~ /^(file|folder)$/",
"group": "inline"
},
{
"command": "superpowers.codeReader.editNote",
"when": "view == superpowers.codeReader.files && viewItem =~ /^(file|folder) noted$/",
"group": "inline"
},
{
"command": "superpowers.codeReader.addNote",
"when": "view == superpowers.codeReader.files && viewItem =~ /^(file|folder)$/",
"group": "notes"
},
{
"command": "superpowers.codeReader.editNote",
"when": "view == superpowers.codeReader.files && viewItem =~ /^(file|folder) noted$/",
"group": "notes"
}
],
"editor/title": [
{
"command": "superpowers.codeReader.showPreview",
@@ -172,6 +206,14 @@
{
"command": "superpowers.codeReader.showSource",
"when": "activeCustomEditorId == superpowers.codeReader.preview"
},
{
"command": "superpowers.codeReader.addNote",
"when": "false"
},
{
"command": "superpowers.codeReader.editNote",
"when": "false"
}
]
}