Skip to content

Commit 070707d

Browse files
Smart pasting results in a new widget label (microsoft#189098)
* add and localize smart label
1 parent dd149c2 commit 070707d

File tree

1 file changed

+1
-1
lines changed
  • extensions/markdown-language-features/src/languageFeatures/copyFiles

1 file changed

+1
-1
lines changed

extensions/markdown-language-features/src/languageFeatures/copyFiles/copyPasteLinks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class PasteLinkEditProvider implements vscode.DocumentPasteEditProvider {
4040
return;
4141
}
4242

43-
uriEdit.label = pasteEdit.label;
43+
uriEdit.label = pasteUrlSetting === PasteUrlAsFormattedLink.Smart ? vscode.l10n.t('Smartly Insert Link') : pasteEdit.label;
4444
uriEdit.additionalEdit = pasteEdit.additionalEdits;
4545
return uriEdit;
4646
}

0 commit comments

Comments
 (0)