Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
vscode.window.withProgress({ location: vscode.ProgressLocation.Notification, title: 'Titanium SDK Installation', cancellable: false }, async () => {
try {
await updates.titanium.sdk.installUpdate(sdkVersion as string);
appc.getInfo(() => {
generateCompletions(force);
return Promise.resolve();
});
} catch (err) {
return Promise.reject(err);
}
});
}