Add paste as default settings and enable js/ts paste with imports by default (#233031)

Fixes #184871
For #30066

Adds new settings that let you configure the default way to paste/drop.

Also enables js/ts paste with imports by default for 5.7+. However will not apply by default. Instead it will be shown as an option after pasting. You can then use the `editor.pasteAs.preferences` setting to make it apply automatically or use the `javascript.updateImportsOnPaste.enabled` settings to disable the feature entirely
This commit is contained in:
Matt Bierner
2024-11-04 16:30:09 -08:00
committed by GitHub
parent 49907c09c4
commit 54d81cd618
11 changed files with 277 additions and 96 deletions

View File

@@ -1506,23 +1506,17 @@
"description": "%typescript.tsserver.enableRegionDiagnostics%",
"scope": "window"
},
"javascript.experimental.updateImportsOnPaste": {
"javascript.updateImportsOnPaste.enabled": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "%configuration.updateImportsOnPaste%",
"tags": [
"experimental"
]
"default": true,
"markdownDescription": "%configuration.updateImportsOnPaste%"
},
"typescript.experimental.updateImportsOnPaste": {
"typescript.updateImportsOnPaste.enabled": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "%configuration.updateImportsOnPaste%",
"tags": [
"experimental"
]
"default": true,
"markdownDescription": "%configuration.updateImportsOnPaste%"
},
"typescript.experimental.expandableHover": {
"type": "boolean",