mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Allow external copying files into the workspace on markdown drop / paste (#182572)
Allow copying files in the workspace on markdown drop / paste Fixes #157043 Also: - Renames the markdown paste settings and makes them no longer experimental - Makes the copyFiles setting no longer experimental - Adds a `markdown.copyFiles.overwriteBehavior` which lets you control if/how existing files are overwritten
This commit is contained in:
@@ -456,13 +456,36 @@
|
||||
"markdownDescription": "%configuration.markdown.editor.drop.enabled%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"markdown.experimental.editor.pasteLinks.enabled": {
|
||||
"markdown.editor.drop.copyIntoWorkspace": {
|
||||
"type": "string",
|
||||
"markdownDescription": "%configuration.markdown.editor.drop.copyIntoWorkspace%",
|
||||
"default": "mediaFiles",
|
||||
"enum": [
|
||||
"mediaFiles",
|
||||
"never"
|
||||
],
|
||||
"markdownEnumDescriptions": [
|
||||
"%configuration.copyIntoWorkspace.mediaFiles%",
|
||||
"%configuration.copyIntoWorkspace.never%"
|
||||
]
|
||||
},
|
||||
"markdown.editor.filePaste.enabled": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"markdownDescription": "%configuration.markdown.editor.pasteLinks.enabled%",
|
||||
"default": true,
|
||||
"tags": [
|
||||
"experimental"
|
||||
"markdownDescription": "%configuration.markdown.editor.filePaste.enabled%",
|
||||
"default": true
|
||||
},
|
||||
"markdown.editor.filePaste.copyIntoWorkspace": {
|
||||
"type": "string",
|
||||
"markdownDescription": "%configuration.markdown.editor.filePaste.copyIntoWorkspace%",
|
||||
"default": "mediaFiles",
|
||||
"enum": [
|
||||
"mediaFiles",
|
||||
"never"
|
||||
],
|
||||
"markdownEnumDescriptions": [
|
||||
"%configuration.copyIntoWorkspace.mediaFiles%",
|
||||
"%configuration.copyIntoWorkspace.never%"
|
||||
]
|
||||
},
|
||||
"markdown.validate.enabled": {
|
||||
@@ -588,13 +611,26 @@
|
||||
"description": "%configuration.markdown.occurrencesHighlight.enabled%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"markdown.experimental.copyFiles.destination": {
|
||||
"markdown.copyFiles.destination": {
|
||||
"type": "object",
|
||||
"markdownDescription": "%configuration.markdown.copyFiles.destination%",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"markdown.copyFiles.overwriteBehavior": {
|
||||
"type": "string",
|
||||
"markdownDescription": "%configuration.markdown.copyFiles.overwriteBehavior%",
|
||||
"default": "nameIncrementally",
|
||||
"enum": [
|
||||
"nameIncrementally",
|
||||
"overwrite"
|
||||
],
|
||||
"markdownEnumDescriptions": [
|
||||
"%configuration.markdown.copyFiles.overwriteBehavior.nameIncrementally%",
|
||||
"%configuration.markdown.copyFiles.overwriteBehavior.overwrite%"
|
||||
]
|
||||
},
|
||||
"markdown.preferredMdPathExtensionStyle": {
|
||||
"type": "string",
|
||||
"default": "auto",
|
||||
|
||||
Reference in New Issue
Block a user