mirror of
https://github.com/Microsoft/vscode
synced 2024-07-05 01:08:57 +00:00
remove ipynb.pasteAsAttachment
setting
This commit is contained in:
parent
6812cf9a3b
commit
7471c030af
|
@ -29,18 +29,6 @@
|
|||
}
|
||||
},
|
||||
"contributes": {
|
||||
"configuration": [
|
||||
{
|
||||
"properties": {
|
||||
"ipynb.pasteImagesAsAttachments.enabled": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"markdownDescription": "%ipynb.pasteImagesAsAttachments.enabled%",
|
||||
"default": true
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
{
|
||||
"command": "ipynb.newUntitledIpynb",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user