mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Add widget to change how content is pasted (#181290)
* Add widget to change how content is pasted For #30066 This adds a widget that lets you change how content is pasted if there are multiple ways it could be pasted To do this, I've made the post drop widget generic and reused it for pasting too * Update types * More code deduplication
This commit is contained in:
@@ -53,7 +53,7 @@ class CopyPasteEditProvider implements vscode.DocumentPasteEditProvider {
|
||||
return;
|
||||
}
|
||||
|
||||
const pasteEdit = new vscode.DocumentPasteEdit(insert.insertText);
|
||||
const pasteEdit = new vscode.DocumentPasteEdit(insert.insertText, vscode.l10n.t('Insert image as attachment'));
|
||||
pasteEdit.additionalEdit = insert.additionalEdit;
|
||||
return pasteEdit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user