| 96 | |
| 97 | |
| 98 | def check_ext(ext, data, context, echoerr): |
| 99 | havemarks(ext) |
| 100 | hadsomedirs = False |
| 101 | hadproblem = False |
| 102 | if ext not in data['lists']['exts']: |
| 103 | hadproblem = True |
| 104 | echoerr(context='Error while loading {0} extension configuration'.format(ext), |
| 105 | context_mark=ext.mark, |
| 106 | problem='extension configuration does not exist') |
| 107 | else: |
| 108 | for typ in ('themes', 'colorschemes'): |
| 109 | if ext not in data['configs'][typ] and not data['configs']['top_' + typ]: |
| 110 | hadproblem = True |
| 111 | echoerr(context='Error while loading {0} extension configuration'.format(ext), |
| 112 | context_mark=ext.mark, |
| 113 | problem='{0} configuration does not exist'.format(typ)) |
| 114 | else: |
| 115 | hadsomedirs = True |
| 116 | return hadsomedirs, hadproblem |
| 117 | |
| 118 | |
| 119 | def check_config(d, theme, data, context, echoerr): |