Disable url smart paste in autolinks (#204673)

Fixes #188859
This commit is contained in:
Matt Bierner
2024-02-07 18:01:32 -08:00
committed by GitHub
parent 2eb66826bd
commit da36e0eba1
2 changed files with 7 additions and 0 deletions

View File

@@ -300,5 +300,11 @@ suite('createEditAddingLinksForUriList', () => {
await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc(' \r\n\r\n'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 0, 0, 7)], noopToken),
false);
});
test('Smart should be disabled inside of autolinks', async () => {
assert.strictEqual(
await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('<>'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 1, 0, 1)], noopToken),
false);
});
});
});