fix smoke test failure (#5764)

This commit is contained in:
Alan Ren
2019-05-30 15:03:18 -07:00
committed by GitHub
parent c9257822ec
commit 8e3fa660fd

View File

@@ -37,14 +37,11 @@ export function activate(context: vscode.ExtensionContext) {
let expectedExtensions = ['Microsoft.agent', 'Microsoft.import', 'Microsoft.mssql', 'Microsoft.profiler'];
do {
let extensions = vscode.extensions.all.filter(ext => { return expectedExtensions.indexOf(ext.id) !== -1; });
console.info(`extensions to load ${JSON.stringify(extensions, undefined, '\t')}`);
let isReady = true;
for (let i = 0; i < extensions.length; i++) {
let extension = extensions[i];
console.info(`checking extension:${JSON.stringify(extension, undefined, '\t')} to be ready}`);
isReady = isReady && extension.isActive;
if (!isReady) {
console.warn(`extension:${JSON.stringify(extension, undefined, '\t')} is not yet ready}`);
break;
}
}