From 070707dffc3baf5fa56d97e201a8292db0d34f97 Mon Sep 17 00:00:00 2001 From: Meghan Kulkarni Date: Thu, 27 Jul 2023 14:30:46 -0700 Subject: [PATCH] Smart pasting results in a new widget label (#189098) * add and localize smart label --- .../src/languageFeatures/copyFiles/copyPasteLinks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/markdown-language-features/src/languageFeatures/copyFiles/copyPasteLinks.ts b/extensions/markdown-language-features/src/languageFeatures/copyFiles/copyPasteLinks.ts index e596e0c2c82..ab7b9b60d65 100644 --- a/extensions/markdown-language-features/src/languageFeatures/copyFiles/copyPasteLinks.ts +++ b/extensions/markdown-language-features/src/languageFeatures/copyFiles/copyPasteLinks.ts @@ -40,7 +40,7 @@ class PasteLinkEditProvider implements vscode.DocumentPasteEditProvider { return; } - uriEdit.label = pasteEdit.label; + uriEdit.label = pasteUrlSetting === PasteUrlAsFormattedLink.Smart ? vscode.l10n.t('Smartly Insert Link') : pasteEdit.label; uriEdit.additionalEdit = pasteEdit.additionalEdits; return uriEdit; }