Localize ipynb extension commands (#172272)

* Localize ipynb extension commands

* More updates
This commit is contained in:
Don Jayamanne 2023-01-27 08:24:22 +11:00 committed by GitHub
parent 75d10e42f1
commit 5efc2a498a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 8 deletions

View file

@ -13,8 +13,7 @@
"diffContentOptions" "diffContentOptions"
], ],
"activationEvents": [ "activationEvents": [
"onNotebook:jupyter-notebook", "onNotebook:jupyter-notebook"
"onCommand:ipynb.newUntitledIpynb"
], ],
"extensionKind": [ "extensionKind": [
"workspace", "workspace",
@ -44,17 +43,17 @@
"commands": [ "commands": [
{ {
"command": "ipynb.newUntitledIpynb", "command": "ipynb.newUntitledIpynb",
"title": "New Jupyter Notebook", "title": "%newUntitledIpynb.title%",
"shortTitle": "Jupyter Notebook", "shortTitle": "%newUntitledIpynb.shortTitle%",
"category": "Create" "category": "Create"
}, },
{ {
"command": "ipynb.openIpynbInNotebookEditor", "command": "ipynb.openIpynbInNotebookEditor",
"title": "Open ipynb file in notebook editor" "title": "%openIpynbInNotebookEditor.title%"
}, },
{ {
"command": "ipynb.cleanInvalidImageAttachment", "command": "ipynb.cleanInvalidImageAttachment",
"title": "Clean invalid image attachment reference" "title": "%cleanInvalidImageAttachment.title%"
} }
], ],
"notebooks": [ "notebooks": [
@ -72,7 +71,7 @@
"notebookRenderer": [ "notebookRenderer": [
{ {
"id": "vscode.markdown-it-cell-attachment-renderer", "id": "vscode.markdown-it-cell-attachment-renderer",
"displayName": "Markdown it ipynb Cell Attachment renderer", "displayName": "%markdownAttachmentRenderer.displayName%",
"entrypoint": { "entrypoint": {
"extends": "vscode.markdown-it-renderer", "extends": "vscode.markdown-it-renderer",
"path": "./notebook-out/cellAttachmentRenderer.js" "path": "./notebook-out/cellAttachmentRenderer.js"

View file

@ -1,5 +1,10 @@
{ {
"displayName": ".ipynb Support", "displayName": ".ipynb Support",
"description": "Provides basic support for opening and reading Jupyter's .ipynb notebook files", "description": "Provides basic support for opening and reading Jupyter's .ipynb notebook files",
"ipynb.pasteImagesAsAttachments.enabled": "Enable/disable pasting of images into Markdown cells in ipynb notebook files. Pasted images are inserted as attachments to the cell." "ipynb.pasteImagesAsAttachments.enabled": "Enable/disable pasting of images into Markdown cells in ipynb notebook files. Pasted images are inserted as attachments to the cell.",
"newUntitledIpynb.title": "New Jupyter Notebook",
"newUntitledIpynb.shortTitle": "Jupyter Notebook",
"openIpynbInNotebookEditor.title": "Open IPYNB File In Notebook Editor",
"cleanInvalidImageAttachment.title": "Clean Invalid Image Attachment Reference",
"markdownAttachmentRenderer.displayName": "Markdown it ipynb Cell Attachment renderer"
} }