Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
});
const setupTargets = () => {
autoCompleteHelper.generateAutoCompleteSuggestions();
if (os.platform() === 'darwin') {
this.toolbar.populateiOSTargets();
} else {
this.toolbar.populateAndroidTargets();
}
this.toolbar.update({ disableUI: false });
this.toolbar.hud.displayDefault();
this.toolbar.LoginDetails();
this.checkForUpdates();
};
const { missing } = await environment.validateEnvironment();
if (missing.length) {
let message = 'You are missing the following required components for Titanium development:';
for (let i = 0; i < missing.length; i++) {
const product = missing[i];
if (i < missing.length - 1) {
message = `${message} ${product.name},`;
} else {
message = `${message} ${product.name}`;
}
}
message = `${message}. Without these components the package will be unusable.`;
const errorNotification = atom.notifications.addError(message, {
buttons: [
{
vscode.window.withProgress({ cancellable: false, location: vscode.ProgressLocation.Notification, title: 'Titanium' }, async progress => {
progress.report({
message: 'Validating environment'
});
const { missing } = await environment.validateEnvironment();
if (missing.length) {
let message = 'You are missing the following required components for Titanium development:';
for (let i = 0; i < missing.length; i++) {
const product = missing[i];
if (i < missing.length - 1) {
message = `${message} ${product.name},`;
} else {
message = `${message} ${product.name}`;
}
}
message = `${message}. Without these components the extension will be unusable.`;
const choices: InteractionChoice[] = [
{
title: 'Install',
run: async (): Promise => {