Include send output to chat in context menu (#240850)

This commit is contained in:
Peng Lyu
2025-02-14 16:43:17 -08:00
committed by GitHub
parent db5460c8f1
commit a2e99f9b09
2 changed files with 13 additions and 1 deletions

View File

@@ -71,6 +71,11 @@
"title": "%copyCellOutput.title%",
"category": "Notebook"
},
{
"command": "notebook.cellOutput.addToChat",
"title": "%addCellOutputToChat.title%",
"category": "Notebook"
},
{
"command": "notebook.cellOutput.openInTextEditor",
"title": "%openCellOutput.title%",
@@ -130,12 +135,18 @@
"webview/context": [
{
"command": "notebook.cellOutput.copy",
"when": "webviewId == 'notebook.output' && webviewSection == 'image'"
"when": "webviewId == 'notebook.output' && webviewSection == 'image'",
"group": "context@1"
},
{
"command": "notebook.cellOutput.copy",
"when": "webviewId == 'notebook.output' && webviewSection == 'text'"
},
{
"command": "notebook.cellOutput.addToChat",
"when": "webviewId == 'notebook.output' && webviewSection == 'image'",
"group": "context@2"
},
{
"command": "notebook.cellOutput.openInTextEditor",
"when": "webviewId == 'notebook.output' && webviewSection == 'text'"

View File

@@ -8,6 +8,7 @@
"openIpynbInNotebookEditor.title": "Open IPYNB File In Notebook Editor",
"cleanInvalidImageAttachment.title": "Clean Invalid Image Attachment Reference",
"copyCellOutput.title": "Copy Cell Output",
"addCellOutputToChat.title": "Add Cell Output to Chat",
"openCellOutput.title": "Open Cell Output in Text Editor",
"markdownAttachmentRenderer.displayName": {
"message": "Markdown-It ipynb Cell Attachment renderer",