Hook up prototype paste with imports for JS/TS (#204665)

* Hook up prototype paste with imports for JS/TS

For https://github.com/microsoft/TypeScript/pull/57262 but with proposed changes to ts protocol

* Support new api

* Update
This commit is contained in:
Matt Bierner
2024-05-24 12:57:30 -07:00
committed by GitHub
parent fb7f5a9a83
commit 934af755c4
8 changed files with 192 additions and 2 deletions

View File

@@ -13,7 +13,8 @@
"multiDocumentHighlightProvider",
"mappedEditsProvider",
"codeActionAI",
"codeActionRanges"
"codeActionRanges",
"documentPaste"
],
"capabilities": {
"virtualWorkspaces": {
@@ -1316,6 +1317,20 @@
"default": true,
"markdownDescription": "%typescript.workspaceSymbols.excludeLibrarySymbols%",
"scope": "window"
},
"javascript.experimental.updateImportsOnPaste": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "%configuration.updateImportsOnPaste%",
"tags": ["experimental"]
},
"typescript.experimental.updateImportsOnPaste": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "%configuration.updateImportsOnPaste%",
"tags": ["experimental"]
}
}
},