code: function setup() {
    if (!fileExists(settingsPath)) {
      buildSettings();
    }
  
    var settings = fs.readFileSync(settingsPath, 'utf8');
    settings = JSON.parse(settings);
  
    if (!settings.tfPath || !settings.vsArchitecture || !settings.vsVersion) {
      buildSettings();
    }
  
    // Rebuild settings if TF.exe has been uninstalled/updated
    if (!fileExists(settings.tfPath)) {
      buildSettings();
    }
  
    return settings;
  }
docs: Get TFS settings (after starting setting up if they don't exist yet)
  
  @version 1.3.0
  
  @return {object} Settings