mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Merge pull request #191816 from microsoft/aamunger/copyOutput
changed command title and name
This commit is contained in:
@@ -58,8 +58,8 @@
|
|||||||
"title": "%cleanInvalidImageAttachment.title%"
|
"title": "%cleanInvalidImageAttachment.title%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "notebook.cellOutput.copyToClipboard",
|
"command": "notebook.cellOutput.copy",
|
||||||
"title": "%copyOutputToClipboard.title%"
|
"title": "%copyCellOutput.title%"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"notebooks": [
|
"notebooks": [
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
],
|
],
|
||||||
"webview/context": [
|
"webview/context": [
|
||||||
{
|
{
|
||||||
"command": "notebook.cellOutput.copyToClipboard",
|
"command": "notebook.cellOutput.copy",
|
||||||
"when": "webviewId == 'notebook.output' && webviewSection == 'image'"
|
"when": "webviewId == 'notebook.output' && webviewSection == 'image'"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"newUntitledIpynb.shortTitle": "Jupyter Notebook",
|
"newUntitledIpynb.shortTitle": "Jupyter Notebook",
|
||||||
"openIpynbInNotebookEditor.title": "Open IPYNB File In Notebook Editor",
|
"openIpynbInNotebookEditor.title": "Open IPYNB File In Notebook Editor",
|
||||||
"cleanInvalidImageAttachment.title": "Clean Invalid Image Attachment Reference",
|
"cleanInvalidImageAttachment.title": "Clean Invalid Image Attachment Reference",
|
||||||
"copyOutputToClipboard.title": "Copy Output to Clipboard",
|
"copyCellOutput.title": "Copy Output",
|
||||||
"markdownAttachmentRenderer.displayName": {
|
"markdownAttachmentRenderer.displayName": {
|
||||||
"message": "Markdown-It ipynb Cell Attachment renderer",
|
"message": "Markdown-It ipynb Cell Attachment renderer",
|
||||||
"comment": [
|
"comment": [
|
||||||
|
|||||||
@@ -17,13 +17,13 @@ import { ICellOutputViewModel, ICellViewModel, INotebookEditor, getNotebookEdito
|
|||||||
import { CellKind } from 'vs/workbench/contrib/notebook/common/notebookCommon';
|
import { CellKind } from 'vs/workbench/contrib/notebook/common/notebookCommon';
|
||||||
import { CodeCellViewModel } from 'vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
import { CodeCellViewModel } from 'vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
||||||
|
|
||||||
export const COPY_OUTPUT_COMMAND_ID = 'notebook.cellOutput.copyToClipboard';
|
export const COPY_OUTPUT_COMMAND_ID = 'notebook.cellOutput.copy';
|
||||||
|
|
||||||
registerAction2(class CopyCellOutputAction extends Action2 {
|
registerAction2(class CopyCellOutputAction extends Action2 {
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
id: COPY_OUTPUT_COMMAND_ID,
|
id: COPY_OUTPUT_COMMAND_ID,
|
||||||
title: localize('notebookActions.copyOutput', "Copy Output to Clipboard"),
|
title: localize('notebookActions.copyOutput', "Copy Output"),
|
||||||
menu: {
|
menu: {
|
||||||
id: MenuId.NotebookOutputToolbar,
|
id: MenuId.NotebookOutputToolbar,
|
||||||
when: NOTEBOOK_CELL_HAS_OUTPUTS
|
when: NOTEBOOK_CELL_HAS_OUTPUTS
|
||||||
|
|||||||
Reference in New Issue
Block a user