(config: ExtensionConfig)
| 105 | } |
| 106 | |
| 107 | function getContextFileNames(config: ExtensionConfig): string[] { |
| 108 | if (!config.contextFileName) { |
| 109 | return ['ANUS.md']; |
| 110 | } else if (!Array.isArray(config.contextFileName)) { |
| 111 | return [config.contextFileName]; |
| 112 | } |
| 113 | return config.contextFileName; |
| 114 | } |
| 115 | |
| 116 | export function annotateActiveExtensions( |
| 117 | extensions: Extension[], |