remove ipynb.pasteAsAttachment setting

This commit is contained in:
Michael Lively 2023-05-03 11:54:04 -07:00
parent 6812cf9a3b
commit 7471c030af
No known key found for this signature in database
GPG Key ID: 91F42FA34885BFCA
3 changed files with 0 additions and 17 deletions

View File

@ -29,18 +29,6 @@
}
},
"contributes": {
"configuration": [
{
"properties": {
"ipynb.pasteImagesAsAttachments.enabled": {
"type": "boolean",
"scope": "resource",
"markdownDescription": "%ipynb.pasteImagesAsAttachments.enabled%",
"default": true
}
}
}
],
"commands": [
{
"command": "ipynb.newUntitledIpynb",

View File

@ -1,7 +1,6 @@
{
"displayName": ".ipynb Support",
"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.",
"newUntitledIpynb.title": "New Jupyter Notebook",
"newUntitledIpynb.shortTitle": "Jupyter Notebook",
"openIpynbInNotebookEditor.title": "Open IPYNB File In Notebook Editor",

View File

@ -43,10 +43,6 @@ class CopyPasteEditProvider implements vscode.DocumentPasteEditProvider {
dataTransfer: vscode.DataTransfer,
token: vscode.CancellationToken,
): Promise<vscode.DocumentPasteEdit | undefined> {
const enabled = vscode.workspace.getConfiguration('ipynb', document).get('pasteImagesAsAttachments.enabled', false);
if (!enabled) {
return;
}
const insert = await createInsertImageAttachmentEdit(document, dataTransfer, token);
if (!insert) {