Update paste/drop preference settings (#233261)

Makes it a simple array of kinds for now. We can add the mime type variation later if needed

Also makes the paste with imports have a better hierarchy. This lets you setup a keybinding for `text.updateImports` that will work across all languages that support it
This commit is contained in:
Matt Bierner
2024-11-06 13:59:18 -08:00
committed by GitHub
parent 1643da069d
commit 20e2977a10
6 changed files with 28 additions and 58 deletions

View File

@@ -42,7 +42,7 @@ const enabledSettingId = 'updateImportsOnPaste.enabled';
class DocumentPasteProvider implements vscode.DocumentPasteEditProvider {
static readonly kind = vscode.DocumentDropOrPasteEditKind.Empty.append('text', 'jsts', 'pasteWithImports');
static readonly kind = vscode.DocumentDropOrPasteEditKind.Empty.append('text', 'updateImports', 'jsts');
static readonly metadataMimeType = 'application/vnd.code.jsts.metadata';
constructor(