Fixes #112834: Ensure the markdown link provider is registered before invoking vscode.executeLinkProvider

This commit is contained in:
Alexandru Dima 2020-12-30 21:49:51 +01:00
parent 56c808a66a
commit 7242082983
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

View file

@ -20,6 +20,11 @@ async function getLinksForFile(file: vscode.Uri): Promise<vscode.DocumentLink[]>
suite('Markdown Document links', () => {
setup(async () => {
// the tests make the assumption that link providers are already registered
await vscode.extensions.getExtension('vscode.markdown-language-features')!.activate();
});
teardown(async () => {
await vscode.commands.executeCommand('workbench.action.closeAllEditors');
});