Fix hover tooltips (#14561)

This commit is contained in:
Karl Burtram
2021-03-04 17:38:59 -08:00
committed by GitHub
parent eef8f0e2ba
commit 1167e247af
3 changed files with 53 additions and 10 deletions

View File

@@ -642,4 +642,10 @@ suite('ExtHostTypes', function () {
1, 0, 3, 3, (1 << 2) | (1 << 4)
]);
});
test('Markdown codeblock rendering is swapped #111604', function () {
const md = new types.MarkdownString().appendCodeblock('<img src=0 onerror="alert(1)">', 'html');
assert.deepEqual(md.value, '\n```html\n<img src=0 onerror="alert(1)">\n```\n');
});
});